Author: mcayland Date: Fri Feb 26 00:00:15 2016 New Revision: 1391 URL: http://tracker.coreboot.org/trac/openbios/changeset/1391
Log: escc.c: add DBDMA interrupt properties
These are required for MacOS to locate the serial port. Also make sure we add the 2nd integer to each interrupt in order to indicate level/edge triggering.
Signed-off-by: Mark Cave-Ayland mark.cave-ayland@ilande.co.uk
Modified: trunk/openbios-devel/drivers/escc.c
Modified: trunk/openbios-devel/drivers/escc.c ============================================================================== --- trunk/openbios-devel/drivers/escc.c Fri Feb 26 00:00:11 2016 (r1390) +++ trunk/openbios-devel/drivers/escc.c Fri Feb 26 00:00:15 2016 (r1391) @@ -473,10 +473,13 @@ (char *)&props, 1 * sizeof(cell)));
props[0] = (0x24) + index; - props[1] = 0x0; - props[2] = 0x0; + props[1] = 0x1; + props[2] = dbdma_offsets[index][0]; + props[3] = 0x0; + props[4] = dbdma_offsets[index][1]; + props[5] = 0x0; NEWWORLD(set_property(dnode, "interrupts", - (char *)&props, 3 * sizeof(cell))); + (char *)&props, 6 * sizeof(cell)));
set_int_property(dnode, "slot-names", 0);