From 899577676bf6018298e7a607952473c39c5e2876 Mon Sep 17 00:00:00 2001 From: Keith Hui Date: Fri, 21 Jul 2017 17:35:47 -0400 Subject: asus/p2b-d: Use romstage from asus/p2b-ds. The romstage for both is line-for-line identical. Merge both into P2B-DS so it benefits from my modernization efforts. Change-Id: Idd964f4c5c4dfd9e2e0ac4a4f41e4ee9a84a729c Signed-off-by: Keith Hui Reviewed-on: https://review.coreboot.org/20691 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/asus/p2b-d/romstage.c | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) (limited to 'src/mainboard/asus/p2b-d') diff --git a/src/mainboard/asus/p2b-d/romstage.c b/src/mainboard/asus/p2b-d/romstage.c index ea0c2299e4..7fad06bf50 100644 --- a/src/mainboard/asus/p2b-d/romstage.c +++ b/src/mainboard/asus/p2b-d/romstage.c @@ -14,37 +14,5 @@ * GNU General Public License for more details. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#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 P2B-DS */ +#include "../p2b-ds/romstage.c" -- cgit v1.2.3