Lines Matching +full:rclk +full:-
1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/mdio-mux.h>
59 writel(REG4_PWRUPRSTSIG, priv->regs + ETH_REG4); in gxl_enable_internal_mdio()
60 writel(val, priv->regs + ETH_REG3); in gxl_enable_internal_mdio()
66 * drivers/net/phy/meson-gxl.c to properly match the PHY. in gxl_enable_internal_mdio()
69 priv->regs + ETH_REG2); in gxl_enable_internal_mdio()
73 writel(val, priv->regs + ETH_REG3); in gxl_enable_internal_mdio()
74 writel(0, priv->regs + ETH_REG4); in gxl_enable_internal_mdio()
83 writel(0, priv->regs + ETH_REG3); in gxl_enable_external_mdio()
102 return -EINVAL; in gxl_mdio_switch_fn()
109 { .compatible = "amlogic,gxl-mdio-mux", },
116 struct device *dev = &pdev->dev; in gxl_mdio_mux_probe()
118 struct clk *rclk; in gxl_mdio_mux_probe() local
123 return -ENOMEM; in gxl_mdio_mux_probe()
126 priv->regs = devm_platform_ioremap_resource(pdev, 0); in gxl_mdio_mux_probe()
127 if (IS_ERR(priv->regs)) in gxl_mdio_mux_probe()
128 return PTR_ERR(priv->regs); in gxl_mdio_mux_probe()
130 rclk = devm_clk_get_enabled(dev, "ref"); in gxl_mdio_mux_probe()
131 if (IS_ERR(rclk)) in gxl_mdio_mux_probe()
132 return dev_err_probe(dev, PTR_ERR(rclk), in gxl_mdio_mux_probe()
135 ret = mdio_mux_init(dev, dev->of_node, gxl_mdio_switch_fn, in gxl_mdio_mux_probe()
136 &priv->mux_handle, dev, NULL); in gxl_mdio_mux_probe()
147 mdio_mux_uninit(priv->mux_handle); in gxl_mdio_mux_remove()
154 .name = "gxl-mdio-mux",