projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6a6955
)
mpc8260: add fdt_fixup_ethernet support
author
Esben Haabendal
<EsbenHaabendal@gmail.com>
Wed, 18 Jun 2008 09:03:57 +0000
(11:03 +0200)
committer
Wolfgang Denk
<wd@denx.de>
Tue, 1 Jul 2008 21:44:22 +0000
(23:44 +0200)
Add support for updating mac-address and local-mac-address in fdt for
all MPC8260 targets.
Signed-off-by: Esben Haabendal <eha@doredevelopment.dk>
cpu/mpc8260/cpu.c
patch
|
blob
|
history
diff --git
a/cpu/mpc8260/cpu.c
b/cpu/mpc8260/cpu.c
index 414759e74c6749a1432a430fdb151bd5fbd3e333..4d5d141ea2667820a31e58ddbf107c82d17fd523 100644
(file)
--- a/
cpu/mpc8260/cpu.c
+++ b/
cpu/mpc8260/cpu.c
@@
-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);