From f170e71630bff4b181dbd5b209d9fb3f8ce35131 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Fri, 7 Apr 2017 09:24:02 +0200 Subject: nb/amdk8/(pre_)f.h: Don't declare global variable in header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is needed if one wants to use the header more than once. Change-Id: I375d08465b6c64cd91e7563e3917764507d779ba Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/19029 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki --- src/mainboard/amd/dbm690t/romstage.c | 1 + src/mainboard/amd/mahogany/romstage.c | 1 + src/mainboard/amd/pistachio/romstage.c | 1 + src/mainboard/amd/serengeti_cheetah/romstage.c | 1 + 4 files changed, 4 insertions(+) (limited to 'src/mainboard/amd') diff --git a/src/mainboard/amd/dbm690t/romstage.c b/src/mainboard/amd/dbm690t/romstage.c index 26275b6ee5..89456404bd 100644 --- a/src/mainboard/amd/dbm690t/romstage.c +++ b/src/mainboard/amd/dbm690t/romstage.c @@ -34,6 +34,7 @@ #include "southbridge/amd/rs690/early_setup.c" #include "southbridge/amd/sb600/early_setup.c" #include "northbridge/amd/amdk8/debug.c" /* After sb600_early_setup.c! */ +#include #define SERIAL_DEV PNP_DEV(0x2e, IT8712F_SP1) diff --git a/src/mainboard/amd/mahogany/romstage.c b/src/mainboard/amd/mahogany/romstage.c index bbbe869e35..55771f9b1e 100644 --- a/src/mainboard/amd/mahogany/romstage.c +++ b/src/mainboard/amd/mahogany/romstage.c @@ -34,6 +34,7 @@ #include #include #include "northbridge/amd/amdk8/debug.c" /* After sb700/early_setup.c! */ +#include unsigned get_sbdn(unsigned bus); diff --git a/src/mainboard/amd/pistachio/romstage.c b/src/mainboard/amd/pistachio/romstage.c index 549ad0ceac..a8242ec837 100644 --- a/src/mainboard/amd/pistachio/romstage.c +++ b/src/mainboard/amd/pistachio/romstage.c @@ -32,6 +32,7 @@ #include "southbridge/amd/rs690/early_setup.c" #include "southbridge/amd/sb600/early_setup.c" #include "northbridge/amd/amdk8/debug.c" /* After sb600/early_setup.c! */ +#include static void memreset(int controllers, const struct mem_controller *ctrl) { } static void activate_spd_rom(const struct mem_controller *ctrl) { } diff --git a/src/mainboard/amd/serengeti_cheetah/romstage.c b/src/mainboard/amd/serengeti_cheetah/romstage.c index ae89b05015..5e0123b5b4 100644 --- a/src/mainboard/amd/serengeti_cheetah/romstage.c +++ b/src/mainboard/amd/serengeti_cheetah/romstage.c @@ -31,6 +31,7 @@ #include #include #include "northbridge/amd/amdk8/setup_resource_map.c" +#include #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1) -- cgit v1.2.3