Re: 128M sdram configuration
- From: "K. S. Huang" <k_Underln_s_Underln_huang_AT_yahoo_DOT_com>
- Date: Tue, 29 Apr 2008 11:45:03 -0700
It looks good to me, and actually, you could have the
orr r3, r3, #MDCNFG_DE1
statement just inserted to the following of
orr r3, r3, #MDCNFG_DE0
So that you don't have to access MDCNFG register twice.
And for the registry settings...
A thumb of the rule is when ever you modify the address mapping of your
peripheral address space, you should make a corresponding change in your
platform.reg.
"blueYork" <yaoronger@xxxxxxx> wrote in message
news:a519af84-9de8-4465-842e-9ee28b5c714a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
yes,u are right,i just use pxa255 for the mcu.
follow your advice,i found the file fwXsc1.s u mentioned,
and modified the file below:
; get memory controller base address;
ldr r1, =MEMC_BASE_PHYSICAL
; fetch current mdcnfg value
ldr r3, [r1, #MDCNFG_OFFSET]
; enable sdram bank 0 if installed (must do for any populated bank)
orr r3, r3, #MDCNFG_DE0
; write back mdcnfg, enabling the sdram bank(s)
str r3, [r1, #MDCNFG_OFFSET]
; blue add
ldr r1, =MEMC_BASE_PHYSICAL
ldr r3, [r1, #MDCNFG_OFFSET]
orr r3, r3, #MDCNFG_DE1
str r3, [r1, #MDCNFG_OFFSET]
;add above
am I right?
when i download the NK.bin,it still hang "OEMAddressTable = 800b9ef4"
there
besides modify above,should i modify platform.reg?
since there are some hardcoded address registry settings for the
serial ports,
such as
;-------------------------------------------------------------
; Serial2 : It is UART_A
;-------------------------------------------------------------
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial2]
"Dll"="my_serial.Dll"
"IoBase"=dword:bcc00000 ;UART_A_BASE_U_VIRTUAL
"IoLen"=dword:24
anyway,thank u a lot for your suggestion.
.
- References:
- 128M sdram configuration
- From: yaoronger
- Re: 128M sdram configuration
- From: K. S. Huang
- Re: 128M sdram configuration
- From: yaoronger
- Re: 128M sdram configuration
- From: K. S. Huang
- Re: 128M sdram configuration
- From: yaoronger
- Re: 128M sdram configuration
- From: K. S. Huang
- Re: 128M sdram configuration
- From: blueYork
- 128M sdram configuration
- Prev by Date: Re: RGB swap
- Next by Date: Re: Can't link nk.lib and coredll.lib in kern.exe
- Previous by thread: Re: 128M sdram configuration
- Next by thread: Re: 128M sdram configuration
- Index(es):
Relevant Pages
|