Commit 18349bfb authored by Igor Belwon's avatar Igor Belwon Committed by Linus Walleij
Browse files

pinctrl: mediatek: Add debounce times for MT6878



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

Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarIgor Belwon <igor.belwon@mentallysanemainliners.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d8d357b8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -66,6 +66,11 @@ const unsigned int debounce_time_mt6795[] = {
};
EXPORT_SYMBOL_GPL(debounce_time_mt6795);

const unsigned int debounce_time_mt6878[] = {
	156, 313, 625, 1250, 20000, 40000, 80000, 160000, 320000, 640000, 0
};
EXPORT_SYMBOL_GPL(debounce_time_mt6878);

static void __iomem *mtk_eint_get_offset(struct mtk_eint *eint,
					 unsigned int eint_num,
					 unsigned int offset)
+1 −0
Original line number Diff line number Diff line
@@ -52,6 +52,7 @@ struct mtk_eint_pin {
extern const unsigned int debounce_time_mt2701[];
extern const unsigned int debounce_time_mt6765[];
extern const unsigned int debounce_time_mt6795[];
extern const unsigned int debounce_time_mt6878[];

struct mtk_eint;