From 8bd6c538741a75d89a8f5e6d08d8b1ae9b2dba07 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 3 Apr 2017 15:50:39 +0200 Subject: northbridge/via/cn700: Get rid of #include raminit.c Using linker instead of '#include *.c'. Change-Id: Ie1bc538aa29c4f18dd6f31a83d3da58f196f2078 Signed-off-by: Lubomir Rintel Reviewed-on: https://review.coreboot.org/19081 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Arthur Heymans --- src/mainboard/via/epia-cn/romstage.c | 4 +--- src/mainboard/via/pc2500e/romstage.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src/mainboard/via') diff --git a/src/mainboard/via/epia-cn/romstage.c b/src/mainboard/via/epia-cn/romstage.c index 3ecb97bc21..5293aa6387 100644 --- a/src/mainboard/via/epia-cn/romstage.c +++ b/src/mainboard/via/epia-cn/romstage.c @@ -30,13 +30,11 @@ #include "southbridge/via/vt8237r/early_serial.c" #include -static inline int spd_read_byte(unsigned device, unsigned address) +int spd_read_byte(unsigned device, unsigned address) { return smbus_read_byte(device, address); } -#include "northbridge/via/cn700/raminit.c" - static void enable_mainboard_devices(void) { pci_devfn_t dev; diff --git a/src/mainboard/via/pc2500e/romstage.c b/src/mainboard/via/pc2500e/romstage.c index 7d12e872d2..2f002be40e 100644 --- a/src/mainboard/via/pc2500e/romstage.c +++ b/src/mainboard/via/pc2500e/romstage.c @@ -33,13 +33,11 @@ #define SERIAL_DEV PNP_DEV(0x2e, IT8716F_SP1) -static int spd_read_byte(u16 device, u16 address) +int spd_read_byte(unsigned device, unsigned address) { return smbus_read_byte(device, address); } -#include "northbridge/via/cn700/raminit.c" - static const struct mem_controller ctrl = { .d0f0 = 0x0000, .d0f2 = 0x2000, -- cgit v1.2.3