OSDN Git Service

net: stmmac: dwmac-meson8b: add support for the RGMII RX delay on G12A
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Wed, 6 Jan 2021 13:42:51 +0000 (14:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Jan 2021 23:58:33 +0000 (15:58 -0800)
commitde94fc104d58ea2f53e46404b0c2b73b9bdf5774
tree2040350fd5d6ab92f0c7f5609965d4e27bb8cb68
parent7985244d10eada10d36804752f21dfce1fea0018
net: stmmac: dwmac-meson8b: add support for the RGMII RX delay on G12A

Amlogic Meson G12A (and newer: G12B, SM1) SoCs have a more advanced RX
delay logic. Instead of fine-tuning the delay in the nanoseconds range
it now allows tuning in 200 picosecond steps. This support comes with
new bits in the PRG_ETH1[19:16] register.

Add support for validating the RGMII RX delay as well as configuring the
register accordingly on these platforms.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c