Lines Matching refs:soc_data
31 const struct emac_rockchip_soc_data *soc_data; member
40 u32 speed_offset = emac->soc_data->grf_speed_offset; in emac_rockchip_set_mac_speed()
56 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed()
136 priv->soc_data = match->data; in emac_rockchip_probe()
180 data = (1 << (priv->soc_data->grf_speed_offset + 16)) | in emac_rockchip_probe()
181 (1 << priv->soc_data->grf_speed_offset); in emac_rockchip_probe()
183 data |= (1 << (priv->soc_data->grf_mode_offset + 16)) | in emac_rockchip_probe()
184 (0 << priv->soc_data->grf_mode_offset); in emac_rockchip_probe()
186 err = regmap_write(priv->grf, priv->soc_data->grf_offset, data); in emac_rockchip_probe()
201 if (priv->soc_data->need_div_macclk) { in emac_rockchip_probe()
234 if (priv->soc_data->need_div_macclk) in emac_rockchip_probe()
259 if (priv->soc_data->need_div_macclk) in emac_rockchip_remove()