northbridge/via/cn700: Get rid of #include raminit.c
Using linker instead of '#include *.c'. Change-Id: Ie1bc538aa29c4f18dd6f31a83d3da58f196f2078 Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Reviewed-on: https://review.coreboot.org/19081 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
05a6f29d32
commit
8bd6c53874
|
@ -33,13 +33,11 @@
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, W83697HF_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, W83697HF_SP1)
|
||||||
|
|
||||||
static inline int spd_read_byte(unsigned device, unsigned address)
|
int spd_read_byte(unsigned device, unsigned address)
|
||||||
{
|
{
|
||||||
return smbus_read_byte(device, address);
|
return smbus_read_byte(device, address);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "northbridge/via/cn700/raminit.c"
|
|
||||||
|
|
||||||
static void enable_mainboard_devices(void)
|
static void enable_mainboard_devices(void)
|
||||||
{
|
{
|
||||||
pci_devfn_t dev;
|
pci_devfn_t dev;
|
||||||
|
|
|
@ -37,13 +37,11 @@
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, F71805F_SP1)
|
#define SERIAL_DEV PNP_DEV(0x2e, F71805F_SP1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static inline int spd_read_byte(unsigned device, unsigned address)
|
int spd_read_byte(unsigned device, unsigned address)
|
||||||
{
|
{
|
||||||
return smbus_read_byte(device, address);
|
return smbus_read_byte(device, address);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "northbridge/via/cn700/raminit.c"
|
|
||||||
|
|
||||||
static void enable_mainboard_devices(void)
|
static void enable_mainboard_devices(void)
|
||||||
{
|
{
|
||||||
pci_devfn_t dev;
|
pci_devfn_t dev;
|
||||||
|
|
|
@ -30,13 +30,11 @@
|
||||||
#include "southbridge/via/vt8237r/early_serial.c"
|
#include "southbridge/via/vt8237r/early_serial.c"
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
|
|
||||||
static inline int spd_read_byte(unsigned device, unsigned address)
|
int spd_read_byte(unsigned device, unsigned address)
|
||||||
{
|
{
|
||||||
return smbus_read_byte(device, address);
|
return smbus_read_byte(device, address);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "northbridge/via/cn700/raminit.c"
|
|
||||||
|
|
||||||
static void enable_mainboard_devices(void)
|
static void enable_mainboard_devices(void)
|
||||||
{
|
{
|
||||||
pci_devfn_t dev;
|
pci_devfn_t dev;
|
||||||
|
|
|
@ -33,13 +33,11 @@
|
||||||
|
|
||||||
#define SERIAL_DEV PNP_DEV(0x2e, IT8716F_SP1)
|
#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);
|
return smbus_read_byte(device, address);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "northbridge/via/cn700/raminit.c"
|
|
||||||
|
|
||||||
static const struct mem_controller ctrl = {
|
static const struct mem_controller ctrl = {
|
||||||
.d0f0 = 0x0000,
|
.d0f0 = 0x0000,
|
||||||
.d0f2 = 0x2000,
|
.d0f2 = 0x2000,
|
||||||
|
|
|
@ -19,5 +19,6 @@ ifeq ($(CONFIG_NORTHBRIDGE_VIA_CN700),y)
|
||||||
ramstage-y += northbridge.c
|
ramstage-y += northbridge.c
|
||||||
ramstage-y += agp.c
|
ramstage-y += agp.c
|
||||||
ramstage-y += vga.c
|
ramstage-y += vga.c
|
||||||
|
romstage-y += raminit.c
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <arch/io.h>
|
||||||
|
#include <northbridge/via/cn700/raminit.h>
|
||||||
|
#include <console/console.h>
|
||||||
#include <spd.h>
|
#include <spd.h>
|
||||||
#include <delay.h>
|
#include <delay.h>
|
||||||
#include "cn700.h"
|
#include "cn700.h"
|
||||||
|
@ -446,7 +450,7 @@ static void sdram_enable(pci_devfn_t dev, u8 *rank_address)
|
||||||
/*
|
/*
|
||||||
* Support one DIMM with up to 2 ranks.
|
* Support one DIMM with up to 2 ranks.
|
||||||
*/
|
*/
|
||||||
static void ddr_ram_setup(const struct mem_controller *ctrl)
|
void ddr_ram_setup(const struct mem_controller *ctrl)
|
||||||
{
|
{
|
||||||
u8 reg;
|
u8 reg;
|
||||||
|
|
||||||
|
|
|
@ -24,4 +24,9 @@ struct mem_controller {
|
||||||
u8 channel0[DIMM_SOCKETS];
|
u8 channel0[DIMM_SOCKETS];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void ddr_ram_setup(const struct mem_controller *ctrl);
|
||||||
|
|
||||||
|
/* mainboard specific */
|
||||||
|
int spd_read_byte(unsigned device, unsigned address);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue