Home
last modified time | relevance | path

Searched refs:pin_reg (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/drivers/pinctrl/
Dpinctrl-amd.c41 u32 pin_reg; in amd_gpio_get_direction() local
45 pin_reg = readl(gpio_dev->base + offset * 4); in amd_gpio_get_direction()
48 if (pin_reg & BIT(OUTPUT_ENABLE_OFF)) in amd_gpio_get_direction()
57 u32 pin_reg; in amd_gpio_direction_input() local
61 pin_reg = readl(gpio_dev->base + offset * 4); in amd_gpio_direction_input()
62 pin_reg &= ~BIT(OUTPUT_ENABLE_OFF); in amd_gpio_direction_input()
63 writel(pin_reg, gpio_dev->base + offset * 4); in amd_gpio_direction_input()
72 u32 pin_reg; in amd_gpio_direction_output() local
77 pin_reg = readl(gpio_dev->base + offset * 4); in amd_gpio_direction_output()
78 pin_reg |= BIT(OUTPUT_ENABLE_OFF); in amd_gpio_direction_output()
[all …]
/linux-6.1.9/drivers/pinctrl/freescale/
Dpinctrl-imx.c168 const struct imx_pin_reg *pin_reg; in imx_pmx_set_one_pin_mmio() local
172 pin_reg = &ipctl->pin_regs[pin_id]; in imx_pmx_set_one_pin_mmio()
174 if (pin_reg->mux_reg == -1) { 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()
188 pin_reg->mux_reg, reg); in imx_pmx_set_one_pin_mmio()
190 writel(pin_mmio->mux_mode, ipctl->base + pin_reg->mux_reg); in imx_pmx_set_one_pin_mmio()
192 pin_reg->mux_reg, pin_mmio->mux_mode); in imx_pmx_set_one_pin_mmio()
354 const struct imx_pin_reg *pin_reg = &ipctl->pin_regs[pin_id]; in imx_pinconf_get_mmio() local
356 if (pin_reg->conf_reg == -1) { in imx_pinconf_get_mmio()
[all …]
Dpinctrl-imx8ulp.c225 const struct imx_pin_reg *pin_reg; in imx8ulp_pmx_gpio_set_direction() local
228 pin_reg = &ipctl->pin_regs[offset]; in imx8ulp_pmx_gpio_set_direction()
229 if (pin_reg->mux_reg == -1) 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.c267 const struct imx_pin_reg *pin_reg; in imx7ulp_pmx_gpio_set_direction() local
270 pin_reg = &ipctl->pin_regs[offset]; in imx7ulp_pmx_gpio_set_direction()
271 if (pin_reg->mux_reg == -1) 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.c298 const struct imx_pin_reg *pin_reg; in vf610_pmx_gpio_set_direction() local
301 pin_reg = &ipctl->pin_regs[offset]; in vf610_pmx_gpio_set_direction()
302 if (pin_reg->mux_reg == -1) 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()