Skip to content
Commit ddebc3c7 authored by Radu Pirea (NXP OSS)'s avatar Radu Pirea (NXP OSS) Committed by Bruce Ashfield
Browse files

net: phy: nxp-c45-tja11xx: prepare the ground for TJA1120

commit fc711f2f5b8dd9cb91243a7f127542f81c5b1ae2 from
https://github.com/nxp-auto-linux/linux



Between TJA1120 and TJA1103 the hardware was improved, but some register
addresses were changed and some bit fields were moved from one register
to another.

Introduce the nxp_c45_reg_field structure and its associated functions to
abstract the differences between the PHYs.

Remove the defined bits and register addresses that are not common
between TJA1103 and TJA1120 and replace them with reg_fields and
register addresses from phydev->drv->driver_data.

Issue: ALB-10440

Signed-off-by: default avatarRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Link: https://lore.kernel.org/r/20230731091619.77961-4-radu-nicolae.pirea@oss.nxp.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
(cherry picked from commit 6c0c85da)
Signed-off-by: default avatarZhantao Tang <zhantao.tang@windriver.com>
parent a1e2fb1e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment