/kernel/linux/linux-5.10/drivers/pinctrl/mediatek/ |
D | mtk-eint.c | 51 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 …]
|
D | mtk-eint.h | 72 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
|
D | pinctrl-mtk-common.c | 705 if (pin->eint.eintnum == eint_num) in mtk_find_pin_by_eint_num() 835 if (pin->eint.eintnum == NO_EINT_SUPPORT) in mtk_gpio_to_irq() 838 eint_n = pin->eint.eintnum; in mtk_gpio_to_irq() 840 return mtk_eint_find_irq(pctl->eint, eint_n); in mtk_gpio_to_irq() 855 if (pin->eint.eintnum == NO_EINT_SUPPORT) in mtk_gpio_set_config() 859 eint_n = pin->eint.eintnum; in mtk_gpio_set_config() 861 return mtk_eint_set_debounce(pctl->eint, eint_n, debounce); in mtk_gpio_set_config() 882 return mtk_eint_do_suspend(pctl->eint); in mtk_eint_suspend() 889 return mtk_eint_do_resume(pctl->eint); in mtk_eint_resume() 968 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 | 238 if (desc[i].eint.eint_n == eint_n) in mtk_xt_find_eint_num() 263 if (desc->eint.eint_m == NO_EINT_SUPPORT) in mtk_is_virt_gpio() 266 if (desc->funcs && !desc->funcs[desc->eint.eint_m].name) in mtk_is_virt_gpio() 288 desc[eint_n].eint.eint_n == eint_n) in mtk_xt_get_gpio_n() 335 desc->eint.eint_m); in mtk_xt_set_gpio_as_eint() 373 hw->eint = devm_kzalloc(hw->dev, sizeof(*hw->eint), GFP_KERNEL); in mtk_build_eint() 374 if (!hw->eint) in mtk_build_eint() 377 hw->eint->base = devm_platform_ioremap_resource_byname(pdev, "eint"); in mtk_build_eint() 378 if (IS_ERR(hw->eint->base)) { in mtk_build_eint() 379 ret = PTR_ERR(hw->eint->base); in mtk_build_eint() [all …]
|
D | pinctrl-moore.c | 474 if (!hw->eint) in mtk_gpio_to_irq() 479 if (desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_to_irq() 482 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 494 if (!hw->eint || in mtk_gpio_set_config() 496 desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_set_config() 501 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config()
|
D | pinctrl-mtk-common.h | 37 const struct mtk_desc_eint eint; member 44 .eint = _eint, \ 270 struct mtk_eint *eint; member
|
D | pinctrl-paris.c | 846 if (!hw->eint) in mtk_gpio_to_irq() 851 if (desc->eint.eint_n == EINT_NA) in mtk_gpio_to_irq() 854 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 866 if (!hw->eint || in mtk_gpio_set_config() 868 desc->eint.eint_n == EINT_NA) in mtk_gpio_set_config() 873 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config() 1026 return mtk_eint_do_suspend(pctl->eint); in mtk_paris_pinctrl_suspend() 1033 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 | Makefile | 3 obj-$(CONFIG_EINT_MTK) += mtk-eint.o
|
D | pinctrl-mtk-common-v2.h | 178 struct mtk_eint_desc eint; member 251 struct mtk_eint *eint; member
|
D | Kconfig | 107 map specific eint which doesn't have real gpio pin.
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/ |
D | samsung-pinctrl.txt | 42 compatible = "samsung,exynos7-wakeup-eint"; 156 - samsung,s3c2410-wakeup-eint: represents wakeup interrupt controller 158 - samsung,s3c2412-wakeup-eint: represents wakeup interrupt controller 160 - samsung,s3c64xx-wakeup-eint: represents wakeup interrupt controller 162 - samsung,s5pv210-wakeup-eint: represents wakeup interrupt controller 164 - samsung,exynos4210-wakeup-eint: represents wakeup interrupt controller 166 - samsung,exynos7-wakeup-eint: represents wakeup interrupt controller 325 compatible = "samsung,exynos4210-wakeup-eint";
|
D | pinctrl-mt8183.txt | 19 "iocfg5", "iocfg6", "iocfg7", "iocfg8", "eint". 105 "eint";
|
D | pinctrl-mt7622.txt | 17 - reg-names: A string describing the "reg" entries. Must contain "eint".
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | s3c24xx.dtsi | 32 compatible = "samsung,s3c2410-wakeup-eint";
|
D | s3c64xx.dtsi | 192 compatible = "samsung,s3c64xx-wakeup-eint";
|
D | exynos5260.dtsi | 226 compatible = "samsung,exynos4210-wakeup-eint";
|
D | exynos5410.dtsi | 168 compatible = "samsung,exynos4210-wakeup-eint";
|
D | exynos4210.dtsi | 150 compatible = "samsung,exynos4210-wakeup-eint";
|
D | mt7629.dtsi | 154 reg-names = "base", "eint";
|
D | s5pv210.dtsi | 114 compatible = "samsung,s5pv210-wakeup-eint";
|
D | exynos4412.dtsi | 172 compatible = "samsung,exynos4210-wakeup-eint";
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/exynos/ |
D | exynos7.dtsi | 273 compatible = "samsung,exynos7-wakeup-eint";
|
/kernel/linux/linux-5.10/arch/arm64/boot/dts/mediatek/ |
D | mt8183.dtsi | 310 "eint";
|