Lines Matching refs:pin_cfg
76 struct rk805_pin_config *pin_cfg; member
141 ret = regmap_read(pci->rk808->regmap, pci->pin_cfg[offset].reg, &val); in rk805_gpio_get()
147 return !!(val & pci->pin_cfg[offset].val_msk); in rk805_gpio_get()
158 pci->pin_cfg[offset].reg, in rk805_gpio_set()
159 pci->pin_cfg[offset].val_msk, in rk805_gpio_set()
160 value ? pci->pin_cfg[offset].val_msk : 0); in rk805_gpio_set()
186 if (!pci->pin_cfg[offset].dir_msk) in rk805_gpio_get_direction()
190 pci->pin_cfg[offset].reg, in rk805_gpio_get_direction()
197 return !(val & pci->pin_cfg[offset].dir_msk); in rk805_gpio_get_direction()
286 if (!pci->pin_cfg[offset].fun_msk) in _rk805_pinctrl_set_mux()
291 pci->pin_cfg[offset].reg, in _rk805_pinctrl_set_mux()
292 pci->pin_cfg[offset].fun_msk, in _rk805_pinctrl_set_mux()
293 pci->pin_cfg[offset].fun_msk); in _rk805_pinctrl_set_mux()
332 if (!pci->pin_cfg[offset].dir_msk) in rk805_pmx_gpio_set_direction()
336 pci->pin_cfg[offset].reg, in rk805_pmx_gpio_set_direction()
337 pci->pin_cfg[offset].dir_msk, in rk805_pmx_gpio_set_direction()
338 input ? 0 : pci->pin_cfg[offset].dir_msk); in rk805_pmx_gpio_set_direction()
445 pci->pin_cfg = rk805_gpio_cfgs; in rk805_pinctrl_probe()