In message <[EMAIL PROTECTED]> you wrote: > > I don't like this either. But I have not come up with a "generic" solution > till now. It's not so easy since the 440EPx SDRAM setup code is sometimes > common (cpu/ppc4xx/denali_spd_ddr2.c) and sometimes board specific. And it > gets even more complicated when ECC initialization is needed too. So > currently I have no "better" solution as to do it in a board specific way. > > As always, patches implementing a "better" more generic solution are welcome.
At the cost of an #ifdef, this could be added to the memory reservation code in "lib_ppc/board.c", i. e. somewhere after ... 427 * Reserve memory at end of RAM for (top down in that order): 428 * - kernel log buffer 429 * - protected RAM 430 * - LCD framebuffer 431 * - monitor code 432 * - board info struct 433 */ 434 len = (ulong)&_end - CFG_MONITOR_BASE; 435 436 addr = CFG_SDRAM_BASE + get_effective_memsize(); Of course you need to make sure that the linux kernel understands this changed behaviour / shifted addresses, too. 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: [EMAIL PROTECTED] Minds are like parachutes - they only function when open. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ U-Boot-Users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/u-boot-users
