summaryrefslogtreecommitdiff
path: root/board/ep8248/ep8248.c
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel@ziswiler.com>2009-09-09 21:22:08 +0200
committerWolfgang Denk <wd@denx.de>2009-09-10 23:08:48 +0200
commit45f89f340b4d8aa099fd022260dcb13cf3321b61 (patch)
tree8e06315c26e9bc3388566cce5993fcc905a5ae70 /board/ep8248/ep8248.c
parentaa0c7a86cd236b8193218a09e1365c8991bb5ddc (diff)
downloadu-boot-imx-45f89f340b4d8aa099fd022260dcb13cf3321b61.zip
u-boot-imx-45f89f340b4d8aa099fd022260dcb13cf3321b61.tar.gz
u-boot-imx-45f89f340b4d8aa099fd022260dcb13cf3321b61.tar.bz2
ep8248: add support for device tree and secondary Ethernet interface.
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@noser.com>
Diffstat (limited to 'board/ep8248/ep8248.c')
-rw-r--r--board/ep8248/ep8248.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/board/ep8248/ep8248.c b/board/ep8248/ep8248.c
index bc20ba7..57d39aa 100644
--- a/board/ep8248/ep8248.c
+++ b/board/ep8248/ep8248.c
@@ -35,8 +35,8 @@
* according to the five values podr/pdir/ppar/psor/pdat for that entry
*/
-#define CONFIG_SYS_FCC1 (CONFIG_ETHER_INDEX == 1)
-#define CONFIG_SYS_FCC2 (CONFIG_ETHER_INDEX == 2)
+#define CONFIG_SYS_FCC1 (CONFIG_ETHER_ON_FCC1 == 1)
+#define CONFIG_SYS_FCC2 (CONFIG_ETHER_ON_FCC2 == 1)
const iop_conf_t iop_conf_tab[4][32] = {
@@ -261,3 +261,11 @@ int checkboard(void)
return 0;
}
+
+#if defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT)
+void ft_board_setup(void *blob, bd_t *bd)
+{
+ ft_cpu_setup( blob, bd);
+}
+#endif /* defined(CONFIG_OF_BOARD_SETUP) && defined(CONFIG_OF_LIBFDT) */
+