[OpenBIOS] [PATCH 06/13] SPARC64: add custom sabre reg property to sabre_config_cb()
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Sat Jul 8 22:35:53 CEST 2017
Sabre has a slightly different reg property than that of other PCI host
bridges. Hardcode the correct value as taken from a real Ultra 5 device
tree.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>
---
drivers/pci.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/pci.c b/drivers/pci.c
index 8b09d94..ec637d9 100644
--- a/drivers/pci.c
+++ b/drivers/pci.c
@@ -504,6 +504,17 @@ static int sabre_configure(phandle_t dev)
{
uint32_t props[28];
+ /* Sabre has a custom reg property from the default */
+ props[0] = 0x1fe;
+ props[1] = 0x0;
+ props[2] = 0x0;
+ props[3] = 0x10000;
+ props[4] = 0x1fe;
+ props[5] = 0x1000000;
+ props[6] = 0x0;
+ props[7] = 0x100;
+ set_property(dev, "reg", (char *)props, 8 * sizeof(props[0]));
+
props[0] = 0xc0000000;
props[1] = 0x20000000;
set_property(dev, "virtual-dma", (char *)props, 2 * sizeof(props[0]));
--
1.7.10.4
More information about the OpenBIOS
mailing list