diff options
author | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-01-14 11:50:54 +0100 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2014-01-14 11:50:54 +0100 |
commit | e6fe4bd989b93b1f37a25771fc14478dd33aa0df (patch) | |
tree | 58943761873a212fa7d7547e5220b16d67fb5daa /board/freescale | |
parent | b02bfc4dfcef3be8276521e1933573e97a5cf203 (diff) | |
parent | a6bbee66197759f790de83181924bf1d2cf482b2 (diff) | |
download | u-boot-imx-e6fe4bd989b93b1f37a25771fc14478dd33aa0df.zip u-boot-imx-e6fe4bd989b93b1f37a25771fc14478dd33aa0df.tar.gz u-boot-imx-e6fe4bd989b93b1f37a25771fc14478dd33aa0df.tar.bz2 |
Merge 'u-boot-imx/master' into 'u-boot-arm/master'
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mx6qarm2/mx6qarm2.c | 7 | ||||
-rw-r--r-- | board/freescale/mx6qsabreauto/mx6qsabreauto.c | 8 | ||||
-rw-r--r-- | board/freescale/mx6sabresd/mx6sabresd.c | 8 | ||||
-rw-r--r-- | board/freescale/mx6slevk/mx6slevk.c | 10 |
4 files changed, 5 insertions, 28 deletions
diff --git a/board/freescale/mx6qarm2/mx6qarm2.c b/board/freescale/mx6qarm2/mx6qarm2.c index e063407..6c51f3a 100644 --- a/board/freescale/mx6qarm2/mx6qarm2.c +++ b/board/freescale/mx6qarm2/mx6qarm2.c @@ -186,13 +186,10 @@ int fecmxc_mii_postcall(int phy) int board_eth_init(bd_t *bis) { struct eth_device *dev; - int ret; + int ret = cpu_eth_init(bis); - ret = cpu_eth_init(bis); - if (ret) { - printf("FEC MXC: %s:failed\n", __func__); + if (ret) return ret; - } dev = eth_get_dev_by_name("FEC"); if (!dev) { diff --git a/board/freescale/mx6qsabreauto/mx6qsabreauto.c b/board/freescale/mx6qsabreauto/mx6qsabreauto.c index fc75eae..928dadf 100644 --- a/board/freescale/mx6qsabreauto/mx6qsabreauto.c +++ b/board/freescale/mx6qsabreauto/mx6qsabreauto.c @@ -192,15 +192,9 @@ int board_phy_config(struct phy_device *phydev) int board_eth_init(bd_t *bis) { - int ret; - setup_iomux_enet(); - ret = cpu_eth_init(bis); - if (ret) - printf("FEC MXC: %s:failed\n", __func__); - - return ret; + return cpu_eth_init(bis); } #define BOARD_REV_B 0x200 diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index 2ffc3b8..12d8c56 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -453,15 +453,9 @@ int overwrite_console(void) int board_eth_init(bd_t *bis) { - int ret; - setup_iomux_enet(); - ret = cpu_eth_init(bis); - if (ret) - printf("FEC MXC: %s:failed\n", __func__); - - return ret; + return cpu_eth_init(bis); } int board_early_init_f(void) diff --git a/board/freescale/mx6slevk/mx6slevk.c b/board/freescale/mx6slevk/mx6slevk.c index 643fdac..dfc5746 100644 --- a/board/freescale/mx6slevk/mx6slevk.c +++ b/board/freescale/mx6slevk/mx6slevk.c @@ -106,17 +106,9 @@ int board_mmc_init(bd_t *bis) #ifdef CONFIG_FEC_MXC int board_eth_init(bd_t *bis) { - int ret; - setup_iomux_fec(); - ret = cpu_eth_init(bis); - if (ret) { - printf("FEC MXC: %s:failed\n", __func__); - return ret; - } - - return 0; + return cpu_eth_init(bis); } static int setup_fec(void) |