summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorBen Warren <biggerbadderben@gmail.com>2008-07-09 01:04:19 -0700
committerBen Warren <biggerbadderben@gmail.com>2008-08-26 22:17:24 -0700
commitfc363ce35408f348cacced68505f3747a53e3d7c (patch)
treeb18d4d0725193bbdeb8385461d591f7a7ed3fd58 /cpu
parent86882b80771309bceb11c6accfd7f6f90ade8bfc (diff)
downloadu-boot-imx-fc363ce35408f348cacced68505f3747a53e3d7c.zip
u-boot-imx-fc363ce35408f348cacced68505f3747a53e3d7c.tar.gz
u-boot-imx-fc363ce35408f348cacced68505f3747a53e3d7c.tar.bz2
Moved initialization of GRETH Ethernet driver to CPU directory
Added a cpu_eth_init() function to leon2/leon3 CPU directories and removed code from net/eth.c Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/leon2/cpu.c9
-rw-r--r--cpu/leon3/cpu.c8
2 files changed, 17 insertions, 0 deletions
diff --git a/cpu/leon2/cpu.c b/cpu/leon2/cpu.c
index 1c1e24b..5de1c52 100644
--- a/cpu/leon2/cpu.c
+++ b/cpu/leon2/cpu.c
@@ -56,3 +56,12 @@ int do_reset(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
}
/* ------------------------------------------------------------------------- */
+
+extern int greth_initialize(bd_t *bis);
+
+#ifdef CONFIG_GRETH
+int cpu_eth_init(bd_t *bis)
+{
+ return greth_initialize(bis);
+}
+#endif
diff --git a/cpu/leon3/cpu.c b/cpu/leon3/cpu.c
index 306a210..1725fdb 100644
--- a/cpu/leon3/cpu.c
+++ b/cpu/leon3/cpu.c
@@ -65,3 +65,11 @@ u64 flash_read64(void *addr)
}
/* ------------------------------------------------------------------------- */
+extern int greth_initialize(bd_t *bis);
+
+#ifdef CONFIG_GRETH
+int cpu_eth_init(bd_t *bis)
+{
+ return greth_initialize(bis);
+}
+#endif