Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/pinctrl/
Dpinctrl-amd.c42 u32 pin_reg; in amd_gpio_get_direction() local
46 pin_reg = readl(gpio_dev->base + offset * 4); in amd_gpio_get_direction()
49 if (pin_reg & BIT(OUTPUT_ENABLE_OFF)) in amd_gpio_get_direction()
58 u32 pin_reg; in amd_gpio_direction_input() local
62 pin_reg = readl(gpio_dev->base + offset * 4); in amd_gpio_direction_input()
63 pin_reg &= ~BIT(OUTPUT_ENABLE_OFF); in amd_gpio_direction_input()
64 writel(pin_reg, gpio_dev->base + offset * 4); in amd_gpio_direction_input()
73 u32 pin_reg; in amd_gpio_direction_output() local
78 pin_reg = readl(gpio_dev->base + offset * 4); in amd_gpio_direction_output()
79 pin_reg |= BIT(OUTPUT_ENABLE_OFF); in amd_gpio_direction_output()
[all …]
/linux-6.6.21/drivers/pinctrl/freescale/
Dpinctrl-imx.c170 const struct imx_pin_reg *pin_reg; in imx_pmx_set_one_pin_mmio() local
174 pin_reg = &ipctl->pin_regs[pin_id]; in imx_pmx_set_one_pin_mmio()
176 if (pin_reg->mux_reg == -1) { in imx_pmx_set_one_pin_mmio()
185 reg = readl(ipctl->base + pin_reg->mux_reg); in imx_pmx_set_one_pin_mmio()
188 writel(reg, ipctl->base + pin_reg->mux_reg); in imx_pmx_set_one_pin_mmio()
190 pin_reg->mux_reg, reg); in imx_pmx_set_one_pin_mmio()
192 writel(pin_mmio->mux_mode, ipctl->base + pin_reg->mux_reg); in imx_pmx_set_one_pin_mmio()
194 pin_reg->mux_reg, pin_mmio->mux_mode); in imx_pmx_set_one_pin_mmio()
300 const struct imx_pin_reg *pin_reg = &ipctl->pin_regs[pin_id]; in imx_pinconf_get_mmio() local
302 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.c266 const struct imx_pin_reg *pin_reg; in imx7ulp_pmx_gpio_set_direction() local
269 pin_reg = &ipctl->pin_regs[offset]; in imx7ulp_pmx_gpio_set_direction()
270 if (pin_reg->mux_reg == -1) in imx7ulp_pmx_gpio_set_direction()
273 reg = readl(ipctl->base + pin_reg->mux_reg); in imx7ulp_pmx_gpio_set_direction()
278 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()