Home
last modified time | relevance | path

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

/OK3568_Linux_fs/u-boot/drivers/pinctrl/meson/
H A Dpinctrl-meson.c163 return !!(readl(priv->reg_gpio + reg) & BIT(bit)); in meson_gpio_get()
176 clrsetbits_le32(priv->reg_gpio + reg, BIT(bit), value ? BIT(bit) : 0); in meson_gpio_set()
191 val = readl(priv->reg_gpio + reg); in meson_gpio_get_direction()
206 clrsetbits_le32(priv->reg_gpio + reg, BIT(bit), 1); in meson_gpio_direction_input()
222 clrsetbits_le32(priv->reg_gpio + reg, BIT(bit), 0); in meson_gpio_direction_output()
228 clrsetbits_le32(priv->reg_gpio + reg, BIT(bit), value ? BIT(bit) : 0); in meson_gpio_direction_output()
324 priv->reg_gpio = (void __iomem *)addr; in meson_pinctrl_probe()
H A Dpinctrl-meson.h42 void __iomem *reg_gpio; member
/OK3568_Linux_fs/kernel/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()
694 pc->reg_gpio = meson_map_resource(pc, gpio_np, "gpio"); in meson_pinctrl_parse_dt()
695 if (IS_ERR_OR_NULL(pc->reg_gpio)) { in meson_pinctrl_parse_dt()
697 return pc->reg_gpio ? PTR_ERR(pc->reg_gpio) : -ENOENT; in meson_pinctrl_parse_dt()
733 pc->reg_pull = pc->reg_gpio; in meson_a1_parse_dt_extra()
734 pc->reg_pullen = pc->reg_gpio; in meson_a1_parse_dt_extra()
735 pc->reg_ds = pc->reg_gpio; in meson_a1_parse_dt_extra()
H A Dpinctrl-meson.h131 struct regmap *reg_gpio; member
H A Dpinctrl-meson-g12a.c1367 pc->reg_pull = pc->reg_gpio; in meson_g12a_aobus_parse_dt_extra()
1368 pc->reg_pullen = pc->reg_gpio; in meson_g12a_aobus_parse_dt_extra()
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Drt5677.c5312 int reg_gpio; in rt5677_check_hotword() local
5317 if (regmap_read(rt5677->regmap, RT5677_GPIO_CTRL1, &reg_gpio)) in rt5677_check_hotword()
5321 if ((reg_gpio & RT5677_GPIO1_PIN_MASK) == RT5677_GPIO1_PIN_IRQ) in rt5677_check_hotword()