/linux/drivers/pinctrl/mediatek/ |
H A D | mtk-eint.c | 22 #include "mtk-eint.h" 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 [all …]
|
H A D | mtk-eint.h | 67 /* Used to fit into various EINT device */ 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 [all …]
|
H A D | pinctrl-mtk-common.c | 31 #include "mtk-eint.h" 735 if (pin->eint.eintnum == eint_num) in mtk_find_pin_by_eint_num() 859 if (pin->eint.eintnum == NO_EINT_SUPPORT) in mtk_gpio_to_irq() 862 eint_n = pin->eint.eintnum; in mtk_gpio_to_irq() 864 return mtk_eint_find_irq(pctl->eint, eint_n); in mtk_gpio_to_irq() 879 if (pin->eint.eintnum == NO_EINT_SUPPORT) in mtk_gpio_set_config() 883 eint_n = pin->eint.eintnum; in mtk_gpio_set_config() 885 return mtk_eint_set_debounce(pctl->eint, eint_n, debounce); in mtk_gpio_set_config() 905 return mtk_eint_do_suspend(pctl->eint); in mtk_eint_suspend() 912 return mtk_eint_do_resume(pctl->eint); in mtk_eint_resume() [all …]
|
H A D | pinctrl-moore.c | 526 if (!hw->eint) in mtk_gpio_to_irq() 531 if (desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_to_irq() 534 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 548 if (!hw->eint || in mtk_gpio_set_config() 550 desc->eint.eint_n == (u16)EINT_NA) in mtk_gpio_set_config() 555 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config() 719 "Failed to add EINT, but pinctrl still can work\n"); in mtk_moore_pinctrl_probe()
|
H A D | pinctrl-paris.c | 924 if (!hw->eint) in mtk_gpio_to_irq() 929 if (desc->eint.eint_n == EINT_NA) in mtk_gpio_to_irq() 932 return mtk_eint_find_irq(hw->eint, desc->eint.eint_n); in mtk_gpio_to_irq() 944 if (!hw->eint || in mtk_gpio_set_config() 946 desc->eint.eint_n == EINT_NA) in mtk_gpio_set_config() 951 return mtk_eint_set_debounce(hw->eint, desc->eint.eint_n, debounce); in mtk_gpio_set_config() 1088 "Failed to add EINT, but pinctrl still can work\n"); in mtk_paris_pinctrl_probe() 1105 return mtk_eint_do_suspend(pctl->eint); in mtk_paris_pinctrl_suspend() 1112 return mtk_eint_do_resume(pctl->eint); in mtk_paris_pinctrl_resume()
|
H A D | pinctrl-moore.h | 24 #include "mtk-eint.h" 32 .eint = { \
|
H A D | pinctrl-mtk-common.h | 14 #include "mtk-eint.h" 37 const struct mtk_desc_eint eint; member 44 .eint = _eint, \ 293 struct mtk_eint *eint; member
|
H A D | pinctrl-paris.h | 26 #include "mtk-eint.h" 46 .eint = _eint, \
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | samsung,pinctrl-wakeup-interrupt.yaml | 33 - samsung,s3c2410-wakeup-eint 34 - samsung,s3c2412-wakeup-eint 35 - samsung,s3c64xx-wakeup-eint 36 - samsung,s5pv210-wakeup-eint 37 - samsung,exynos4210-wakeup-eint 38 - samsung,exynos7-wakeup-eint 39 - samsung,exynosautov920-wakeup-eint 42 - samsung,exynos5433-wakeup-eint 43 - samsung,exynos7885-wakeup-eint 44 - samsung,exynos850-wakeup-eint [all …]
|
H A D | mediatek,mt6795-pinctrl.yaml | 35 Physical address base for GPIO base and eint registers. 41 - const: eint 52 - description: EINT interrupt 53 - description: EINT event_b interrupt 187 reg-names = "base", "eint";
|
H A D | mediatek,mt6779-pinctrl.yaml | 24 description: Physical addresses for GPIO base(s) and EINT registers. 83 - const: eint 106 const: eint 216 "eint";
|
H A D | samsung,pinctrl.yaml | 174 compatible = "samsung,s3c64xx-wakeup-eint"; 256 compatible = "samsung,exynos4210-wakeup-eint"; 342 compatible = "samsung,exynos5433-wakeup-eint", 343 "samsung,exynos7-wakeup-eint";
|
H A D | mediatek,mt8188-pinctrl.yaml | 40 - description: eint registers base address 49 - const: eint 196 "eint";
|
H A D | mediatek,mt8186-pinctrl.yaml | 50 - const: eint 239 "iocfg_rt", "eint";
|
H A D | mediatek,mt8183-pinctrl.yaml | 34 - const: eint 212 "eint";
|
H A D | mediatek,mt7986-pinctrl.yaml | 34 - const: eint 381 "iocfg_lb", "iocfg_tr", "iocfg_tl", "eint";
|
H A D | mediatek,mt7981-pinctrl.yaml | 34 - const: eint 437 "iocfg_tm", "iocfg_tl", "eint";
|
/linux/drivers/pinctrl/samsung/ |
H A D | pinctrl-samsung.h | 140 * @eint_func: function to set in CON register to configure pin as EINT. 142 * @eint_mask: bit mask of pins which support EINT function. 143 * @eint_offset: SoC-specific EINT register or interrupt offset of bank. 144 * @eint_con_offset: ExynosAuto SoC-specific EINT control register offset of bank. 145 * @eint_mask_offset: ExynosAuto SoC-specific EINT mask register offset of bank. 146 * @eint_pend_offset: ExynosAuto SoC-specific EINT pend register offset of bank. 170 * @eint_base: base address of the pin-bank EINT registers. 171 * @eint_func: function to set in CON register to configure pin as EINT. 173 * @eint_mask: bit mask of pins which support EINT function. 174 * @eint_offset: SoC-specific EINT register or interrupt offset of bank. [all …]
|
H A D | pinctrl-exynos-arm.c | 3 // Exynos specific support for Samsung pinctrl/gpiolib driver with eint support. 105 /* Must start with EINTG banks, ordered by EINT group number. */ 166 /* Must start with EINTG banks, ordered by EINT group number. */ 178 /* Must start with EINTG banks, ordered by EINT group number. */ 253 /* Must start with EINTG banks, ordered by EINT group number. */ 274 /* Must start with EINTG banks, ordered by EINT group number. */ 299 /* Must start with EINTG banks, ordered by EINT group number. */ 370 /* Must start with EINTG banks, ordered by EINT group number. */ 388 /* Must start with EINTG banks, ordered by EINT group number. */ 416 /* Must start with EINTG banks, ordered by EINT group number. */ [all …]
|
H A D | pinctrl-exynos-arm64.c | 4 // with eint support. 75 /* Must start with EINTG banks, ordered by EINT group number. */ 89 /* Must start with EINTG banks, ordered by EINT group number. */ 96 /* Must start with EINTG banks, ordered by EINT group number. */ 102 /* Must start with EINTG banks, ordered by EINT group number. */ 108 /* Must start with EINTG banks, ordered by EINT group number. */ 114 /* Must start with EINTG banks, ordered by EINT group number. */ 125 /* Must start with EINTG banks, ordered by EINT group number. */ 131 /* Must start with EINTG banks, ordered by EINT group number. */ 137 /* Must start with EINTG banks, ordered by EINT group number. */ [all …]
|
H A D | pinctrl-s3c64xx.c | 222 * struct s3c64xx_eint_gpio_data - GPIO EINT data 224 * @domains: array of domains related to EINT interrupt groups 232 * Common functions for S3C64xx EINT configuration 313 * Functions for EINT GPIO configuration (EINT groups 1-9) 449 * Something must be really wrong if an unmapped EINT in s3c64xx_eint_gpio_irq() 628 * Something must be really wrong if an unmapped EINT in s3c64xx_irq_demux_eint() 690 { .compatible = "samsung,s3c64xx-wakeup-eint", }, 728 dev_err(dev, "failed to get wakeup EINT IRQ %d\n", i); in s3c64xx_eint_eint0_init()
|
/linux/sound/soc/codecs/ |
H A D | mt6359-accdet.c | 423 /* set and clear initial bit every eint interrupt */ in mt6359_accdet_jd_work() 538 /* adjust eint digital/analog setting */ in mt6359_accdet_irq() 581 ret = of_property_read_u32(node, "mediatek,eint-level-pol", in mt6359_accdet_parse_dt() 586 ret = of_property_read_u32(node, "mediatek,eint-use-ap", &tmp); in mt6359_accdet_parse_dt() 594 ret = of_property_read_u32(node, "mediatek,eint-detect-mode", in mt6359_accdet_parse_dt() 597 /* eint detection mode equals to EINT HW Mode */ in mt6359_accdet_parse_dt() 601 ret = of_property_read_u32(node, "mediatek,eint-num", &tmp); in mt6359_accdet_parse_dt() 611 ret = of_property_read_u32(node, "mediatek,eint-trig-mode", in mt6359_accdet_parse_dt() 620 ret = of_property_read_u32(node, "mediatek,eint-use-ext-res", in mt6359_accdet_parse_dt() 623 /* eint use internal resister */ in mt6359_accdet_parse_dt() [all …]
|
/linux/arch/sparc/include/asm/ |
H A D | ecc.h | 41 * | RESV | ECHECK | EINT | 46 * EINT: Enable Interrupts for correctable errors. 0=off 1=on
|
/linux/Documentation/devicetree/bindings/arm/samsung/ |
H A D | samsung-soc.yaml | 38 - samsung,s3c64xx-wakeup-eint
|
/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynos850.dtsi | 398 compatible = "samsung,exynos850-wakeup-eint", 399 "samsung,exynos7-wakeup-eint"; 408 compatible = "samsung,exynos850-wakeup-eint", 409 "samsung,exynos7-wakeup-eint";
|