summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2014-05-22 14:37:12 +0530
committerTom Rini <trini@ti.com>2014-07-25 15:21:05 -0400
commit4c8014b9429b593c28fbf0384a6c7ded8587806a (patch)
treef1e0f8867c038d9eb2ebacf69b9e23ede37fa7fb /board
parente5ff845bff6dfc6e4d1d8b75fb817a8bc7635b2f (diff)
downloadu-boot-imx-4c8014b9429b593c28fbf0384a6c7ded8587806a.zip
u-boot-imx-4c8014b9429b593c28fbf0384a6c7ded8587806a.tar.gz
u-boot-imx-4c8014b9429b593c28fbf0384a6c7ded8587806a.tar.bz2
ARM: dra7_evm: Add Ethernet support for dra72x platform
Set the active_slave to 1 as slave 1 is pinned out in dra72x base board Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Diffstat (limited to 'board')
-rw-r--r--board/ti/dra7xx/evm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
index 073d151..955c16f 100644
--- a/board/ti/dra7xx/evm.c
+++ b/board/ti/dra7xx/evm.c
@@ -157,6 +157,8 @@ int spl_start_uboot(void)
#define VIN2A_D15_DLY_VAL ((0x4 << 5) + 0x0)
#define VIN2A_D14_DLY_VAL ((0x4 << 5) + 0x0)
+extern u32 *const omap_si_rev;
+
static void cpsw_control(int enabled)
{
/* VTP can be added here */
@@ -183,7 +185,7 @@ static struct cpsw_platform_data cpsw_data = {
.mdio_div = 0xff,
.channels = 8,
.cpdma_reg_ofs = 0x800,
- .slaves = 1,
+ .slaves = 2,
.slave_data = cpsw_slaves,
.ale_reg_ofs = 0xd00,
.ale_entries = 1024,
@@ -254,6 +256,9 @@ int board_eth_init(bd_t *bis)
ctrl_val |= 0x22;
writel(ctrl_val, (*ctrl)->control_core_control_io1);
+ if (*omap_si_rev == DRA722_ES1_0)
+ cpsw_data.active_slave = 1;
+
ret = cpsw_register(&cpsw_data);
if (ret < 0)
printf("Error %d registering CPSW switch\n", ret);