From f173035ddc338fe6e26bf3e6cef0c006eca47f7d Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 13 Nov 2012 14:52:56 +0100 Subject: mainboard/siemens/sitemp_g1p1: Fix YABEL usage The board was broken for use with CONFIG_PCI_OPTION_ROM_RUN_YABEL. Change-Id: Ia57d630143386fe637af83b9e7345d0d3750b089 Signed-off-by: Nico Huber Reviewed-on: http://review.coreboot.org/1854 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/mainboard/siemens/sitemp_g1p1/Makefile.inc | 2 +- src/mainboard/siemens/sitemp_g1p1/mainboard.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mainboard/siemens/sitemp_g1p1') diff --git a/src/mainboard/siemens/sitemp_g1p1/Makefile.inc b/src/mainboard/siemens/sitemp_g1p1/Makefile.inc index f93f5e0b60..5e137accdf 100644 --- a/src/mainboard/siemens/sitemp_g1p1/Makefile.inc +++ b/src/mainboard/siemens/sitemp_g1p1/Makefile.inc @@ -19,5 +19,5 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -ramstage-y += int15_func.c +ramstage-$(CONFIG_PCI_OPTION_ROM_RUN_REALMODE) += int15_func.c diff --git a/src/mainboard/siemens/sitemp_g1p1/mainboard.c b/src/mainboard/siemens/sitemp_g1p1/mainboard.c index 8a63cffaa5..565ea5660a 100644 --- a/src/mainboard/siemens/sitemp_g1p1/mainboard.c +++ b/src/mainboard/siemens/sitemp_g1p1/mainboard.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -807,14 +808,14 @@ static void smm_lock( void ) static void init(device_t dev) { -#if !CONFIG_PCI_OPTION_ROM_RUN_YABEL +#if CONFIG_PCI_OPTION_ROM_RUN_REALMODE INT15_function_extensions int15_func; #endif printk(BIOS_DEBUG, "%s %s[%x/%x] %s\n", dev_name(dev), dev_path(dev), dev->subsystem_vendor, dev->subsystem_device, __func__); -#if !CONFIG_PCI_OPTION_ROM_RUN_YABEL +#if CONFIG_PCI_OPTION_ROM_RUN_REALMODE if( get_option(&int15_func.regs.func00_LCD_panel_id, "lcd_panel_id") < 0 ) int15_func.regs.func00_LCD_panel_id = PANEL_TABLE_ID_NO; int15_func.regs.func05_TV_standard = TV_MODE_NO; -- cgit v1.2.3