From dac17a74156a3eea2cc92c336b552165741119cb Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 5 Sep 2014 23:53:39 +0200 Subject: roda/rk886ex: Move dummy DCC ON# to finalize stage During Vladimir's ACPI cleanups, this was moved into the mainboard's enable stage, which will prevent the VGA option rom from executing correctly. Move it to the finalize stage to make sure it runs after all initialize functions have been called. Change-Id: I0fcca4d4a95f89382f377ce923f82ecb71467fd8 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/6845 Reviewed-by: Vladimir Serbinenko Tested-by: build bot (Jenkins) --- src/mainboard/roda/rk886ex/mainboard.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/mainboard/roda') diff --git a/src/mainboard/roda/rk886ex/mainboard.c b/src/mainboard/roda/rk886ex/mainboard.c index ba7ed230c5..4c7fffabbe 100644 --- a/src/mainboard/roda/rk886ex/mainboard.c +++ b/src/mainboard/roda/rk886ex/mainboard.c @@ -63,6 +63,13 @@ static void dump_runtime_registers(void) } #endif +static void mainboard_final(device_t dev) +{ + /* Enable Dummy DCC ON# for DVI */ + printk(BIOS_DEBUG, "Laptop handling...\n"); + outb(inb(0x60f) & ~(1 << 5), 0x60f); +} + static void mainboard_enable(device_t dev) { /* Configure the MultiKey controller */ @@ -81,9 +88,8 @@ static void mainboard_enable(device_t dev) #if DUMP_RUNTIME_REGISTERS dump_runtime_registers(); #endif - /* Enable Dummy DCC ON# for DVI */ - printk(BIOS_DEBUG, "Laptop handling...\n"); - outb(inb(0x60f) & ~(1 << 5), 0x60f); + + dev->ops->final = mainboard_final; } struct chip_operations mainboard_ops = { -- cgit v1.2.3