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

Wei Yang weiyang at linux.vnet.ibm.com
Tue Oct 20 17:54:06 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>
 hw/phb3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/phb3.c b/hw/phb3.c
index ddb237e..c519854 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-number", 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);

More information about the Skiboot mailing list