[U-Boot-Users] [PATCH 3/7] Flat device tree support for 85xx ADS and CDS boards

Andy Fleming afleming at freescale.com
Wed Mar 22 23:38:23 CET 2006


* Fixed a bug where RAM size was not properly passed to Linux on
  85xx in the flat device tree
  Patch by John Traill 17-Mar-2006

Signed-off-by: Andy Fleming <afleming at freescale.com>

---

diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c
index 62a3de0..3261592 100644
--- a/cpu/mpc85xx/cpu.c
+++ b/cpu/mpc85xx/cpu.c
@@ -253,6 +253,12 @@ ft_cpu_setup(void *blob, bd_t *bd)
 	if (p != NULL)
 		*p = cpu_to_be32(clock);
 
+	p = ft_get_prop(blob, "/memory/reg", &len);
+	if (p != NULL) {
+		*p++ = cpu_to_be32(bd->bi_memstart);
+		*p = cpu_to_be32(bd->bi_memsize);
+	}
+
 #if defined(CONFIG_MPC85XX_TSEC1)
 	p = ft_get_prop(blob, "/" OF_SOC "/ethernet at 24000/address", &len);
 		memcpy(p, bd->bi_enetaddr, 6);
-- 
1.2.4





More information about the U-Boot mailing list