aboutsummaryrefslogtreecommitdiff
path: root/hw/psi.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2016-11-17 18:05:19 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-12-21 16:56:17 +1100
commit5413f5c9a1c3183711f1062ff19dfda39cfb711f (patch)
treea3bfbee85fcfa92c1ea02c862f3e6821c1a91762 /hw/psi.c
parent77be3339fba1ea188b19bde5c4199b63c9024a30 (diff)
downloadskiboot-5413f5c9a1c3183711f1062ff19dfda39cfb711f.zip
skiboot-5413f5c9a1c3183711f1062ff19dfda39cfb711f.tar.gz
skiboot-5413f5c9a1c3183711f1062ff19dfda39cfb711f.tar.bz2
tree-wide: use dt_add_property_u64s() where we can
A few places (mostly old code) were using: add_property_cells(hi32(number), lo32(number)); This patch converts them to use the helper rather than doing it manually. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Reviewed-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/psi.c')
-rw-r--r--hw/psi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/psi.c b/hw/psi.c
index 533eabd..8c24ee6 100644
--- a/hw/psi.c
+++ b/hw/psi.c
@@ -869,7 +869,7 @@ static void psi_create_mm_dtnode(struct psi *psi)
return;
/* Hard wire size to 4G */
- dt_add_property_cells(np, "reg", hi32(addr), lo32(addr), 1, 0);
+ dt_add_property_u64s(np, "reg", addr, 0x100000000ull);
switch (proc_gen) {
case proc_gen_p7:
dt_add_property_strings(np, "compatible", "ibm,psi",