shithub: riscv

ref: ceed9b8853ab7b10e5a9e39704e712bfce53ce8a
dir: /sys/src/boot/zynq/ddr.s/

View raw version
#define OUTPUT_EN (3<<9)
#define DCI_EN (7<<4)
#define INP_VREF (1<<1)
#define INP_DIFF (2<<1)

TEXT ddriob(SB), $-4
	WORD $(OUTPUT_EN) // DDRIOB_ADDR0
	WORD $(OUTPUT_EN) // DDRIOB_ADDR1
	WORD $(OUTPUT_EN | DCI_EN | INP_VREF) // DDRIOB_DATA0
	WORD $(OUTPUT_EN | DCI_EN | INP_VREF) // DDRIOB_DATA1
	WORD $(OUTPUT_EN | DCI_EN | INP_DIFF) // DDRIOB_DIFF0
	WORD $(OUTPUT_EN | DCI_EN | INP_DIFF) // DDRIOB_DIFF1
	WORD $(OUTPUT_EN) // DDRIOB_CLOCK
	WORD $0x0018C61C // DDRIOB_DRIVE_SLEW_ADDR
	WORD $0x00F9861C // DDRIOB_DRIVE_SLEW_DATA
	WORD $0x00F9861C // DDRIOB_DRIVE_SLEW_DIFF
	WORD $0x00F9861C // DDRIOB_DRIVE_SLEW_CLOCK
	WORD $0xE60 // DDRIOB_DDR_CTRL

