Lines Matching +full:sysmgr +full:- +full:syscon
1 // SPDX-License-Identifier: GPL-2.0+
15 #include <syscon.h>
34 ret = dev_read_phandle_with_args(dev, "altr,sysmgr-syscon", NULL, in dwmac_socfpga_ofdata_to_platdata()
37 dev_err(dev, "Failed to get syscon: %d\n", ret); in dwmac_socfpga_ofdata_to_platdata()
42 dev_err(dev, "Invalid number of syscon args\n"); in dwmac_socfpga_ofdata_to_platdata()
43 return -EINVAL; in dwmac_socfpga_ofdata_to_platdata()
56 return -ENOMEM; in dwmac_socfpga_ofdata_to_platdata()
59 pdata->phy_intf = range + args.args[0]; in dwmac_socfpga_ofdata_to_platdata()
60 pdata->reg_shift = args.args[1]; in dwmac_socfpga_ofdata_to_platdata()
68 struct eth_pdata *edata = &pdata->dw_eth_pdata.eth_pdata; in dwmac_socfpga_probe()
74 switch (edata->phy_interface) { in dwmac_socfpga_probe()
87 return -EINVAL; in dwmac_socfpga_probe()
98 modemask = SYSMGR_EMACGRP_CTRL_PHYSEL_MASK << pdata->reg_shift; in dwmac_socfpga_probe()
99 clrsetbits_le32(pdata->phy_intf, modemask, in dwmac_socfpga_probe()
100 modereg << pdata->reg_shift); in dwmac_socfpga_probe()
108 { .compatible = "altr,socfpga-stmmac" },