Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/pinctrl/meson/
H A Dpinctrl-meson.c97 return !!(readl(priv->reg_gpio + reg) & BIT(bit)); in meson_gpio_get()
111 clrsetbits_le32(priv->reg_gpio + reg, BIT(bit), value ? BIT(bit) : 0); in meson_gpio_set()
127 val = readl(priv->reg_gpio + reg); in meson_gpio_get_direction()
143 setbits_le32(priv->reg_gpio + reg, BIT(bit)); in meson_gpio_direction_input()
160 clrbits_le32(priv->reg_gpio + reg, BIT(bit)); in meson_gpio_direction_output()
167 clrsetbits_le32(priv->reg_gpio + reg, BIT(bit), value ? BIT(bit) : 0); in meson_gpio_direction_output()
314 priv->reg_gpio = (void __iomem *)addr; in meson_pinctrl_probe()
H A Dpinctrl-meson.h41 void __iomem *reg_gpio; member
/openbmc/linux/drivers/pinctrl/meson/
H A Dpinctrl-meson.c193 return regmap_update_bits(pc->reg_gpio, reg, BIT(bit), in meson_pinconf_set_gpio_bit()
210 ret = regmap_read(pc->reg_gpio, reg, &val); in meson_pinconf_get_gpio_bit()
599 regmap_read(pc->reg_gpio, reg, &val); in meson_gpio_get()
688 pc->reg_gpio = meson_map_resource(pc, gpio_np, "gpio"); in meson_pinctrl_parse_dt()
689 if (IS_ERR_OR_NULL(pc->reg_gpio)) { in meson_pinctrl_parse_dt()
691 return pc->reg_gpio ? PTR_ERR(pc->reg_gpio) : -ENOENT; in meson_pinctrl_parse_dt()
727 pc->reg_pull = pc->reg_gpio; in meson_a1_parse_dt_extra()
728 pc->reg_pullen = pc->reg_gpio; in meson_a1_parse_dt_extra()
729 pc->reg_ds = pc->reg_gpio; in meson_a1_parse_dt_extra()
H A Dpinctrl-meson.h133 struct regmap *reg_gpio; member
H A Dpinctrl-meson-g12a.c1372 pc->reg_pull = pc->reg_gpio; in meson_g12a_aobus_parse_dt_extra()
1373 pc->reg_pullen = pc->reg_gpio; in meson_g12a_aobus_parse_dt_extra()
/openbmc/linux/sound/soc/codecs/
H A Drt5677.c5281 int reg_gpio; in rt5677_check_hotword() local
5286 if (regmap_read(rt5677->regmap, RT5677_GPIO_CTRL1, &reg_gpio)) in rt5677_check_hotword()
5290 if ((reg_gpio & RT5677_GPIO1_PIN_MASK) == RT5677_GPIO1_PIN_IRQ) in rt5677_check_hotword()