Edward O'Callaghan (eocallaghan@alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5611
-gerrit
commit 7ddf9f1930a56f8538100b816415302e86d5d9e4 Author: Edward O'Callaghan eocallaghan@alterapraxis.com Date: Tue Apr 29 18:30:07 2014 +1000
mainboard/kontron/986lcd-m: Provide local pnp_ sio func
Following the reasoning of: HASH mainboard/supermicro/h8qme_fam10: Provide local pnp_ sio func
Change-Id: I7ee90e9f4b5b2ee213bc31052397ff5e7f2efd2f Signed-off-by: Edward O'Callaghan eocallaghan@alterapraxis.com --- src/mainboard/kontron/986lcd-m/romstage.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
diff --git a/src/mainboard/kontron/986lcd-m/romstage.c b/src/mainboard/kontron/986lcd-m/romstage.c index ba18720..7954d68 100644 --- a/src/mainboard/kontron/986lcd-m/romstage.c +++ b/src/mainboard/kontron/986lcd-m/romstage.c @@ -77,6 +77,20 @@ static void ich7_enable_lpc(void) pci_write_config32(PCI_DEV(0, 0x1f, 0), 0x90, 0x00000301); }
+/* TODO: superio code should really not be in mainboard */ +static void pnp_enter_ext_func_mode(device_t dev) +{ + u16 port = dev >> 8; + outb(0x87, port); + outb(0x87, port); +} + +static void pnp_exit_ext_func_mode(device_t dev) +{ + u16 port = dev >> 8; + outb(0xaa, port); +} + /* This box has two superios, so enabling serial becomes slightly excessive. * We disable a lot of stuff to make sure that there are no conflicts between * the two. Also set up the GPIOs from the beginning. This is the "no schematic