Home
last modified time | relevance | path

Searched refs:mtk_pinctrl (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.4/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common-v2.h189 struct mtk_pinctrl;
210 int (*bias_disable_set)(struct mtk_pinctrl *hw,
212 int (*bias_disable_get)(struct mtk_pinctrl *hw,
214 int (*bias_set)(struct mtk_pinctrl *hw,
216 int (*bias_get)(struct mtk_pinctrl *hw,
219 int (*drive_set)(struct mtk_pinctrl *hw,
221 int (*drive_get)(struct mtk_pinctrl *hw,
224 int (*adv_pull_set)(struct mtk_pinctrl *hw,
227 int (*adv_pull_get)(struct mtk_pinctrl *hw,
230 int (*adv_drive_set)(struct mtk_pinctrl *hw,
[all …]
Dpinctrl-mtk-common-v2.c45 static void mtk_w32(struct mtk_pinctrl *pctl, u8 i, u32 reg, u32 val) in mtk_w32()
50 static u32 mtk_r32(struct mtk_pinctrl *pctl, u8 i, u32 reg) in mtk_r32()
55 void mtk_rmw(struct mtk_pinctrl *pctl, u8 i, u32 reg, u32 mask, u32 set) in mtk_rmw()
65 static int mtk_hw_pin_field_lookup(struct mtk_pinctrl *hw, in mtk_hw_pin_field_lookup()
128 static int mtk_hw_pin_field_get(struct mtk_pinctrl *hw, in mtk_hw_pin_field_get()
146 static void mtk_hw_write_cross_field(struct mtk_pinctrl *hw, in mtk_hw_write_cross_field()
160 static void mtk_hw_read_cross_field(struct mtk_pinctrl *hw, in mtk_hw_read_cross_field()
175 int mtk_hw_set_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, in mtk_hw_set_value()
194 int mtk_hw_get_value(struct mtk_pinctrl *hw, const struct mtk_pin_desc *desc, in mtk_hw_get_value()
213 static int mtk_xt_find_eint_num(struct mtk_pinctrl *hw, unsigned long eint_n) in mtk_xt_find_eint_num()
[all …]
Dpinctrl-mtk-common.c53 static struct regmap *mtk_get_regmap(struct mtk_pinctrl *pctl, in mtk_get_regmap()
61 static unsigned int mtk_get_port(struct mtk_pinctrl *pctl, unsigned long pin) in mtk_get_port()
74 struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mtk_pmx_gpio_set_direction()
96 struct mtk_pinctrl *pctl = gpiochip_get_data(chip); in mtk_gpio_set()
109 static int mtk_pconf_set_ies_smt(struct mtk_pinctrl *pctl, unsigned pin, in mtk_pconf_set_ies_smt()
181 struct mtk_pinctrl *pctl, unsigned long pin) { in mtk_find_pin_drv_grp_by_pin()
194 static int mtk_pconf_set_driving(struct mtk_pinctrl *pctl, in mtk_pconf_set_driving()
285 static int mtk_pconf_set_pull_select(struct mtk_pinctrl *pctl, in mtk_pconf_set_pull_select()
339 struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mtk_pconf_parse_conf()
377 struct mtk_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); in mtk_pconf_group_get()
[all …]
Dpinctrl-paris.c54 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_request_enable()
67 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_set_direction()
79 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_get()
204 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_set()
344 mtk_pctrl_find_group_by_pin(struct mtk_pinctrl *hw, u32 pin) in mtk_pctrl_find_group_by_pin()
359 mtk_pctrl_find_function_by_pin(struct mtk_pinctrl *hw, u32 pin_num, u32 fnum) in mtk_pctrl_find_function_by_pin()
373 static bool mtk_pctrl_is_function_valid(struct mtk_pinctrl *hw, u32 pin_num, in mtk_pctrl_is_function_valid()
397 static int mtk_pctrl_dt_node_to_map_func(struct mtk_pinctrl *pctl, in mtk_pctrl_dt_node_to_map_func()
431 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pctrl_dt_subnode_to_map()
553 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pctrl_get_groups_count()
[all …]
Dpinctrl-moore.c41 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_set_mux()
75 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_request_enable()
88 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinmux_gpio_set_direction()
100 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_get()
215 struct mtk_pinctrl *hw = pinctrl_dev_get_drvdata(pctldev); in mtk_pinconf_set()
433 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_get()
448 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_set()
471 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_to_irq()
488 struct mtk_pinctrl *hw = gpiochip_get_data(chip); in mtk_gpio_set_config()
504 static int mtk_build_gpiochip(struct mtk_pinctrl *hw, struct device_node *np) in mtk_build_gpiochip()
[all …]
Dpinctrl-mtk-common.h259 struct mtk_pinctrl { struct
Dpinctrl-mt7623.c1404 struct mtk_pinctrl *hw = platform_get_drvdata(pdev); in mt7623_bonding_disable()