Home
last modified time | relevance | path

Searched refs:gpio_regs (Results 1 – 6 of 6) sorted by relevance

/linux/arch/powerpc/platforms/pasemi/
H A Dgpio_mdio.c27 static void __iomem *gpio_regs; variable
39 out_le32(gpio_regs+0x10, 1 << MDIO_PIN(bus)); in mdio_lo()
44 out_le32(gpio_regs, 1 << MDIO_PIN(bus)); in mdio_hi()
49 out_le32(gpio_regs+0x10, 1 << MDC_PIN(bus)); in mdc_lo()
54 out_le32(gpio_regs, 1 << MDC_PIN(bus)); in mdc_hi()
59 out_le32(gpio_regs+0x20, (1 << MDC_PIN(bus)) | (1 << MDIO_PIN(bus))); in mdio_active()
64 out_le32(gpio_regs+0x30, (1 << MDIO_PIN(bus))); in mdio_tristate()
69 return !!(in_le32(gpio_regs+0x40) & (1 << MDIO_PIN(bus))); in mdio_read()
305 gpio_regs = of_iomap(np, 0); in gpio_mdio_init()
308 if (!gpio_regs) in gpio_mdio_init()
[all …]
/linux/drivers/gpio/
H A Dgpio-rockchip.c153 data = rockchip_gpio_readl_bit(bank, offset, bank->gpio_regs->port_ddr); in rockchip_gpio_get_direction()
174 rockchip_gpio_writel_bit(bank, offset, data, bank->gpio_regs->port_ddr); in rockchip_gpio_set_direction()
187 rockchip_gpio_writel_bit(bank, offset, value, bank->gpio_regs->port_dr); in rockchip_gpio_set()
196 data = readl(bank->reg_base + bank->gpio_regs->ext_port); in rockchip_gpio_get()
208 const struct rockchip_gpio_regs *reg = bank->gpio_regs; in rockchip_gpio_set_debounce()
349 pending = readl_relaxed(bank->reg_base + bank->gpio_regs->int_status); in rockchip_irq_demux()
362 bank->gpio_regs->ext_port); in rockchip_irq_demux()
367 bank->gpio_regs->int_polarity); in rockchip_irq_demux()
374 bank->gpio_regs->int_polarity); in rockchip_irq_demux()
380 bank->gpio_regs->ext_port); in rockchip_irq_demux()
[all …]
H A Dgpio-lpc32xx.c71 struct gpio_regs { struct
129 static struct gpio_regs gpio_grp_regs_p0 = {
137 static struct gpio_regs gpio_grp_regs_p1 = {
145 static struct gpio_regs gpio_grp_regs_p2 = {
153 static struct gpio_regs gpio_grp_regs_p3 = {
164 struct gpio_regs *gpio_grp;
H A Dgpio-zynq.c104 struct gpio_regs { struct
132 struct gpio_regs context; argument
/linux/sound/soc/codecs/
H A Dcs35l45.c1069 unsigned int gpio_regs[] = {CS35L45_GPIO1_CTRL1, CS35L45_GPIO2_CTRL1, in cs35l45_apply_property_config() local
1089 regmap_update_bits(cs35l45->regmap, gpio_regs[i], in cs35l45_apply_property_config()
1095 regmap_update_bits(cs35l45->regmap, gpio_regs[i], in cs35l45_apply_property_config()
1101 regmap_update_bits(cs35l45->regmap, gpio_regs[i], in cs35l45_apply_property_config()
1107 regmap_update_bits(cs35l45->regmap, gpio_regs[i], in cs35l45_apply_property_config()
/linux/drivers/pinctrl/
H A Dpinctrl-rockchip.h338 const struct rockchip_gpio_regs *gpio_regs; member