aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2017-03-11 07:49:58 +0100
committerJohn Crispin <john@phrozen.org>2017-03-11 07:49:58 +0100
commit0e56151ab24fe79677a845d2eb173fc336133752 (patch)
treecf63872759058eab1ad1770da48f6bfa78f159be /target/linux
parent8e75efc0fb52d02a0cdc13a5ad819b380de6f3da (diff)
downloadupstream-0e56151ab24fe79677a845d2eb173fc336133752.tar.gz
upstream-0e56151ab24fe79677a845d2eb173fc336133752.tar.bz2
upstream-0e56151ab24fe79677a845d2eb173fc336133752.zip
mediatek: fix ESW EINT pinctrl define
This got lost while bumping the target to v4.9 causing ethernet issues on some boards. Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/mediatek/patches-4.9/0000-pinctrl-esw.patch22
1 files changed, 20 insertions, 2 deletions
diff --git a/target/linux/mediatek/patches-4.9/0000-pinctrl-esw.patch b/target/linux/mediatek/patches-4.9/0000-pinctrl-esw.patch
index 2fedae701b..22c9a7ea2a 100644
--- a/target/linux/mediatek/patches-4.9/0000-pinctrl-esw.patch
+++ b/target/linux/mediatek/patches-4.9/0000-pinctrl-esw.patch
@@ -1,5 +1,7 @@
---- a/include/dt-bindings/pinctrl/mt7623-pinfunc.h
-+++ b/include/dt-bindings/pinctrl/mt7623-pinfunc.h
+Index: linux-4.9.13/include/dt-bindings/pinctrl/mt7623-pinfunc.h
+===================================================================
+--- linux-4.9.13.orig/include/dt-bindings/pinctrl/mt7623-pinfunc.h
++++ linux-4.9.13/include/dt-bindings/pinctrl/mt7623-pinfunc.h
@@ -505,6 +505,9 @@
#define MT7623_PIN_272_G2_RXD3_FUNC_GPIO272 (MTK_PIN_NO(272) | 0)
#define MT7623_PIN_272_G2_RXD3_FUNC_G2_RXD3 (MTK_PIN_NO(272) | 1)
@@ -10,3 +12,19 @@
#define MT7623_PIN_274_G2_RXDV_FUNC_GPIO274 (MTK_PIN_NO(274) | 0)
#define MT7623_PIN_274_G2_RXDV_FUNC_G2_RXDV (MTK_PIN_NO(274) | 1)
+Index: linux-4.9.13/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h
+===================================================================
+--- linux-4.9.13.orig/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h
++++ linux-4.9.13/drivers/pinctrl/mediatek/pinctrl-mtk-mt7623.h
+@@ -1894,8 +1894,9 @@ static const struct mtk_desc_pin mtk_pin
+ MTK_PIN(
+ PINCTRL_PIN(273, "GPIO273"),
+ NULL, "mt7623",
+- MTK_EINT_FUNCTION(NO_EINT_SUPPORT, NO_EINT_SUPPORT),
+- MTK_FUNCTION(0, "GPIO273")
++ MTK_EINT_FUNCTION(0, 168),
++ MTK_FUNCTION(0, "GPIO273"),
++ MTK_FUNCTION(1, "ESW_INT")
+ ),
+ MTK_PIN(
+ PINCTRL_PIN(274, "G2_RXDV"),