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>
This commit is contained in:
Lubomir Rintel 2017-04-03 15:35:09 +02:00 committed by Martin Roth
commit b0161fd2d8
14 changed files with 23 additions and 20 deletions

View file

@ -27,7 +27,7 @@
#include <delay.h>
#include <lib.h>
#include <spd.h>
#include "southbridge/via/vt8237r/early_smbus.c"
#include <southbridge/via/vt8237r/vt8237r.h>
#include <superio/winbond/common/winbond.h>
#include <superio/winbond/w83697hf/w83697hf.h>
@ -84,7 +84,7 @@ void main(unsigned long bist)
console_init();
enable_smbus();
smbus_fixup(&ctrl);
smbus_fixup(ctrl.channel0, ARRAY_SIZE(ctrl.channel0));
/* Halt if there was a built-in self test failure. */
report_bist_failure(bist);