Lines Matching full:emac
3 * emac-rockchip.c - Rockchip EMAC specific glue layer
16 #include "emac.h"
28 struct arc_emac_priv emac; member
38 struct rockchip_priv_data *emac = priv; in emac_rockchip_set_mac_speed() local
39 u32 speed_offset = emac->soc_data->grf_speed_offset; in emac_rockchip_set_mac_speed()
55 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed()
77 .compatible = "rockchip,rk3036-emac",
81 .compatible = "rockchip,rk3066-emac",
85 .compatible = "rockchip,rk3188-emac",
113 priv->emac.drv_name = DRV_NAME; in emac_rockchip_probe()
114 priv->emac.set_mac_speed = emac_rockchip_set_mac_speed; in emac_rockchip_probe()
139 priv->emac.clk = devm_clk_get(dev, "hclk"); in emac_rockchip_probe()
140 if (IS_ERR(priv->emac.clk)) { in emac_rockchip_probe()
142 PTR_ERR(priv->emac.clk)); in emac_rockchip_probe()
143 err = PTR_ERR(priv->emac.clk); in emac_rockchip_probe()
228 dev_err(dev, "failed to probe arc emac (%d)\n", err); in emac_rockchip_probe()
277 MODULE_DESCRIPTION("Rockchip EMAC platform driver");