Home
last modified time | relevance | path

Searched refs:ipctl (Results 1 – 8 of 8) sorted by relevance

/drivers/pinctrl/renesas/
Dpinctrl-rzn1.c175 static void rzn1_hw_set_lock(struct rzn1_pinctrl *ipctl, u8 lock, u8 value) in rzn1_hw_set_lock() argument
183 u32 val = ipctl->lev1_protect_phys | !(value & LOCK_LEVEL1); in rzn1_hw_set_lock()
185 writel(val, &ipctl->lev1->status_protect); in rzn1_hw_set_lock()
189 u32 val = ipctl->lev2_protect_phys | !(value & LOCK_LEVEL2); in rzn1_hw_set_lock()
191 writel(val, &ipctl->lev2->status_protect); in rzn1_hw_set_lock()
195 static void rzn1_pinctrl_mdio_select(struct rzn1_pinctrl *ipctl, int mdio, in rzn1_pinctrl_mdio_select() argument
198 if (ipctl->mdio_func[mdio] >= 0 && ipctl->mdio_func[mdio] != func) in rzn1_pinctrl_mdio_select()
199 dev_warn(ipctl->dev, "conflicting setting for mdio%d!\n", mdio); in rzn1_pinctrl_mdio_select()
200 ipctl->mdio_func[mdio] = func; in rzn1_pinctrl_mdio_select()
202 dev_dbg(ipctl->dev, "setting mdio%d to %u\n", mdio, func); in rzn1_pinctrl_mdio_select()
[all …]
/drivers/pinctrl/freescale/
Dpinctrl-imx.c60 struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx_dt_node_to_map() local
61 const struct imx_pinctrl_soc_info *info = ipctl->info; in imx_dt_node_to_map()
75 dev_err(ipctl->dev, "unable to find group for node %pOFn\n", np); in imx_dt_node_to_map()
163 static int imx_pmx_set_one_pin_mmio(struct imx_pinctrl *ipctl, in imx_pmx_set_one_pin_mmio() argument
166 const struct imx_pinctrl_soc_info *info = ipctl->info; in imx_pmx_set_one_pin_mmio()
172 pin_reg = &ipctl->pin_regs[pin_id]; in imx_pmx_set_one_pin_mmio()
175 dev_dbg(ipctl->dev, "Pin(%s) does not support mux function\n", in imx_pmx_set_one_pin_mmio()
183 reg = readl(ipctl->base + pin_reg->mux_reg); in imx_pmx_set_one_pin_mmio()
186 writel(reg, ipctl->base + pin_reg->mux_reg); in imx_pmx_set_one_pin_mmio()
187 dev_dbg(ipctl->dev, "write: offset 0x%x val 0x%x\n", in imx_pmx_set_one_pin_mmio()
[all …]
Dpinctrl-imx1-core.c75 static void __iomem *imx1_mem(struct imx1_pinctrl *ipctl, unsigned int pin_id) in imx1_mem() argument
78 return ipctl->base + port * MX1_PORT_STRIDE; in imx1_mem()
85 static void imx1_write_2bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_write_2bit() argument
88 void __iomem *reg = imx1_mem(ipctl, pin_id) + reg_offset; in imx1_write_2bit()
98 dev_dbg(ipctl->dev, "write: register 0x%p offset %d value 0x%x\n", in imx1_write_2bit()
112 static void imx1_write_bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_write_bit() argument
115 void __iomem *reg = imx1_mem(ipctl, pin_id) + reg_offset; in imx1_write_bit()
132 static int imx1_read_2bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_read_2bit() argument
135 void __iomem *reg = imx1_mem(ipctl, pin_id) + reg_offset; in imx1_read_2bit()
145 static int imx1_read_bit(struct imx1_pinctrl *ipctl, unsigned int pin_id, in imx1_read_bit() argument
[all …]
Dpinctrl-scu.c76 struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx_pinconf_set_scu() local
102 dev_dbg(ipctl->dev, "write: pin_id %u config 0x%x val 0x%x\n", in imx_pinconf_set_scu()
109 void imx_pinctrl_parse_pin_scu(struct imx_pinctrl *ipctl, in imx_pinctrl_parse_pin_scu() argument
113 const struct imx_pinctrl_soc_info *info = ipctl->info; in imx_pinctrl_parse_pin_scu()
123 dev_dbg(ipctl->dev, "%s: 0x%x 0x%08lx", info->pins[pin->pin].name, in imx_pinctrl_parse_pin_scu()
Dpinctrl-imx8ulp.c224 struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx8ulp_pmx_gpio_set_direction() local
228 pin_reg = &ipctl->pin_regs[offset]; in imx8ulp_pmx_gpio_set_direction()
232 reg = readl(ipctl->base + pin_reg->mux_reg); in imx8ulp_pmx_gpio_set_direction()
237 writel(reg, ipctl->base + pin_reg->mux_reg); in imx8ulp_pmx_gpio_set_direction()
Dpinctrl-imx7ulp.c266 struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in imx7ulp_pmx_gpio_set_direction() local
270 pin_reg = &ipctl->pin_regs[offset]; in imx7ulp_pmx_gpio_set_direction()
274 reg = readl(ipctl->base + pin_reg->mux_reg); in imx7ulp_pmx_gpio_set_direction()
279 writel(reg, ipctl->base + pin_reg->mux_reg); in imx7ulp_pmx_gpio_set_direction()
Dpinctrl-vf610.c297 struct imx_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev); in vf610_pmx_gpio_set_direction() local
301 pin_reg = &ipctl->pin_regs[offset]; in vf610_pmx_gpio_set_direction()
306 reg = readl(ipctl->base + pin_reg->mux_reg); in vf610_pmx_gpio_set_direction()
311 writel(reg, ipctl->base + pin_reg->mux_reg); in vf610_pmx_gpio_set_direction()
Dpinctrl-imx.h120 void (*imx_pinctrl_parse_pin)(struct imx_pinctrl *ipctl,
156 void imx_pinctrl_parse_pin_scu(struct imx_pinctrl *ipctl,