Skip to contentSkip to conversation

mpc8260: add fdt_fixup_ethernet support

PATCH New Esben Haabendal 2 participants 2 messages Jun 18, 2008 – Jul 5, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpc8260: add fdt_fixup_ethernet support

Add support for updating mac-address and local-mac-address in fdt for all MPC8260 targets.

---
 cpu/mpc8260/cpu.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
cpu/mpc8260/cpu.c +5 -0
index 414759e..4d5d141 100644
@@ -305,6 +305,11 @@ void ft_cpu_setup (void *blob, bd_t *bd)
 {
 	char * cpu_path = "/cpus/" OF_CPU;
 
+#if defined(CONFIG_HAS_ETH0) || defined(CONFIG_HAS_ETH1) ||\
+    defined(CONFIG_HAS_ETH2) || defined(CONFIG_HAS_ETH3)
+	fdt_fixup_ethernet(blob, bd);
+#endif
+
 	do_fixup_by_path_u32(blob, cpu_path, "bus-frequency", bd->bi_busfreq, 1);
 	do_fixup_by_path_u32(blob, cpu_path, "timebase-frequency", OF_TBCLK, 1);
 	do_fixup_by_path_u32(blob, cpu_path, "clock-frequency",

bd->bi_intfreq, 1);

#1 lore raw

PATCH 1/1 mpc8260: add fdt_fixup_ethernet support

Quoted 7 lines · In message <[email protected]> you wrote:

Add support for updating mac-address and local-mac-address in fdt for all MPC8260 targets.

---
 cpu/mpc8260/cpu.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Applied, after fixing the line wrapping of your mailer that corrupted the patch.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
e-credibility: the non-guaranteeable likelihood that  the  electronic
data you're seeing is genuine rather than somebody's made-up crap.
- Karl Lehenbauer