summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJanine Hagemann <j.hagemann@phytec.de>2018-08-28 08:25:04 +0200
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2018-10-04 21:15:46 +0200
commit04acabd22c2473c7dd65c3a5f900cb80d9619cc0 (patch)
tree8cc40766b5b55506b386e6f39fefeab9a3703ab5 /drivers
parent7009eae89053ee84d1b522097cb99264357c39ff (diff)
net: gmac_rockchip: Fix a register write in rk3328_gmac_set_to_rgmii
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 <j.hagemann@phytec.de> Reviewed-by: Philipp Tomisch <philipp.tomisch@theobroma-systems.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/gmac_rockchip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c
index 30a24d1947e..0f91731172d 100644
--- a/drivers/net/gmac_rockchip.c
+++ b/drivers/net/gmac_rockchip.c
@@ -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],