summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2020-05-04 09:50:18 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-05 12:22:05 +0200
commit660db35a75aa03535153dddda527dc9a62f090e9 (patch)
treeac053c332a01dbaa08ce100c0513613b40745863 /drivers
parent9fcf81d5cf7c5e2384442e733e91d5c6f22cb0f8 (diff)
downloadbarebox-660db35a75aa03535153dddda527dc9a62f090e9.tar.gz
barebox-660db35a75aa03535153dddda527dc9a62f090e9.tar.xz
net: cpsw: fix cpsw_slave_regs register offsets
The cpsw_slave_regs struct also start with max_blks register, so here we also have to skip the first two bytes like for .host_port_reg_ofs Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/cpsw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c
index b9a6575009..7fba4d27f9 100644
--- a/drivers/net/cpsw.c
+++ b/drivers/net/cpsw.c
@@ -1015,7 +1015,7 @@ static struct cpsw_data cpsw1_data = {
.cpdma_reg_ofs = 0x100,
.state_ram_ofs = 0x200,
.ale_reg_ofs = 0x600,
- .slave_ofs = 0x050,
+ .slave_ofs = 0x058,
.slave_size = 0x040,
.sliver_ofs = 0x700,
/* FIXME: mdio_reg_ofs and cppi_ram_ofs missing */
@@ -1026,7 +1026,7 @@ static struct cpsw_data cpsw2_data = {
.cpdma_reg_ofs = 0x800,
.state_ram_ofs = 0xa00,
.ale_reg_ofs = 0xd00,
- .slave_ofs = 0x200,
+ .slave_ofs = 0x208,
.slave_size = 0x100,
.sliver_ofs = 0xd80,
.mdio_reg_ofs = 0x1000,