我在init.S 中增加 EXT0CON EXT1CON EXT2CON 如下
; Load in the target values into the control registers
ADRL r0, remap_SystemInitData
;LDR r0, =remap_SystemInitData
LDMIA r0, {r1-r9}
LDR r0, =EBI_Ctrl
; Now run critical jump code
STMIA r0, {r1-r9}
MOV pc, lr
remap_EndSysMapJump
remap_SystemInitData
; Default sdram configuration
DCD 0x000530C1 ; EBICON : not need to change.
DCD 0x40050084 ; 8M
;DCD 0x000090CC ; SDCONF0(SDRAM) - 2M (1Mx16):0x00009041
; - 8M (2Mx32):0x000090E3
; 16M (4Mx32):0x000090E4
; - 16M (8x16M):0x000090CC
; - 32M (32Mx8):0x000090B5
; - 64M (16Mx16x2):0x000090EE
;DCD 0x020090CC ; SDCONF1 - The same as SDCONF0 with proper base address
DCD 0x000090CD ; 32M
DCD 0x020090CD ; 32M
DCD 0x0000015B ; SDTIME0 - not need to change
DCD 0x0000015B ; SDTIME1 - not need to change
DCD 0x60004491 ; address 0x30000000
DCD 0x80004491 ; address 0x40000000
DCD 0xA0004491 ; address 0x50000000
DCB "@SYSTEM_INIT_CFG" ; A key word for future useage
ALIGN
重新編譯之後 燒到板子上
但是我dump
0xB000_1018 (EXT0CON)
0xB000_101C (EXT1CON)
0xB000_1020 (EXT2CON)
卻都還是0X0
請問是哪裡還需要修改呢? |