summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorMugunthan V N <mugunthanvnm@ti.com>2013-07-08 16:04:37 +0530
committerTom Rini <trini@ti.com>2013-07-26 16:39:11 -0400
commit2bf36ac638ab2db9f0295aa47064976eeebf80c1 (patch)
treed15b7d976bd10d20226258595cdeba5d9f2cc94e /board
parent5d4dbf1c3a1d86b4289ab3e5cde120a6f3c26e9b (diff)
downloadtalos-obmc-uboot-2bf36ac638ab2db9f0295aa47064976eeebf80c1.tar.gz
talos-obmc-uboot-2bf36ac638ab2db9f0295aa47064976eeebf80c1.zip
drivers: net: cpsw: remove hard coding bd ram for cpsw
BD ram address may vary in various SOC, so removing the hardcoding and passing the same information through platform data Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Diffstat (limited to 'board')
-rw-r--r--board/ti/am335x/board.c1
-rw-r--r--board/ti/ti814x/evm.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index 7138d739e4..15e249d605 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -435,6 +435,7 @@ static struct cpsw_platform_data cpsw_data = {
.ale_entries = 1024,
.host_port_reg_ofs = 0x108,
.hw_stats_reg_ofs = 0x900,
+ .bd_ram_ofs = 0x2000,
.mac_control = (1 << 5),
.control = cpsw_control,
.host_port_num = 0,
diff --git a/board/ti/ti814x/evm.c b/board/ti/ti814x/evm.c
index 17fba5aecd..c469645ff3 100644
--- a/board/ti/ti814x/evm.c
+++ b/board/ti/ti814x/evm.c
@@ -207,6 +207,7 @@ static struct cpsw_platform_data cpsw_data = {
.ale_entries = 1024,
.host_port_reg_ofs = 0x28,
.hw_stats_reg_ofs = 0x400,
+ .bd_ram_ofs = 0x2000,
.mac_control = (1 << 5),
.control = cpsw_control,
.host_port_num = 0,
OpenPOWER on IntegriCloud