I forgot something. On Mon, May 04, 2020 at 09:50:18AM +0200, Michael Grzeschik wrote: >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 >--- > drivers/net/cpsw.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c >index c3cc43cc5b..d745737aa3 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, >-- >2.26.2 > > >_______________________________________________ >barebox mailing list >barebox@lists.infradead.org >http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |