[coreboot-gerrit] Patch set updated for coreboot: smscsuperio: map interrupt in smscsuperio_enable_serial()

Jonathan A. Kollasch (jakllsch@kollasch.net) gerrit at coreboot.org
Mon Jul 6 15:19:52 CEST 2015


Jonathan A. Kollasch (jakllsch at kollasch.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10807

-gerrit

commit 7f10499ea9dbc90d8822ba97a993aad56e8651f6
Author: Jonathan A. Kollasch <jakllsch at kollasch.net>
Date:   Mon Jul 6 08:07:50 2015 -0500

    smscsuperio: map interrupt in smscsuperio_enable_serial()
    
    This is a stopgap for when you use SUPERIO_SMSC_SMSCSUPERIO and the
    interrupt is unmapped at reset, but for whatever reason the chip is
    inaccessible in smscsuperio/superio.c::enable_dev() and thus the
    devicetree.cb IRQ information is not applied in ramstage and then
    serial console output fails to work for more than the UART FIFO depth
    in the OS.
    
    Change-Id: I00998088975569516f7caeb7f4098b48fe437889
    Signed-off-by: Jonathan A. Kollasch <jakllsch at kollasch.net>
---
 src/superio/smsc/smscsuperio/early_serial.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/superio/smsc/smscsuperio/early_serial.c b/src/superio/smsc/smscsuperio/early_serial.c
index 3eb9347..fd26169 100644
--- a/src/superio/smsc/smscsuperio/early_serial.c
+++ b/src/superio/smsc/smscsuperio/early_serial.c
@@ -55,6 +55,10 @@ void smscsuperio_enable_serial(pnp_devfn_t dev, u16 iobase)
 	pnp_set_logical_device(dev);
 	pnp_set_enable(dev, 0);
 	pnp_set_iobase(dev, PNP_IDX_IO0, iobase);
+	if (iobase == 0x03f8)
+		pnp_set_irq(dev, PNP_IDX_IRQ0, 4);
+	if (iobase == 0x02f8)
+		pnp_set_irq(dev, PNP_IDX_IRQ0, 3);
 	pnp_set_enable(dev, 1);
 	pnp_exit_conf_state(dev);
 }



More information about the coreboot-gerrit mailing list