/linux-6.6.21/drivers/pinctrl/mediatek/ |
D | mtk-eint.c | 67 static void __iomem *mtk_eint_get_offset(struct mtk_eint *eint, in mtk_eint_get_offset() argument 74 if (eint_num >= eint->hw->ap_num) in mtk_eint_get_offset() 75 eint_base = eint->hw->ap_num; in mtk_eint_get_offset() 77 reg = eint->base + offset + ((eint_num - eint_base) / 32) * 4; in mtk_eint_get_offset() 82 static unsigned int mtk_eint_can_en_debounce(struct mtk_eint *eint, in mtk_eint_can_en_debounce() argument 87 void __iomem *reg = mtk_eint_get_offset(eint, eint_num, in mtk_eint_can_en_debounce() 88 eint->regs->sens); in mtk_eint_can_en_debounce() 95 if (eint_num < eint->hw->db_cnt && sens != MTK_EINT_EDGE_SENSITIVE) in mtk_eint_can_en_debounce() 101 static int mtk_eint_flip_edge(struct mtk_eint *eint, int hwirq) in mtk_eint_flip_edge() argument 106 u32 port = (hwirq >> 5) & eint->hw->port_mask; in mtk_eint_flip_edge() [all …]
|
D | mtk-eint.h | 78 int mtk_eint_do_init(struct mtk_eint *eint); 79 int mtk_eint_do_suspend(struct mtk_eint *eint); 80 int mtk_eint_do_resume(struct mtk_eint *eint); 81 int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n, 83 int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n); 86 static inline int mtk_eint_do_init(struct mtk_eint *eint) in mtk_eint_do_init() argument 91 static inline int mtk_eint_do_suspend(struct mtk_eint *eint) in mtk_eint_do_suspend() argument 96 static inline int mtk_eint_do_resume(struct mtk_eint *eint) in mtk_eint_do_resume() argument 101 static inline int mtk_eint_set_debounce(struct mtk_eint *eint, unsigned long eint_n, in mtk_eint_set_debounce() argument 107 static inline int mtk_eint_find_irq(struct mtk_eint *eint, unsigned long eint_n) in mtk_eint_find_irq() argument
|
D | pinctrl-mtk-common.c | 737 if (pin->eint.eintnum == eint_num) in mtk_find_pin_by_eint_num() 867 if (pin->eint.eintnum == NO_EINT_SUPPORT) in mtk_gpio_to_irq() 870 eint_n = pin->eint.eintnum; in mtk_gpio_to_irq() 872 return mtk_eint_find_irq(pctl->eint, eint_n); in mtk_gpio_to_irq() 887 if (pin->eint.eintnum == NO_EINT_SUPPORT) in mtk_gpio_set_config() 891 eint_n = pin->eint.eintnum; in mtk_gpio_set_config() 893 return mtk_eint_set_debounce(pctl->eint, eint_n, debounce); in mtk_gpio_set_config() 913 return mtk_eint_do_suspend(pctl->eint); in mtk_eint_suspend() 920 return mtk_eint_do_resume(pctl->eint); in mtk_eint_resume() 999 mtk_pmx_set_mode(pctl->pctl_dev, pin->pin.number, pin->eint.eintmux); in mtk_xt_set_gpio_as_eint() [all …]
|
D | pinctrl-mtk-common-v2.c | 243 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 …]
|
D | pinctrl-mtk-common.h | 37 const struct mtk_desc_eint eint; member 44 .eint = _eint, \ 293 struct mtk_eint *eint; member
|
D | pinctrl-moore.c | 528 if (!hw->eint) in mtk_gpio_to_irq() 533 if (desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_to_irq() 536 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 550 if (!hw->eint || in mtk_gpio_set_config() 552 desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_set_config() 557 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
|
D | pinctrl-paris.c | 942 if (!hw->eint) in mtk_gpio_to_irq() 947 if (desc->eint.eint_n == EINT_NA) in mtk_gpio_to_irq() 950 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 962 if (!hw->eint || in mtk_gpio_set_config() 964 desc->eint.eint_n == EINT_NA) in mtk_gpio_set_config() 969 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config() 1126 return mtk_eint_do_suspend(pctl->eint); in mtk_paris_pinctrl_suspend() 1133 return mtk_eint_do_resume(pctl->eint); in mtk_paris_pinctrl_resume()
|
D | pinctrl-moore.h | 32 .eint = { \
|
D | pinctrl-paris.h | 46 .eint = _eint, \
|
D | pinctrl-mtk-common-v2.h | 220 struct mtk_eint_desc eint; member 296 struct mtk_eint *eint; member
|
D | Makefile | 3 obj-$(CONFIG_EINT_MTK) += mtk-eint.o
|
D | Kconfig | 153 map specific eint which doesn't have real gpio pin. 228 map specific eint which doesn't have real gpio pin.
|
/linux-6.6.21/Documentation/devicetree/bindings/pinctrl/ |
D | samsung,pinctrl-wakeup-interrupt.yaml | 32 - 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 …]
|
D | mediatek,mt6779-pinctrl.yaml | 83 - const: eint 106 const: eint 216 "eint";
|
D | mediatek,mt6795-pinctrl.yaml | 35 Physical address base for GPIO base and eint registers. 41 - const: eint 187 reg-names = "base", "eint";
|
D | mediatek,mt8188-pinctrl.yaml | 40 - description: eint registers base address 49 - const: eint 196 "eint";
|
D | samsung,pinctrl.yaml | 148 compatible = "samsung,s3c64xx-wakeup-eint"; 230 compatible = "samsung,exynos4210-wakeup-eint"; 316 compatible = "samsung,exynos7-wakeup-eint";
|
D | mediatek,mt8183-pinctrl.yaml | 34 - const: eint 212 "eint";
|
D | mediatek,mt8186-pinctrl.yaml | 50 - const: eint 239 "iocfg_rt", "eint";
|
D | mediatek,mt7986-pinctrl.yaml | 34 - const: eint 381 "iocfg_lb", "iocfg_tr", "iocfg_tl", "eint";
|
D | mediatek,mt7981-pinctrl.yaml | 34 - const: eint 437 "iocfg_tm", "iocfg_tl", "eint";
|
D | mediatek,mt8192-pinctrl.yaml | 163 "iocfg_tl", "eint";
|
/linux-6.6.21/Documentation/devicetree/bindings/arm/samsung/ |
D | samsung-soc.yaml | 38 - samsung,s3c64xx-wakeup-eint
|
/linux-6.6.21/arch/arm/boot/dts/samsung/ |
D | s3c64xx.dtsi | 182 compatible = "samsung,s3c64xx-wakeup-eint";
|
/linux-6.6.21/arch/arm64/boot/dts/mediatek/ |
D | mt6779.dtsi | 177 "eint";
|