TEXT ddrdata(SB), $-4
	WORD $0XF8006000
	WORD $0x0001FFFF
	WORD $0x00000080
	WORD $0XF8006004
	WORD $0x1FFFFFFF
	WORD $0x00081081
	WORD $0XF8006008
	WORD $0x03FFFFFF
	WORD $0x03C0780F
	WORD $0XF800600C
	WORD $0x03FFFFFF
	WORD $0x02001001
	WORD $0XF8006010
	WORD $0x03FFFFFF
	WORD $0x00014001
	WORD $0XF8006014
	WORD $0x001FFFFF
	WORD $0x0004281A
	WORD $0XF8006018
	WORD $0xF7FFFFFF
	WORD $0x44E458D2
	WORD $0XF800601C
	WORD $0xFFFFFFFF
	WORD $0x82023965
	WORD $0XF8006020
	WORD $0xFFFFFFFC
	WORD $0x2B288290
	WORD $0XF8006024
	WORD $0x0FFFFFFF
	WORD $0x0000003C
	WORD $0XF8006028
	WORD $0x00003FFF
	WORD $0x00002007
	WORD $0XF800602C
	WORD $0xFFFFFFFF
	WORD $0x00000008
	WORD $0XF8006030
	WORD $0xFFFFFFFF
	WORD $0x00040970
	WORD $0XF8006034
	WORD $0x13FF3FFF
	WORD $0x00011054
	WORD $0XF8006038
	WORD $0x00001FC3
	WORD $0x00000000
	WORD $0XF800603C
	WORD $0x000FFFFF
	WORD $0x00000777
	WORD $0XF8006040
	WORD $0xFFFFFFFF
	WORD $0xFFF00000
	WORD $0XF8006044
	WORD $0x0FFFFFFF
	WORD $0x0F666666
	WORD $0XF8006048
	WORD $0x3FFFFFFF
	WORD $0x0003C248
	WORD $0XF8006050
	WORD $0xFF0F8FFF
	WORD $0x77010800
	WORD $0XF8006058
	WORD $0x0001FFFF
	WORD $0x00000101
	WORD $0XF800605C
	WORD $0x0000FFFF
	WORD $0x00005003
	WORD $0XF8006060
	WORD $0x000017FF
	WORD $0x0000003E
	WORD $0XF8006064
	WORD $0x00021FE0
	WORD $0x00020000
	WORD $0XF8006068
	WORD $0x03FFFFFF
	WORD $0x00284545
	WORD $0XF800606C
	WORD $0x0000FFFF
	WORD $0x00001610
	WORD $0XF80060A0
	WORD $0x00FFFFFF
	WORD $0x00008000
	WORD $0XF80060A4
	WORD $0xFFFFFFFF
	WORD $0x10200802
	WORD $0XF80060A8
	WORD $0x0FFFFFFF
	WORD $0x0690CB73
	WORD $0XF80060AC
	WORD $0x000001FF
	WORD $0x000001FE
	WORD $0XF80060B0
	WORD $0x1FFFFFFF
	WORD $0x04FFFFFF
	WORD $0XF80060B4
	WORD $0x000007FF
	WORD $0x00000200
	WORD $0XF80060B8
	WORD $0x01FFFFFF
	WORD $0x0020006A
	WORD $0XF80060C4
	WORD $0x00000003
	WORD $0x00000003
	WORD $0XF80060C4
	WORD $0x00000003
	WORD $0x00000000
	WORD $0XF80060C8
	WORD $0x000000FF
	WORD $0x00000000
	WORD $0XF80060DC
	WORD $0x00000001
	WORD $0x00000000
	WORD $0XF80060F0
	WORD $0x0000FFFF
	WORD $0x00000000
	WORD $0XF80060F4
	WORD $0x0000000F
	WORD $0x00000008
	WORD $0XF8006114
	WORD $0x000000FF
	WORD $0x00000000
	WORD $0XF8006118
	WORD $0x7FFFFFFF
	WORD $0x40000001
	WORD $0XF800611C
	WORD $0x7FFFFFFF
	WORD $0x40000001
	WORD $0XF8006120
	WORD $0x7FFFFFFF
	WORD $0x40000001
	WORD $0XF8006124
	WORD $0x7FFFFFFF
	WORD $0x40000001
	WORD $0XF800612C
	WORD $0x000FFFFF
	WORD $0x00000000
	WORD $0XF8006130
	WORD $0x000FFFFF
	WORD $0x00000000
	WORD $0XF8006134
	WORD $0x000FFFFF
	WORD $0x00000000
	WORD $0XF8006138
	WORD $0x000FFFFF
	WORD $0x00000000
	WORD $0XF8006140
	WORD $0x000FFFFF
	WORD $0x00000035
	WORD $0XF8006144
	WORD $0x000FFFFF
	WORD $0x00000035
	WORD $0XF8006148
	WORD $0x000FFFFF
	WORD $0x00000035
	WORD $0XF800614C
	WORD $0x000FFFFF
	WORD $0x00000035
	WORD $0XF8006154
	WORD $0x000FFFFF
	WORD $0x00000080
	WORD $0XF8006158
	WORD $0x000FFFFF
	WORD $0x00000080
	WORD $0XF800615C
	WORD $0x000FFFFF
	WORD $0x00000080
	WORD $0XF8006160
	WORD $0x000FFFFF
	WORD $0x00000075
	WORD $0XF8006168
	WORD $0x001FFFFF
	WORD $0x000000EE
	WORD $0XF800616C
	WORD $0x001FFFFF
	WORD $0x000000E4
	WORD $0XF8006170
	WORD $0x001FFFFF
	WORD $0x000000FC
	WORD $0XF8006174
	WORD $0x001FFFFF
	WORD $0x000000F4
	WORD $0XF800617C
	WORD $0x000FFFFF
	WORD $0x000000C0
	WORD $0XF8006180
	WORD $0x000FFFFF
	WORD $0x000000C0
	WORD $0XF8006184
	WORD $0x000FFFFF
	WORD $0x000000C0
	WORD $0XF8006188
	WORD $0x000FFFFF
	WORD $0x000000B5
	WORD $0XF8006190
	WORD $0xFFFFFFFF
	WORD $0x10040080
	WORD $0XF8006194
	WORD $0x000FFFFF
	WORD $0x00007D02
	WORD $0XF8006204
	WORD $0xFFFFFFFF
	WORD $0x00000000
	WORD $0XF8006208
	WORD $0x000F03FF
	WORD $0x000803FF
	WORD $0XF800620C
	WORD $0x000F03FF
	WORD $0x000803FF
	WORD $0XF8006210
	WORD $0x000F03FF
	WORD $0x000803FF
	WORD $0XF8006214
	WORD $0x000F03FF
	WORD $0x000803FF
	WORD $0XF8006218
	WORD $0x000F03FF
	WORD $0x000003FF
	WORD $0XF800621C
	WORD $0x000F03FF
	WORD $0x000003FF
	WORD $0XF8006220
	WORD $0x000F03FF
	WORD $0x000003FF
	WORD $0XF8006224
	WORD $0x000F03FF
	WORD $0x000003FF
	WORD $0XF80062A8
	WORD $0x00000FF7
	WORD $0x00000000
	WORD $0XF80062AC
	WORD $0xFFFFFFFF
	WORD $0x00000000
	WORD $0XF80062B0
	WORD $0x003FFFFF
	WORD $0x00005125
	WORD $0xF80062B4
	WORD $0x003FFFFF
	WORD $0x000012A8
	WORD $0