Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: mediatek: Add debounce times for MT6878

MT6878 uses different debounce times than other SoCs. Add them to the
EINT driver.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Igor Belwon <igor.belwon@mentallysanemainliners.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Igor Belwon and committed by
Linus Walleij
18349bfb d8d357b8

+6
+5
drivers/pinctrl/mediatek/mtk-eint.c
··· 66 66 }; 67 67 EXPORT_SYMBOL_GPL(debounce_time_mt6795); 68 68 69 + const unsigned int debounce_time_mt6878[] = { 70 + 156, 313, 625, 1250, 20000, 40000, 80000, 160000, 320000, 640000, 0 71 + }; 72 + EXPORT_SYMBOL_GPL(debounce_time_mt6878); 73 + 69 74 static void __iomem *mtk_eint_get_offset(struct mtk_eint *eint, 70 75 unsigned int eint_num, 71 76 unsigned int offset)
+1
drivers/pinctrl/mediatek/mtk-eint.h
··· 52 52 extern const unsigned int debounce_time_mt2701[]; 53 53 extern const unsigned int debounce_time_mt6765[]; 54 54 extern const unsigned int debounce_time_mt6795[]; 55 + extern const unsigned int debounce_time_mt6878[]; 55 56 56 57 struct mtk_eint; 57 58