Hi,
attached patch implements a framework to do rom enable sequences for the tinybootblock system and implements the rom enable for Fam10.
Changes: - Pass BIST through the bootblock (AMD wants this) - Rework walkcbfs to leave two registers unused, so BIST doesn't break romcc on non-mmx/sse systems - Provide enable_rom code for Fam10 northbridge and AMD8111 southbridge and hook it up in amd/serengeti_cheetah_fam10
Build tested on amd/serengeti_cheetah_fam10 and emulation/qemu-x86. QEmu is also boot-tested, the AMD board failed in my last tests. As I'm out of ideas on what might be wrong in Fam10 init, I decided to publish it - it's an improvement over what we have now, right? ;-)
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de
Regards, Patrick
Updated patches after feedback from Stefan:
20091230-2-romcc-ignore-unused-includes: (was already in the older patch): make romcc define __PRE_RAM__
romcc doesn't like #ifdef'd out #include statements that are bogus, like: #ifdef FOO #include FOO #endif FOO It complains about the "#include " line if FOO is undefined, and in the older patch I worked around it. Make romcc ignore #include lines that shouldn't be loaded anyway.
20091230-3-amdfam10-should-not-work-in-topdir: $(CURDIR) in Kconfig is always the top level directory. use $(obj) instead.
20091230-4-kconfig-enable_rom-and-fam10 All the other stuff from the original patch, changed to make use of the fixed #include behaviour (eliminates a file, and two config variables).
Build tested with qemu and serengeti_cheetah_fam10.
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de
Patrick
Acked-by: Ronald G. Minnich rminnich@gmail.com