[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbios
Subject:    [OpenBIOS] [PATCHv2 4/6] escc.c: add empty slot-names property to serial ports
From:       Mark Cave-Ayland <mark.cave-ayland () ilande ! co ! uk>
Date:       2016-02-20 17:18:34
Message-ID: 1455988716-22343-5-git-send-email-mark.cave-ayland () ilande ! co ! uk
[Download RAW message or body]

This is required to enable the ports to be detected by OS X.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
 openbios-devel/drivers/escc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/openbios-devel/drivers/escc.c b/openbios-devel/drivers/escc.c
index c770e23..ebfe242 100644
--- a/openbios-devel/drivers/escc.c
+++ b/openbios-devel/drivers/escc.c
@@ -466,6 +466,8 @@ escc_add_channel(const char *path, const char *node, phys_addr_t addr,
     NEWWORLD(set_property(dnode, "interrupts",
              (char *)&props, 3 * sizeof(cell)));
 
+    set_int_property(dnode, "slot-names", 0);
+
     device_end();
 
     uart_init_line((unsigned char*)addr + offset + reg_offsets[legacy][index][0],
-- 
1.7.10.4


-- 
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic