Skip to contentSkip to conversation

83xx: searching "muram-data" by compatible property

PATCH New Heiko Schocher 2 participants 2 messages Apr 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 83xx: searching "muram-data" by compatible property

if using CONFIG_BOOTCOUNT_LIMIT feature on a MPC8360 CPU in the muram-data node, the reg entry needs to be updated. This is done in fdt_fixup_muram(), but we should use the compatible "fsl,qe-muram-data" for searching the node instead of searching the muram-data node with an absolute path.

---
 cpu/mpc83xx/fdt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
cpu/mpc83xx/fdt.c +2 -2
index 4cc9047..13443cb 100644
@@ -41,8 +41,8 @@ void fdt_fixup_muram (void *blob)
 
 	data[0] = 0;
 	data[1] = QE_MURAM_SIZE - 2 * sizeof(unsigned long);
-	do_fixup_by_path(blob, "/qe/muram/data-only", "reg",
-		      data, sizeof (data), 0);
+	do_fixup_by_compat(blob, "fsl,qe-muram-data", "reg",
+			data, sizeof (data), 0);
 }
 #endif
 
Signature · 5 lines
1.6.0.6

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Applied
#1 lore raw

PATCH 1/1 83xx: searching "muram-data" by compatible property

Quoted 9 lines · On Fri, 24 Apr 2009 06:50:45 +0200 Heiko Schocher <[email protected]> wrote:

if using CONFIG_BOOTCOUNT_LIMIT feature on a MPC8360 CPU in the muram-data node, the reg entry needs to be updated. This is done in fdt_fixup_muram(), but we should use the compatible "fsl,qe-muram-data" for searching the node instead of searching the muram-data node with an absolute path.

---

applied, thanks.

Kim