[U-Boot] [PATCH v3 2/9] net: tsec: Fix offset of MDIO registers for DM_ETH
Bin Meng
bmeng.cn at gmail.com
Tue Jul 23 06:23:47 UTC 2019
On Fri, Jul 19, 2019 at 5:32 AM Vladimir Oltean <olteanv at gmail.com> wrote:
>
> By convention, the eTSEC MDIO controller nodes are defined in DT at
> 0x2d24000 and 0x2d50000, but actually U-Boot does not touch the
> interrupt portion of the register map (MDIO_IEVENTM, MDIO_IMASKM,
> MDIO_EMAPM).
>
> That leaves only the MDIO bus registers (MDIO_MIIMCFG, MDIO_MIIMCOM,
> MDIO_MIIMADD, MDIO_MIIMADD, MDIO_MIIMCON, MDIO_MIIMSTAT) which start at
> the 0x520 offset.
>
> So shift the DT-defined register map by the offset of MDIO_MIIMCFG when
> mapping the MDIO bus registers.
>
> Signed-off-by: Vladimir Oltean <olteanv at gmail.com>
> Acked-by: Joe Hershberger <joe.hershberger at ni.com>
> ---
> Changes from v2:
>
> None.
>
> Changes from v1:
>
> None.
>
> drivers/net/tsec.c | 13 +++++++------
> include/tsec.h | 4 +++-
> 2 files changed, 10 insertions(+), 7 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list