diff options
author | Jens Rottmann <JRottmann@LiPPERTEmbedded.de> | 2010-08-31 19:19:16 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2010-08-31 19:19:16 +0000 |
commit | b9ee31d881879ab1d95b4bfb485bd6586367649d (patch) | |
tree | 0e1fcd791ea376b0af9e8d6782abf035a291dad4 /src/mainboard/lippert/spacerunner-lx/romstage.c | |
parent | 3063d5dfdee3ccf674b863ca6d22a229210c04a7 (diff) |
SMC_CONFIG is needed before the device tree is ready and some people
would rather not have mainboard settings like sio_gp1x_config in the
device tree anyway. So found a nice united home for both in Kconfig,
where users can change them without having to mess around in the C code.
Signed-off-by: Jens Rottmann <JRottmann@LiPPERTEmbedded.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5760 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/mainboard/lippert/spacerunner-lx/romstage.c')
-rw-r--r-- | src/mainboard/lippert/spacerunner-lx/romstage.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mainboard/lippert/spacerunner-lx/romstage.c b/src/mainboard/lippert/spacerunner-lx/romstage.c index a62ad91c0e..5c640cb021 100644 --- a/src/mainboard/lippert/spacerunner-lx/romstage.c +++ b/src/mainboard/lippert/spacerunner-lx/romstage.c @@ -41,7 +41,11 @@ #include "superio/ite/it8712f/it8712f_early_serial.c" /* Bit0 enables Spread Spectrum, bit1 makes on-board SSD act as IDE slave. */ -#define SMC_CONFIG 0x01 +#if CONFIG_ONBOARD_IDE_SLAVE + #define SMC_CONFIG 0x03 +#else + #define SMC_CONFIG 0x01 +#endif #define ManualConf 1 /* No automatic strapped PLL config */ #define PLLMSRhi 0x0000059C /* Manual settings for the PLL */ @@ -201,4 +205,3 @@ void main(unsigned long bist) /* Memory is setup. Return to cache_as_ram.inc and continue to boot. */ return; } - |