From 7654a0db7e3f714ff4fa6664cab1998a9a7c724e Mon Sep 17 00:00:00 2001 From: Keith Hui Date: Fri, 21 Jul 2017 17:31:52 -0400 Subject: asus/p2b-f: Use romstage from asus/p2b-ls. The romstage for both is line-for-line identical. Merge both into P2B-LS so it benefits from my modernization efforts. Change-Id: I2d1a46236f83a4955ceb5e98b576cce0560f28df Signed-off-by: Keith Hui Reviewed-on: https://review.coreboot.org/20690 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/asus/p2b-f/romstage.c | 38 ++----------------------------------- 1 file changed, 2 insertions(+), 36 deletions(-) (limited to 'src/mainboard/asus') diff --git a/src/mainboard/asus/p2b-f/romstage.c b/src/mainboard/asus/p2b-f/romstage.c index 80fd76c225..31a100c74c 100644 --- a/src/mainboard/asus/p2b-f/romstage.c +++ b/src/mainboard/asus/p2b-f/romstage.c @@ -14,39 +14,5 @@ * GNU General Public License for more details. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -/* FIXME: The ASUS P2B-F has a Winbond W83977EF, actually. */ -#include -#include - -/* FIXME: The ASUS P2B-F has a Winbond W83977EF, actually. */ -#define SERIAL_DEV PNP_DEV(0x3f0, W83977TF_SP1) - -int spd_read_byte(unsigned int device, unsigned int address) -{ - return smbus_read_byte(device, address); -} - -void mainboard_romstage_entry(unsigned long bist) -{ - winbond_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); - console_init(); - report_bist_failure(bist); - - enable_smbus(); - dump_spd_registers(); - sdram_set_registers(); - sdram_set_spd_registers(); - sdram_enable(); -} +/* Shares romstage with the better supported P2B-LS sibling. */ +#include "../p2b-ls/romstage.c" -- cgit v1.2.3