Searched refs:pin_reg (Results 1 – 5 of 5) sorted by relevance
41 u32 pin_reg; in amd_gpio_get_direction() local45 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() local61 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() local77 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 …]
168 const struct imx_pin_reg *pin_reg; in imx_pmx_set_one_pin_mmio() local172 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() local356 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()
267 const struct imx_pin_reg *pin_reg; in imx7ulp_pmx_gpio_set_direction() local270 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()
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()