diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2017-04-03 15:35:09 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-04-14 17:20:26 +0200 |
commit | b0161fd2d8679882a50d1f3ce55cdf69278aa32f (patch) | |
tree | 4e1afe4ceae7eec8b832a61fa1de9da079b856ef /src/mainboard/via/epia-cn | |
parent | 38d1eb44031eb023f00d52481fc77286d28e5157 (diff) | |
download | coreboot-b0161fd2d8679882a50d1f3ce55cdf69278aa32f.tar.xz |
southbridge/via/vt8237r: Get rid of #include early_smbus.c
Use linker instead of '#include *.c'.
The smbus_fixup() was changed not to use a structure that's defined by a
northbridge since multiple different northbridges can be used. Instead
the caller now directly passed the memory slot details.
Change-Id: Ia369ece6365accbc531736fc463c713bbc134807
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-on: https://review.coreboot.org/19082
Tested-by: build bot (Jenkins)
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/mainboard/via/epia-cn')
-rw-r--r-- | src/mainboard/via/epia-cn/romstage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/via/epia-cn/romstage.c b/src/mainboard/via/epia-cn/romstage.c index 5293aa6387..27c1a46c6c 100644 --- a/src/mainboard/via/epia-cn/romstage.c +++ b/src/mainboard/via/epia-cn/romstage.c @@ -26,7 +26,7 @@ #include <cpu/x86/bist.h> #include <cpu/amd/car.h> #include <delay.h> -#include "southbridge/via/vt8237r/early_smbus.c" +#include <southbridge/via/vt8237r/vt8237r.h> #include "southbridge/via/vt8237r/early_serial.c" #include <spd.h> @@ -80,7 +80,7 @@ void main(unsigned long bist) enable_vt8237r_serial(); console_init(); enable_smbus(); - smbus_fixup(&ctrl); + smbus_fixup(ctrl.channel0, ARRAY_SIZE(ctrl.channel0)); report_bist_failure(bist); enable_mainboard_devices(); ddr_ram_setup(&ctrl); |