summaryrefslogtreecommitdiff
path: root/cpu/mpc8260/cpu.c
diff options
context:
space:
mode:
authorGary Jennejohn <garyj@denx.de>2008-11-20 11:28:38 (GMT)
committerBen Warren <biggerbadderben@gmail.com>2009-01-25 04:45:52 (GMT)
commitba705b5b1a97b47388ed48858bef6bf7b6bfcd56 (patch)
tree738172fe3d7ef84169c16e0be268c259278bceda /cpu/mpc8260/cpu.c
parentbd3980cc095af1728b994cdd8bf1ac430b6289e6 (diff)
downloadu-boot-ba705b5b1a97b47388ed48858bef6bf7b6bfcd56.tar.xz
mgcoge make ether_scc.c work with CONFIG_NET_MULTI
This change is needed for mgcoge because it uses two ethernet drivers. Add a check for the presence of the PIGGY board on mgcoge. Without this board networking cannot work and the initialization must be aborted. Only allocate rtx once to prevent DPRAM exhaustion. Initialize ether_scc.c and the keymile-specific HDLC driver (to be added soon) in eth.c. Signed-off-by: Gary Jennejohn <garyj@denx.de> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'cpu/mpc8260/cpu.c')
-rw-r--r--cpu/mpc8260/cpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpu/mpc8260/cpu.c b/cpu/mpc8260/cpu.c
index b9e748a..f4beca5 100644
--- a/cpu/mpc8260/cpu.c
+++ b/cpu/mpc8260/cpu.c
@@ -326,5 +326,8 @@ int cpu_eth_init(bd_t *bis)
#if defined(CONFIG_ETHER_ON_FCC)
fec_initialize(bis);
#endif
+#if defined(CONFIG_ETHER_ON_SCC)
+ mpc82xx_scc_enet_initialize(bd);
+#endif
return 0;
}