Searched refs:pin_reg (Results 1 – 5 of 5) sorted by relevance
42 u32 pin_reg; in amd_gpio_get_direction() local46 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() local62 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() local78 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 …]
170 const struct imx_pin_reg *pin_reg; in imx_pmx_set_one_pin_mmio() local174 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() local302 if (pin_reg->conf_reg == -1) { in imx_pinconf_get_mmio()[all …]
225 const struct imx_pin_reg *pin_reg; in imx8ulp_pmx_gpio_set_direction() local228 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()
266 const struct imx_pin_reg *pin_reg; in imx7ulp_pmx_gpio_set_direction() local269 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()
298 const struct imx_pin_reg *pin_reg; in vf610_pmx_gpio_set_direction() local301 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()