Home
last modified time | relevance | path

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

/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 …]
/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-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()