Lines Matching full:syscon
7 #include <linux/mfd/syscon.h>
19 struct regmap *syscon; in davinci_emac_3517_get_macid() local
21 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in davinci_emac_3517_get_macid()
22 if (IS_ERR(syscon)) { in davinci_emac_3517_get_macid()
23 if (PTR_ERR(syscon) == -ENODEV) in davinci_emac_3517_get_macid()
25 return PTR_ERR(syscon); in davinci_emac_3517_get_macid()
28 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb); in davinci_emac_3517_get_macid()
29 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb); in davinci_emac_3517_get_macid()
46 struct regmap *syscon; in cpsw_am33xx_cm_get_macid() local
48 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in cpsw_am33xx_cm_get_macid()
49 if (IS_ERR(syscon)) { in cpsw_am33xx_cm_get_macid()
50 if (PTR_ERR(syscon) == -ENODEV) in cpsw_am33xx_cm_get_macid()
52 return PTR_ERR(syscon); in cpsw_am33xx_cm_get_macid()
55 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lo); in cpsw_am33xx_cm_get_macid()
56 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_hi); in cpsw_am33xx_cm_get_macid()