/openbmc/u-boot/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.c | 170 static int mtk_hw_set_value(struct udevice *dev, int pin, int field, in mtk_hw_set_value() function 273 mtk_hw_set_value(dev, grp->pins[i], PINCTRL_PIN_REG_MODE, in mtk_pinmux_group_set() 311 err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_DRV, arg); in mtk_pinconf_drive_set() 331 err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_PULLSEL, in mtk_pinconf_set() 336 err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_PULLEN, in mtk_pinconf_set() 342 err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_SMT, 0); in mtk_pinconf_set() 345 err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_DIR, 1); in mtk_pinconf_set() 350 err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_IES, 1); in mtk_pinconf_set() 353 err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_DIR, 0); in mtk_pinconf_set() 358 err = mtk_hw_set_value(dev, pin, PINCTRL_PIN_REG_DIR, 1); in mtk_pinconf_set() [all …]
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.c | 192 int mtk_hw_set_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, in mtk_hw_set_value() function 213 EXPORT_SYMBOL_GPL(mtk_hw_set_value); 339 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_MODE, in mtk_xt_set_gpio_as_eint() 344 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DIR, MTK_INPUT); in mtk_xt_set_gpio_as_eint() 348 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_SMT, MTK_ENABLE); in mtk_xt_set_gpio_as_eint() 419 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PU, in mtk_pinconf_bias_disable_set() 424 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PD, in mtk_pinconf_bias_disable_set() 463 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PU, arg & 1); in mtk_pinconf_bias_set() 467 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PD, in mtk_pinconf_bias_set() 500 return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_PULLEN, in mtk_pinconf_bias_disable_set_rev1() [all …]
|
H A D | pinctrl-moore.c | 70 mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_MODE, in mtk_pinmux_set_mux() 88 return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_MODE, in mtk_pinmux_gpio_request_enable() 104 return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DIR, !input); in mtk_pinmux_gpio_set_direction() 303 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_SMT, in mtk_pinconf_set() 308 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DIR, in mtk_pinconf_set() 316 mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_IES, in mtk_pinconf_set() 320 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DIR, in mtk_pinconf_set() 326 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_SR, in mtk_pinconf_set() 333 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DIR, in mtk_pinconf_set() 338 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DO, in mtk_pinconf_set() [all …]
|
H A D | pinctrl-paris.c | 112 return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_MODE, in mtk_pinmux_gpio_request_enable() 126 return mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DIR, !input); in mtk_pinmux_gpio_set_direction() 289 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_IES, !!arg); in mtk_pinconf_set() 293 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_SR, !!arg); in mtk_pinconf_set() 296 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DO, in mtk_pinconf_set() 301 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DIR, in mtk_pinconf_set() 309 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_DIR, !arg); in mtk_pinconf_set() 313 err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_SMT, !!arg); in mtk_pinconf_set() 333 err = mtk_hw_set_value(hw, desc, reg, arg); in mtk_pinconf_set() 768 mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_MODE, desc_func->muxval); in mtk_pmx_set_mux() [all …]
|
H A D | pinctrl-mtk-common-v2.h | 307 int mtk_hw_set_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc,
|