Home
last modified time | relevance | path

Searched full:eint (Results 1 – 25 of 66) sorted by relevance

123

/Linux-v6.1/drivers/pinctrl/mediatek/
Dmtk-eint.c22 #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 …]
Dmtk-eint.h67 /* 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 …]
Dpinctrl-mtk-common-v2.c18 #include "mtk-eint.h"
243 if (desc[i].eint.eint_n == eint_n) in mtk_xt_find_eint_num()
253 * Some modules use virtual GPIO as eint (e.g. pmif or usb).
254 * In MTK platform, external interrupt (EINT) and GPIO is 1-1 mapping
255 * and we can set GPIO as eint.
256 * But some modules use specific eint which doesn't have real GPIO pin.
267 /* if the GPIO is not supported for eint mode */ in mtk_is_virt_gpio()
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()
290 * Only eint virtual eint number is greater than gpio number. in mtk_xt_get_gpio_n()
[all …]
Dpinctrl-mtk-common.c33 #include "mtk-eint.h"
724 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()
[all …]
Dpinctrl-mtk-common-v2.h197 * for eint data per pin
198 * @eint_m: the eint mux for this pin
199 * @eitn_n: the eint number for this pin
211 * @eint: the eint data for this pin
220 struct mtk_eint_desc eint; member
296 struct mtk_eint *eint; member
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()
685 "Failed to add EINT, but pinctrl still can work\n"); in mtk_moore_pinctrl_probe()
Dpinctrl-moore.h24 #include "mtk-eint.h"
32 .eint = { \
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()
1105 "Failed to add EINT, but pinctrl still can work\n"); in mtk_paris_pinctrl_probe()
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-paris.h26 #include "mtk-eint.h"
46 .eint = _eint, \
Dpinctrl-mtk-common.h14 #include "mtk-eint.h"
37 const struct mtk_desc_eint eint; member
44 .eint = _eint, \
287 struct mtk_eint *eint; member
DKconfig107 map specific eint which doesn't have real gpio pin.
175 map specific eint which doesn't have real gpio pin.
/Linux-v6.1/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,mt8188-pinctrl.yaml40 - description: eint registers base address
49 - const: eint
190 "eint";
Dmediatek,pinctrl-mt6795.yaml35 Physical address base for gpio base and eint registers.
41 - const: eint
183 reg-names = "base", "eint";
Dsamsung,pinctrl.yaml148 compatible = "samsung,s3c64xx-wakeup-eint";
230 compatible = "samsung,exynos4210-wakeup-eint";
316 compatible = "samsung,exynos7-wakeup-eint";
Dmediatek,mt6779-pinctrl.yaml35 - const: "eint"
170 "eint";
/Linux-v6.1/drivers/pinctrl/samsung/
Dpinctrl-exynos-arm64.c4 // with eint support.
66 /* Must start with EINTG banks, ordered by EINT group number. */
80 /* Must start with EINTG banks, ordered by EINT group number. */
87 /* Must start with EINTG banks, ordered by EINT group number. */
93 /* Must start with EINTG banks, ordered by EINT group number. */
99 /* Must start with EINTG banks, ordered by EINT group number. */
105 /* Must start with EINTG banks, ordered by EINT group number. */
116 /* Must start with EINTG banks, ordered by EINT group number. */
122 /* Must start with EINTG banks, ordered by EINT group number. */
128 /* Must start with EINTG banks, ordered by EINT group number. */
[all …]
Dpinctrl-exynos-arm.c3 // Exynos specific support for Samsung pinctrl/gpiolib driver with eint support.
92 /* Must start with EINTG banks, ordered by EINT group number. */
152 /* Must start with EINTG banks, ordered by EINT group number. */
164 /* Must start with EINTG banks, ordered by EINT group number. */
239 /* Must start with EINTG banks, ordered by EINT group number. */
260 /* Must start with EINTG banks, ordered by EINT group number. */
285 /* Must start with EINTG banks, ordered by EINT group number. */
356 /* Must start with EINTG banks, ordered by EINT group number. */
374 /* Must start with EINTG banks, ordered by EINT group number. */
402 /* Must start with EINTG banks, ordered by EINT group number. */
[all …]
Dpinctrl-samsung.h121 * @eint_func: function to set in CON register to configure pin as EINT.
123 * @eint_mask: bit mask of pins which support EINT function.
124 * @eint_offset: SoC-specific EINT register or interrupt offset of bank.
145 * @eint_base: base address of the pin-bank EINT registers.
146 * @eint_func: function to set in CON register to configure pin as EINT.
148 * @eint_mask: bit mask of pins which support EINT function.
149 * @eint_offset: SoC-specific EINT register or interrupt offset of bank.
Dpinctrl-s3c24xx.c83 * struct s3c24xx_eint_data - EINT common data
85 * @domains: IRQ domains of particular EINT interrupts
241 /* Something must be really wrong if an unmapped EINT is unmasked */ in s3c2410_demux_eint0_3()
297 /* Something must be really wrong if an unmapped EINT is unmasked */ in s3c2412_demux_eint0_3()
339 .name = "s3c-eint",
369 /* Something is really wrong if an unmapped EINT is unmasked */ in s3c24xx_demux_eint()
453 { .compatible = "samsung,s3c2410-wakeup-eint", .data = (void *)1 },
454 { .compatible = "samsung,s3c2412-wakeup-eint", .data = (void *)0 },
497 dev_err(dev, "failed to get wakeup EINT IRQ %d\n", i); in s3c24xx_eint_init()
Dpinctrl-s3c64xx.c218 * struct s3c64xx_eint_gpio_data - GPIO EINT data
220 * @domains: array of domains related to EINT interrupt groups
228 * Common functions for S3C64xx EINT configuration
300 * Functions for EINT GPIO configuration (EINT groups 1-9)
436 * Something must be really wrong if an unmapped EINT in s3c64xx_eint_gpio_irq()
615 * Something must be really wrong if an unmapped EINT in s3c64xx_irq_demux_eint()
677 { .compatible = "samsung,s3c64xx-wakeup-eint", },
715 dev_err(dev, "failed to get wakeup EINT IRQ %d\n", i); in s3c64xx_eint_eint0_init()
Dpinctrl-exynos.c3 // Exynos specific support for Samsung pinctrl/gpiolib driver with eint support.
461 { .compatible = "samsung,s5pv210-wakeup-eint",
463 { .compatible = "samsung,exynos4210-wakeup-eint",
465 { .compatible = "samsung,exynos7-wakeup-eint",
467 { .compatible = "samsung,exynos850-wakeup-eint",
469 { .compatible = "samsung,exynosautov9-wakeup-eint",
591 dev_err(dev, "irq number for eint-%s-%d not found\n", in exynos_eint_wkup_init()
/Linux-v6.1/sound/soc/codecs/
Dmt6359-accdet.c427 /* set and clear initial bit every eint interrupt */ in mt6359_accdet_jd_work()
542 /* adjust eint digital/analog setting */ in mt6359_accdet_irq()
585 ret = of_property_read_u32(node, "mediatek,eint-level-pol", in mt6359_accdet_parse_dt()
590 ret = of_property_read_u32(node, "mediatek,eint-use-ap", &tmp); in mt6359_accdet_parse_dt()
598 ret = of_property_read_u32(node, "mediatek,eint-detect-mode", in mt6359_accdet_parse_dt()
601 /* eint detection mode equals to EINT HW Mode */ in mt6359_accdet_parse_dt()
605 ret = of_property_read_u32(node, "mediatek,eint-num", &tmp); in mt6359_accdet_parse_dt()
615 ret = of_property_read_u32(node, "mediatek,eint-trig-mode", in mt6359_accdet_parse_dt()
624 ret = of_property_read_u32(node, "mediatek,eint-use-ext-res", in mt6359_accdet_parse_dt()
627 /* eint use internal resister */ in mt6359_accdet_parse_dt()
[all …]
/Linux-v6.1/arch/sparc/include/asm/
Decc.h41 * | RESV | ECHECK | EINT |
46 * EINT: Enable Interrupts for correctable errors. 0=off 1=on
/Linux-v6.1/Documentation/devicetree/bindings/arm/samsung/
Dsamsung-soc.yaml38 - samsung,s3c64xx-wakeup-eint

123