[U-Boot] DDR initialization

Hi all, How do i go about the SDRAM/DDR initialization on my board. IS the function partitoned or is it just done in a single place. I would think that board specifc dram_init is just a generic function. There has to be a specific place where the SDRAM controller is told about the DRR/SDRAM. Is the porting documented somewhere or are there any good example to follow to stick to U-boot conventions.
Please enlighten me.
Thanks & Regards, ALfred

Hi
2009/8/19 alfred steele alfred.jaquez@gmail.com:
Hi all, How do i go about the SDRAM/DDR initialization on my board. IS the function partitoned or is it just done in a single place. I would think that board specifc dram_init is just a generic function. There has to be a specific place where the SDRAM controller is told about the DRR/SDRAM. Is the porting documented somewhere or are there any good example to follow to stick to U-boot conventions.
It's often done in lowlevel_init.S, whether that's true for all platforms and all boards I do not know.
/Magnus

Dear Magnus Lilja,
In message 59b21cf20908182251v6e023327h42fceb2ffb86ccd2@mail.gmail.com you wrote:
It's often done in lowlevel_init.S, whether that's true for all platforms and all boards I do not know.
lowlevel_init.S is only used on ARM boards. No other architecture does it like that.
Usually we try to avoid using assembler code, especially for critical things like RAM initialization where you want to have the best possible debug support (and just adding a printf() here and there is often _very_ convenient).
Just one of the many areas where the ARM port has been done wrong.
Best regards,
Wolfgang Denk
-- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de There are two kinds of people, those who do the work and those who take the credit. Try to be in the first group; there is less competition there. - Indira Gandhi
participants (3)
-
alfred steele
-
Magnus Lilja
-
Wolfgang Denk