[Skiboot] [PATCH v2] PHB3: Add M64 BAR count as a device node property

Wei Yang weiyang at linux.vnet.ibm.com
Tue Oct 20 21:28:56 AEDT 2015


PHB3 has 16 M64 BARs, which will be used in host to map 64bit MMIO range.
This is more reasonable for host to retrieve this value than just use a
hard coded value.

This patch adds this property in device node, so that host could get it
from platform.

Signed-off-by: Wei Yang <weiyang at linux.vnet.ibm.com>

---
v2:
   use "count" instead of "number"

---
 hw/phb3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/phb3.c b/hw/phb3.c
index ddb237e..cfd6086 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -4221,6 +4221,7 @@ static void phb3_add_properties(struct phb3 *p)
 			      hi32(m64b), lo32(m64b),
 			      hi32(m64b), lo32(m64b),
 			      hi32(m64s), lo32(m64s));
+	dt_add_property_cells(np, "ibm,opal-m64-count", 16);
 	dt_add_property(np, "ibm,opal-single-pe", NULL, 0);
 	//dt_add_property_cells(np, "ibm,opal-msi-ports", 2048);
 	dt_add_property_cells(np, "ibm,opal-num-pes", 256);
-- 
2.5.0



More information about the Skiboot mailing list