Skip to contentSkip to conversation

Flat device tree suppor [...]

PATCH New DENX Support System 1 participant 1 message Mar 31, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 3/7 Flat device tree suppor [...]

Hello list,

inside the automatic U-Boot patch tracking system a new ticket [DNX#2006040142000768] was created:

<snip>

Quoted 42 lines

* 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

---

cpu/mpc85xx/cpu.c +6 -0
index 62a3de0..3261592 100644
@@ -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);
Signature · 16 lines
1.2.4



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

</snip>

Your U-Boot support team