Skip to contentSkip to conversation

PPC: Bamboo: Fix memory size DT property

PATCH New Alexander Graf 1 participant 1 message Oct 6, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: Bamboo: Fix memory size DT property

Device tree properties need to be specified in big endian. Fix the bamboo memory size property accordingly.

---
 hw/ppc440_bamboo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/ppc440_bamboo.c +1 -1
index c198071..9286438 100644
@@ -59,7 +59,7 @@ static int bamboo_load_device_tree(target_phys_addr_t addr,
 {
     int ret = -1;
 #ifdef CONFIG_FDT
-    uint32_t mem_reg_property[] = { 0, 0, ramsize };
+    uint32_t mem_reg_property[] = { 0, 0, cpu_to_be32(ramsize) };
     char *filename;
     int fdt_size;
     void *fdt;
Signature · 1 line
1.6.0.2