[OpenBIOS] [PATCHv2 4/6] pci: enable AAPL, address property for all Apple PPC machines
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Mon Jan 4 15:11:53 CET 2016
The property appears in device trees for both Old World and New World Macs
so let's do the same.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
Reviewed-by: Alexander Graf <agraf at suse.de>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
openbios-devel/drivers/pci.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/openbios-devel/drivers/pci.c b/openbios-devel/drivers/pci.c
index c204f15..4a4b15b 100644
--- a/openbios-devel/drivers/pci.c
+++ b/openbios-devel/drivers/pci.c
@@ -1020,7 +1020,10 @@ static void ob_pci_add_properties(phandle_t phandle,
}
pci_set_assigned_addresses(phandle, config, num_bars);
- OLDWORLD(pci_set_AAPL_address(config));
+
+ if (is_apple()) {
+ pci_set_AAPL_address(config);
+ }
PCI_DPRINTF("\n");
}
--
1.7.10.4
More information about the OpenBIOS
mailing list