Home
last modified time | relevance | path

Searched refs:gpio_base (Results 1 – 25 of 90) sorted by relevance

1234

/linux-6.6.21/arch/arm/mach-vt8500/
Dvt8500.c66 void __iomem *gpio_base; in vt8500_init() local
74 gpio_base = of_iomap(np, 0); in vt8500_init()
76 if (!gpio_base) in vt8500_init()
82 gpio_base = ioremap(LEGACY_GPIO_BASE, 0x1000); in vt8500_init()
83 if (!gpio_base) in vt8500_init()
87 if (gpio_base) { in vt8500_init()
88 writel(readl(gpio_base + VT8500_GPIO_MUX_REG) | 1, in vt8500_init()
89 gpio_base + VT8500_GPIO_MUX_REG); in vt8500_init()
90 iounmap(gpio_base); in vt8500_init()
106 gpio_base = of_iomap(np, 0); in vt8500_init()
[all …]
/linux-6.6.21/drivers/pinctrl/actions/
Dpinctrl-owl.c538 void __iomem *gpio_base; in owl_gpio_request() local
545 gpio_base = pctrl->base + port->offset; in owl_gpio_request()
552 owl_gpio_update_reg(gpio_base + port->outen, offset, true); in owl_gpio_request()
562 void __iomem *gpio_base; in owl_gpio_free() local
569 gpio_base = pctrl->base + port->offset; in owl_gpio_free()
573 owl_gpio_update_reg(gpio_base + port->outen, offset, false); in owl_gpio_free()
576 owl_gpio_update_reg(gpio_base + port->inen, offset, false); in owl_gpio_free()
584 void __iomem *gpio_base; in owl_gpio_get() local
592 gpio_base = pctrl->base + port->offset; in owl_gpio_get()
595 val = readl_relaxed(gpio_base + port->dat); in owl_gpio_get()
[all …]
/linux-6.6.21/arch/mips/loongson2ef/lemote-2f/
Dreset.c54 int gpio_base; in fl2f_shutdown() local
58 gpio_base = lo & 0xff00; in fl2f_shutdown()
61 val = inl(gpio_base + GPIOL_OUT_EN); in fl2f_shutdown()
64 outl(val, gpio_base + GPIOL_OUT_EN); in fl2f_shutdown()
67 val = inl(gpio_base + GPIOL_OUT_VAL) & ~(1 << (13)); in fl2f_shutdown()
69 outl(val, gpio_base + GPIOL_OUT_VAL); in fl2f_shutdown()
/linux-6.6.21/drivers/gpio/
Dgpio-vf610.c33 void __iomem *gpio_base; member
90 mask &= vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_get()
95 return !!(vf610_gpio_readl(port->gpio_base + offset) & BIT(gpio)); in vf610_gpio_get()
104 vf610_gpio_writel(mask, port->gpio_base + offset); in vf610_gpio_set()
114 val = vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_input()
116 vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_input()
132 val = vf610_gpio_readl(port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_output()
134 vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR); in vf610_gpio_direction_output()
277 port->gpio_base = devm_platform_ioremap_resource(pdev, 1); in vf610_gpio_probe()
278 if (IS_ERR(port->gpio_base)) in vf610_gpio_probe()
[all …]
Dgpio-xlp.c246 void __iomem *gpio_base; in xlp_gpio_probe() local
253 gpio_base = devm_platform_ioremap_resource(pdev, 0); in xlp_gpio_probe()
254 if (IS_ERR(gpio_base)) in xlp_gpio_probe()
255 return PTR_ERR(gpio_base); in xlp_gpio_probe()
261 priv->gpio_out_en = gpio_base + GPIO_9XX_OUTPUT_EN; in xlp_gpio_probe()
262 priv->gpio_paddrv = gpio_base + GPIO_9XX_PADDRV; in xlp_gpio_probe()
263 priv->gpio_intr_stat = gpio_base + GPIO_9XX_INT_STAT; in xlp_gpio_probe()
264 priv->gpio_intr_type = gpio_base + GPIO_9XX_INT_TYPE; in xlp_gpio_probe()
265 priv->gpio_intr_pol = gpio_base + GPIO_9XX_INT_POL; in xlp_gpio_probe()
266 priv->gpio_intr_en = gpio_base + GPIO_9XX_INT_EN00; in xlp_gpio_probe()
Dgpio-brcmstb.c53 int gpio_base; member
95 return hwirq - (bank->gc.base - bank->parent_priv->gpio_base); in brcmstb_gpio_hwirq_to_offset()
121 int hwirq = offset + (gc->base - priv->gpio_base); in brcmstb_gpio_to_irq()
266 int hwbase = bank->gc.base - priv->gpio_base; in brcmstb_gpio_irq_bank_handler()
417 offset = gpiospec->args[0] - (gc->base - priv->gpio_base); in brcmstb_gpio_of_xlate()
602 static int gpio_base; in brcmstb_gpio_probe() local
616 priv->gpio_base = gpio_base; in brcmstb_gpio_probe()
656 gpio_base += MAX_GPIO_PER_BANK; in brcmstb_gpio_probe()
696 gc->base = gpio_base; in brcmstb_gpio_probe()
718 gpio_base += gc->ngpio; in brcmstb_gpio_probe()
[all …]
Dgpio-merrifield.c73 u32 gpio_base, irq_base; in mrfld_gpio_probe() local
88 gpio_base = readl(base + 1 * sizeof(u32)); in mrfld_gpio_probe()
106 priv->info.base = gpio_base; in mrfld_gpio_probe()
Dgpio-ich.c89 struct resource *gpio_base; /* GPIO IO base */ member
114 ichx_priv.gpio_base); in ichx_write_bit()
121 ichx_priv.gpio_base); in ichx_write_bit()
126 ichx_priv.gpio_base); in ichx_write_bit()
143 ichx_priv.gpio_base); in ichx_read_bit()
433 ichx_priv.gpio_base = res_base; in ichx_gpio_probe()
Dgpio-tangier.h52 unsigned int gpio_base; member
59 .gpio_base = (gstart), \
Dgpio-tps65910.c85 tps65910_board->gpio_base = -1; in tps65910_parse_dt_for_gpio()
143 if (pdata && pdata->gpio_base) in tps65910_gpio_probe()
144 tps65910_gpio->gpio_chip.base = pdata->gpio_base; in tps65910_gpio_probe()
Dgpio-tps6586x.c102 if (pdata && pdata->gpio_base) in tps6586x_gpio_probe()
103 tps6586x_gpio->gpio_chip.base = pdata->gpio_base; in tps6586x_gpio_probe()
Dgpio-davinci.c47 static void __iomem *gpio_base; variable
232 gpio_base = devm_platform_ioremap_resource(pdev, 0); in davinci_gpio_probe()
233 if (IS_ERR(gpio_base)) in davinci_gpio_probe()
234 return PTR_ERR(gpio_base); in davinci_gpio_probe()
261 chips->regs[bank] = gpio_base + offset_array[bank]; in davinci_gpio_probe()
617 writel_relaxed(binten, gpio_base + BINTEN); in davinci_gpio_irq_setup()
Dgpio-wm8350.c117 if (pdata && pdata->gpio_base) in wm8350_gpio_probe()
118 wm8350_gpio->gpio_chip.base = pdata->gpio_base; in wm8350_gpio_probe()
Dgpio-da9055.c145 if (pdata && pdata->gpio_base) in da9055_gpio_probe()
146 gpio->gp.base = pdata->gpio_base; in da9055_gpio_probe()
Dgpio-rc5t583.c121 if (pdata && pdata->gpio_base) in rc5t583_gpio_probe()
122 rc5t583_gpio->gpio_chip.base = pdata->gpio_base; in rc5t583_gpio_probe()
/linux-6.6.21/arch/mips/ath79/
Dearly_printk.c59 void __iomem *gpio_base; in prom_enable_uart() local
91 gpio_base = (void __iomem *)KSEG1ADDR(AR71XX_GPIO_BASE); in prom_enable_uart()
92 t = __raw_readl(gpio_base + AR71XX_GPIO_REG_FUNC); in prom_enable_uart()
94 __raw_writel(t, gpio_base + AR71XX_GPIO_REG_FUNC); in prom_enable_uart()
/linux-6.6.21/drivers/pinctrl/nuvoton/
Dpinctrl-wpcm450.c60 void __iomem *gpio_base; member
138 iowrite32(BIT(bit), pctrl->gpio_base + WPCM450_GPEVST); in wpcm450_gpio_irq_ack()
156 even = ioread32(pctrl->gpio_base + WPCM450_GPEVEN); in wpcm450_gpio_irq_mask()
158 iowrite32(even, pctrl->gpio_base + WPCM450_GPEVEN); in wpcm450_gpio_irq_mask()
180 even = ioread32(pctrl->gpio_base + WPCM450_GPEVEN); in wpcm450_gpio_irq_unmask()
182 iowrite32(even, pctrl->gpio_base + WPCM450_GPEVEN); in wpcm450_gpio_irq_unmask()
195 void __iomem *reg = gpio->pctrl->gpio_base + gpio->bank->datain; in wpcm450_gpio_get()
229 evpol = ioread32(pctrl->gpio_base + WPCM450_GPEVPOL); in wpcm450_gpio_fix_evpol()
231 iowrite32(evpol, pctrl->gpio_base + WPCM450_GPEVPOL); in wpcm450_gpio_fix_evpol()
254 evtype = ioread32(pctrl->gpio_base + WPCM450_GPEVTYPE); in wpcm450_gpio_set_irq_type()
[all …]
/linux-6.6.21/drivers/pcmcia/
Delectra_cf.c45 void __iomem *gpio_base; member
59 gpio = in_le32(cf->gpio_base+0x40); in electra_cf_present()
138 out_le32(cf->gpio_base+0x90, gpio); in electra_cf_set_socket()
211 cf->gpio_base = ioremap(0xfc103000, 0x1000); in electra_cf_probe()
212 if (!cf->gpio_base) in electra_cf_probe()
298 iounmap(cf->gpio_base); in electra_cf_probe()
324 iounmap(cf->gpio_base); in electra_cf_remove()
/linux-6.6.21/arch/arm/mach-ep93xx/
Dvision_ep9307.c121 .gpio_base = PCA9539_74_GPIO_BASE,
126 .gpio_base = PCA9539_75_GPIO_BASE,
131 .gpio_base = PCA9539_76_GPIO_BASE,
136 .gpio_base = PCA9539_77_GPIO_BASE,
/linux-6.6.21/arch/arm/mach-s3c/
Dmach-crag6410-module.c67 .gpio_base = CODEC_GPIO_BASE,
115 .gpio_base = CODEC_GPIO_BASE,
185 .gpio_base = CODEC_GPIO_BASE,
216 .gpio_base = CODEC_GPIO_BASE,
249 .gpio_base = CODEC_GPIO_BASE,
/linux-6.6.21/drivers/pinctrl/intel/
Dpinctrl-intel.c904 if (pgrp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_to_pin()
907 if (offset >= pgrp->gpio_base && in intel_gpio_to_pin()
908 offset < pgrp->gpio_base + pgrp->size) { in intel_gpio_to_pin()
911 pin = pgrp->base + offset - pgrp->gpio_base; in intel_gpio_to_pin()
947 return pin - padgrp->base + padgrp->gpio_base; in intel_pin_to_gpio()
1237 generic_handle_domain_irq(gc->irq.domain, padgrp->gpio_base + gpp_offset); in intel_gpio_community_irq_handler()
1302 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_add_community_ranges()
1306 gpp->gpio_base, gpp->base, in intel_gpio_add_community_ranges()
1344 if (gpp->gpio_base == INTEL_GPIO_BASE_NOMAP) in intel_gpio_ngpio()
1347 if (gpp->gpio_base + gpp->size > ngpio) in intel_gpio_ngpio()
[all …]
/linux-6.6.21/include/linux/platform_data/
Dmax732x.h9 unsigned gpio_base; member
Dgpio-htc-egpio.h23 int gpio_base; member
/linux-6.6.21/include/linux/
Dtimb_gpio.h20 int gpio_base; member
/linux-6.6.21/include/linux/mfd/da9052/
Dpdata.h21 int gpio_base; member

1234