diff options
author | Martin Roth <martinroth@google.com> | 2017-07-16 11:29:02 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-07-18 19:03:28 +0000 |
commit | a271b1d13dbc360d8c856289b93d269a015c83a0 (patch) | |
tree | 376d9161bd99e2b484f58f42af500d25dc0d1445 /src/southbridge/amd/cs5536/early_setup.c | |
parent | 60a7e78de2a3cfafffd1d8d5e9b5454c9be39188 (diff) | |
download | coreboot-a271b1d13dbc360d8c856289b93d269a015c83a0.tar.xz |
sb/amd/cs5536: Remove includes of C files
The romstage for CS5536 platforms were including early_smbus.c and
early_setup.c. Build these into romstage from the makefile, and remove
the #includes.
Add a Kconfig option for platforms that do not use the
early smbus code.
Change-Id: I2e6a9cd859292b4dd4720b547d1ff0bbb6c319cf
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20607
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/southbridge/amd/cs5536/early_setup.c')
-rw-r--r-- | src/southbridge/amd/cs5536/early_setup.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/southbridge/amd/cs5536/early_setup.c b/src/southbridge/amd/cs5536/early_setup.c index 6c692225e4..0ccca36083 100644 --- a/src/southbridge/amd/cs5536/early_setup.c +++ b/src/southbridge/amd/cs5536/early_setup.c @@ -19,6 +19,12 @@ * AMD Geode GX Processor CS5536 Companion Device GeodeROM Porting Guide. */ +#include <arch/io.h> +#include <cpu/x86/bist.h> +#include <cpu/x86/msr.h> +#include <cpu/amd/lxdef.h> +#include "cs5536.h" + /** * @brief Setup PCI IDSEL for CS5536 */ @@ -244,7 +250,7 @@ void cs5536_setup_onchipuart(int uart) * and we don't want to hang on serial, so they are * commented out */ -static void cs5536_early_setup(void) +void cs5536_early_setup(void) { msr_t msr; |