]> Git Repo - u-boot.git/commitdiff
net: gmac_rockchip: Fix a register write in rk3328_gmac_set_to_rgmii
authorJanine Hagemann <[email protected]>
Tue, 28 Aug 2018 06:25:04 +0000 (08:25 +0200)
committerPhilipp Tomsich <[email protected]>
Thu, 4 Oct 2018 19:15:46 +0000 (21:15 +0200)
We have to use RK3328_RXCLK_DLY_ENA_GMAC_ENABLE instead of
RK3328_RXCLK_DLY_ENA_GMAC_MASK in rk3328_gmac_set_to_rgmii()
to enable the RX delay.
The MASK was used in a wrong way.

Signed-off-by: Janine Hagemann <[email protected]>
Reviewed-by: Philipp Tomisch <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/gmac_rockchip.c

index 30a24d1947e6bb76d07eaccc50f96582c05f9372..0f91731172d180e7d8e44819ef13f91038cb3cef 100644 (file)
@@ -350,7 +350,7 @@ static void rk3328_gmac_set_to_rgmii(struct gmac_rockchip_platdata *pdata)
                     RK3328_RXCLK_DLY_ENA_GMAC_MASK |
                     RK3328_TXCLK_DLY_ENA_GMAC_MASK,
                     RK3328_GMAC_PHY_INTF_SEL_RGMII |
-                    RK3328_RXCLK_DLY_ENA_GMAC_MASK |
+                    RK3328_RXCLK_DLY_ENA_GMAC_ENABLE |
                     RK3328_TXCLK_DLY_ENA_GMAC_ENABLE);
 
        rk_clrsetreg(&grf->mac_con[0],
This page took 0.033945 seconds and 4 git commands to generate.