Home
last modified time | relevance | path

Searched refs:eint (Results 1 – 25 of 44) sorted by relevance

12

/linux-5.19.10/drivers/pinctrl/mediatek/
Dmtk-eint.c51 static void __iomem *mtk_eint_get_offset(struct mtk_eint *eint, in mtk_eint_get_offset() argument
58 if (eint_num >= eint->hw->ap_num) in mtk_eint_get_offset()
59 eint_base = eint->hw->ap_num; in mtk_eint_get_offset()
61 reg = eint->base + offset + ((eint_num - eint_base) / 32) * 4; in mtk_eint_get_offset()
66 static unsigned int mtk_eint_can_en_debounce(struct mtk_eint *eint, in mtk_eint_can_en_debounce() argument
71 void __iomem *reg = mtk_eint_get_offset(eint, eint_num, in mtk_eint_can_en_debounce()
72 eint->regs->sens); in mtk_eint_can_en_debounce()
79 if (eint_num < eint->hw->db_cnt && sens != MTK_EINT_EDGE_SENSITIVE) in mtk_eint_can_en_debounce()
85 static int mtk_eint_flip_edge(struct mtk_eint *eint, int hwirq) in mtk_eint_flip_edge() argument
90 u32 port = (hwirq >> 5) & eint->hw->port_mask; in mtk_eint_flip_edge()
[all …]
Dmtk-eint.h72 int mtk_eint_do_init(struct mtk_eint *eint);
73 int mtk_eint_do_suspend(struct mtk_eint *eint);
74 int mtk_eint_do_resume(struct mtk_eint *eint);
75 int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n,
77 int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n);
80 static inline int mtk_eint_do_init(struct mtk_eint *eint) in mtk_eint_do_init() argument
85 static inline int mtk_eint_do_suspend(struct mtk_eint *eint) in mtk_eint_do_suspend() argument
90 static inline int mtk_eint_do_resume(struct mtk_eint *eint) in mtk_eint_do_resume() argument
95 static inline int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n, in mtk_eint_set_debounce() argument
101 static inline int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n) in mtk_eint_find_irq() argument
Dpinctrl-mtk-common.c724 if (pin->eint.eintnum == eint_num) in mtk_find_pin_by_eint_num()
854 if (pin->eint.eintnum == NO_EINT_SUPPORT) in mtk_gpio_to_irq()
857 eint_n = pin->eint.eintnum; in mtk_gpio_to_irq()
859 return mtk_eint_find_irq(pctl->eint, eint_n); in mtk_gpio_to_irq()
874 if (pin->eint.eintnum == NO_EINT_SUPPORT) in mtk_gpio_set_config()
878 eint_n = pin->eint.eintnum; in mtk_gpio_set_config()
880 return mtk_eint_set_debounce(pctl->eint, eint_n, debounce); in mtk_gpio_set_config()
901 return mtk_eint_do_suspend(pctl->eint); in mtk_eint_suspend()
908 return mtk_eint_do_resume(pctl->eint); in mtk_eint_resume()
987 mtk_pmx_set_mode(pctl->pctl_dev, pin->pin.number, pin->eint.eintmux); in mtk_xt_set_gpio_as_eint()
[all …]
Dpinctrl-mtk-common-v2.c243 if (desc[i].eint.eint_n == eint_n) in mtk_xt_find_eint_num()
268 if (desc->eint.eint_m == NO_EINT_SUPPORT) in mtk_is_virt_gpio()
271 if (desc->funcs && !desc->funcs[desc->eint.eint_m].name) in mtk_is_virt_gpio()
293 desc[eint_n].eint.eint_n == eint_n) in mtk_xt_get_gpio_n()
340 desc->eint.eint_m); in mtk_xt_set_gpio_as_eint()
378 hw->eint = devm_kzalloc(hw->dev, sizeof(*hw->eint), GFP_KERNEL); in mtk_build_eint()
379 if (!hw->eint) in mtk_build_eint()
382 hw->eint->base = devm_platform_ioremap_resource_byname(pdev, "eint"); in mtk_build_eint()
383 if (IS_ERR(hw->eint->base)) { in mtk_build_eint()
384 ret = PTR_ERR(hw->eint->base); in mtk_build_eint()
[all …]
Dpinctrl-moore.c490 if (!hw->eint) in mtk_gpio_to_irq()
495 if (desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_to_irq()
498 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq()
512 if (!hw->eint || in mtk_gpio_set_config()
514 desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_set_config()
519 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
Dpinctrl-mtk-common.h37 const struct mtk_desc_eint eint; member
44 .eint = _eint, \
287 struct mtk_eint *eint; member
Dpinctrl-paris.c937 if (!hw->eint) in mtk_gpio_to_irq()
942 if (desc->eint.eint_n == EINT_NA) in mtk_gpio_to_irq()
945 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq()
957 if (!hw->eint || in mtk_gpio_set_config()
959 desc->eint.eint_n == EINT_NA) in mtk_gpio_set_config()
964 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
1122 return mtk_eint_do_suspend(pctl->eint); in mtk_paris_pinctrl_suspend()
1129 return mtk_eint_do_resume(pctl->eint); in mtk_paris_pinctrl_resume()
Dpinctrl-moore.h32 .eint = { \
Dpinctrl-paris.h46 .eint = _eint, \
DMakefile3 obj-$(CONFIG_EINT_MTK) += mtk-eint.o
Dpinctrl-mtk-common-v2.h220 struct mtk_eint_desc eint; member
296 struct mtk_eint *eint; member
DKconfig107 map specific eint which doesn't have real gpio pin.
/linux-5.19.10/Documentation/devicetree/bindings/pinctrl/
Dsamsung,pinctrl-wakeup-interrupt.yaml32 - samsung,s3c2410-wakeup-eint
33 - samsung,s3c2412-wakeup-eint
34 - samsung,s3c64xx-wakeup-eint
35 - samsung,s5pv210-wakeup-eint
36 - samsung,exynos4210-wakeup-eint
37 - samsung,exynos7-wakeup-eint
38 - samsung,exynos850-wakeup-eint
39 - samsung,exynosautov9-wakeup-eint
56 - samsung,s3c2410-wakeup-eint
57 - samsung,s3c2412-wakeup-eint
[all …]
Dmediatek,pinctrl-mt6795.yaml35 Physical address base for gpio base and eint registers.
41 - const: eint
183 reg-names = "base", "eint";
Dmediatek,mt6779-pinctrl.yaml35 - const: "eint"
168 "eint";
Dsamsung,pinctrl.yaml150 compatible = "samsung,s3c64xx-wakeup-eint";
234 compatible = "samsung,exynos4210-wakeup-eint";
321 compatible = "samsung,exynos7-wakeup-eint";
Dmediatek,mt8183-pinctrl.yaml34 - const: eint
205 "eint";
Dpinctrl-mt8186.yaml48 - const: eint
238 "iocfg_tl", "eint";
Dmediatek,mt7986-pinctrl.yaml34 - const: eint
342 "iocfg_lb", "iocfg_tr", "iocfg_tl", "eint";
Dpinctrl-mt8192.yaml156 "iocfg_tl", "eint";
/linux-5.19.10/arch/arm/boot/dts/
Ds3c24xx.dtsi32 compatible = "samsung,s3c2410-wakeup-eint";
Ds3c64xx.dtsi182 compatible = "samsung,s3c64xx-wakeup-eint";
/linux-5.19.10/arch/arm64/boot/dts/mediatek/
Dmt7986a.dtsi141 "iocfg_lb", "iocfg_tr", "iocfg_tl", "eint";
Dmt6779.dtsi177 "eint";
/linux-5.19.10/arch/arm64/boot/dts/exynos/
Dexynos850.dtsi316 compatible = "samsung,exynos850-wakeup-eint";
325 compatible = "samsung,exynos850-wakeup-eint";

12