nb/amdk8/(pre_)f.h: Don't declare global variable in header
This is needed if one wants to use the header more than once. Change-Id: I375d08465b6c64cd91e7563e3917764507d779ba Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/19029 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
parent
237a93c43e
commit
f170e71630
|
@ -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 <northbridge/amd/amdk8/f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, IT8712F_SP1)
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include <southbridge/amd/sb700/sb700.h>
|
||||
#include <southbridge/amd/sb700/smbus.h>
|
||||
#include "northbridge/amd/amdk8/debug.c" /* After sb700/early_setup.c! */
|
||||
#include <northbridge/amd/amdk8/f.h>
|
||||
|
||||
unsigned get_sbdn(unsigned bus);
|
||||
|
||||
|
|
|
@ -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 <northbridge/amd/amdk8/f.h>
|
||||
|
||||
static void memreset(int controllers, const struct mem_controller *ctrl) { }
|
||||
static void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83627hf/w83627hf.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <northbridge/amd/amdk8/f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <southbridge/amd/sb700/sb700.h>
|
||||
#include <southbridge/amd/sb700/smbus.h>
|
||||
#include "northbridge/amd/amdk8/debug.c" /* After sb700/early_setup.c! */
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627DHG_SP1)
|
||||
#define GPIO2345_DEV PNP_DEV(0x2e, W83627DHG_GPIO2345_V)
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#include "northbridge/amd/amdk8/coherent_ht.c"
|
||||
#include "cpu/amd/dualcore/dualcore.c"
|
||||
#include <spd.h>
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
static void memreset(int controllers, const struct mem_controller *ctrl) { }
|
||||
static void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -42,6 +42,7 @@ unsigned int get_sbdn(unsigned bus);
|
|||
#include <cpu/x86/bist.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <spd.h>
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627EHG_SP1)
|
||||
#define GPIO_DEV PNP_DEV(0x2e, W83627EHG_GPIO_SUSLED_V)
|
||||
|
|
|
@ -42,6 +42,7 @@ unsigned int get_sbdn(unsigned bus);
|
|||
#include <cpu/x86/bist.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <spd.h>
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627EHG_SP1)
|
||||
#define GPIO_DEV PNP_DEV(0x2e, W83627EHG_GPIO_SUSLED_V)
|
||||
|
|
|
@ -42,6 +42,7 @@ unsigned int get_sbdn(unsigned bus);
|
|||
#include <cpu/x86/bist.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <spd.h>
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83697HF_SP1)
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ unsigned int get_sbdn(unsigned bus);
|
|||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83627thg/w83627thg.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <northbridge/amd/amdk8/f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627THG_SP1)
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ unsigned int get_sbdn(unsigned bus);
|
|||
#include <cpu/x86/bist.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <spd.h>
|
||||
#include <northbridge/amd/amdk8/f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, IT8712F_SP1)
|
||||
#define GPIO_DEV PNP_DEV(0x2e, IT8712F_GPIO)
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include <superio/nsc/pc87417/pc87417.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, PC87417_SP1)
|
||||
#define RTC_DEV PNP_DEV(0x2e, PC87417_RTC)
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83627hf/w83627hf.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
#include <superio/winbond/common/winbond.h>
|
||||
#include <superio/winbond/w83627hf/w83627hf.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include "southbridge/amd/rs690/early_setup.c"
|
||||
#include "southbridge/amd/sb600/early_setup.c"
|
||||
#include <northbridge/amd/amdk8/f.h>
|
||||
|
||||
static void memreset(int controllers, const struct mem_controller *ctrl) { }
|
||||
static void activate_spd_rom(const struct mem_controller *ctrl) { }
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#include "northbridge/amd/amdk8/coherent_ht.c"
|
||||
#include "cpu/amd/dualcore/dualcore.c"
|
||||
#include <spd.h>
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#if CONFIG_HAVE_OPTION_TABLE
|
||||
#include "option_table.h"
|
||||
|
|
|
@ -41,6 +41,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 <northbridge/amd/amdk8/f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, CONFIG_UART_FOR_CONSOLE == 1 ? IT8712F_SP2 : IT8712F_SP1)
|
||||
#define GPIO_DEV PNP_DEV(0x2e, IT8712F_GPIO)
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <cpu/x86/bist.h>
|
||||
#include "superio/smsc/lpc47b397/early_gpio.c"
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, LPC47B397_SP1)
|
||||
#define SUPERIO_GPIO_DEV PNP_DEV(0x2e, LPC47B397_RT)
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include "southbridge/amd/rs690/early_setup.c"
|
||||
#include "southbridge/amd/sb600/early_setup.c"
|
||||
#include <northbridge/amd/amdk8/f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, IT8712F_SP1)
|
||||
#define GPIO_DEV PNP_DEV(0x2e, IT8712F_GPIO)
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#include <superio/winbond/w83627thg/w83627thg.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include "northbridge/amd/amdk8/setup_resource_map.c"
|
||||
#include <northbridge/amd/amdk8/pre_f.h>
|
||||
|
||||
#define SERIAL_DEV PNP_DEV(0x2e, W83627THG_SP1)
|
||||
|
||||
|
|
|
@ -520,7 +520,7 @@ struct sys_info {
|
|||
|
||||
#ifdef __PRE_RAM__
|
||||
#include <arch/early_variables.h>
|
||||
struct sys_info sysinfo_car CAR_GLOBAL;
|
||||
extern struct sys_info sysinfo_car;
|
||||
#endif
|
||||
|
||||
#include <reset.h>
|
||||
|
|
|
@ -264,7 +264,7 @@ struct sys_info {
|
|||
|
||||
#ifdef __PRE_RAM__
|
||||
#include <arch/early_variables.h>
|
||||
struct sys_info sysinfo_car CAR_GLOBAL;
|
||||
extern struct sys_info sysinfo_car;
|
||||
#endif
|
||||
|
||||
#endif /* AMDK8_PRE_F_H */
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
#include "option_table.h"
|
||||
#endif
|
||||
|
||||
#include <arch/early_variables.h>
|
||||
struct sys_info sysinfo_car CAR_GLOBAL;
|
||||
|
||||
void setup_resource_map(const unsigned int *register_values, int max)
|
||||
{
|
||||
int i;
|
||||
|
|
|
@ -37,10 +37,11 @@
|
|||
#define printk_raminit(args...)
|
||||
#endif
|
||||
|
||||
#include <arch/early_variables.h>
|
||||
struct sys_info sysinfo_car CAR_GLOBAL;
|
||||
|
||||
#include "f_pci.c"
|
||||
|
||||
|
||||
/* for PCI_ADDR(0, 0x18, 2, 0x98) index,
|
||||
and PCI_ADDR(0x, 0x18, 2, 0x9c) data */
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue