lantiq: add v3.10 patches
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches-3.10 / 0028-pinctrl-lantiq-add-missing-pin-definition-to-falcon-.patch
1 From 1036e254e670d7c8470aab812167e3d44ff993c1 Mon Sep 17 00:00:00 2001
2 From: Thomas Langer <thomas.langer@lantiq.com>
3 Date: Fri, 9 Aug 2013 20:38:14 +0200
4 Subject: [PATCH 28/34] pinctrl/lantiq: add missing pin definition to falcon
5 pinctrl driver
6
7 The pps pin definition is missing in the current code.
8
9 Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
10 Acked-by: John Crispin <blogic@openwrt.org>
11 ---
12 drivers/pinctrl/pinctrl-falcon.c | 7 +++++--
13 1 file changed, 5 insertions(+), 2 deletions(-)
14
15 diff --git a/drivers/pinctrl/pinctrl-falcon.c b/drivers/pinctrl/pinctrl-falcon.c
16 index f9b2a1d..4e731f2 100644
17 --- a/drivers/pinctrl/pinctrl-falcon.c
18 +++ b/drivers/pinctrl/pinctrl-falcon.c
19 @@ -75,6 +75,7 @@ enum falcon_mux {
20 FALCON_MUX_GPIO = 0,
21 FALCON_MUX_RST,
22 FALCON_MUX_NTR,
23 + FALCON_MUX_PPS,
24 FALCON_MUX_MDIO,
25 FALCON_MUX_LED,
26 FALCON_MUX_SPI,
27 @@ -114,7 +115,7 @@ static struct ltq_mfp_pin falcon_mfp[] = {
28 MFP_FALCON(GPIO2, GPIO, GPIO, NONE, NONE),
29 MFP_FALCON(GPIO3, GPIO, GPIO, NONE, NONE),
30 MFP_FALCON(GPIO4, NTR, GPIO, NONE, NONE),
31 - MFP_FALCON(GPIO5, NTR, GPIO, NONE, NONE),
32 + MFP_FALCON(GPIO5, NTR, GPIO, PPS, NONE),
33 MFP_FALCON(GPIO6, RST, GPIO, NONE, NONE),
34 MFP_FALCON(GPIO7, MDIO, GPIO, NONE, NONE),
35 MFP_FALCON(GPIO8, MDIO, GPIO, NONE, NONE),
36 @@ -168,6 +169,7 @@ static struct ltq_mfp_pin falcon_mfp[] = {
37 static const unsigned pins_por[] = {GPIO0};
38 static const unsigned pins_ntr[] = {GPIO4};
39 static const unsigned pins_ntr8k[] = {GPIO5};
40 +static const unsigned pins_pps[] = {GPIO5};
41 static const unsigned pins_hrst[] = {GPIO6};
42 static const unsigned pins_mdio[] = {GPIO7, GPIO8};
43 static const unsigned pins_bled[] = {GPIO9, GPIO10, GPIO11,
44 @@ -186,6 +188,7 @@ static struct ltq_pin_group falcon_grps[] = {
45 GRP_MUX("por", RST, pins_por),
46 GRP_MUX("ntr", NTR, pins_ntr),
47 GRP_MUX("ntr8k", NTR, pins_ntr8k),
48 + GRP_MUX("pps", PPS, pins_pps),
49 GRP_MUX("hrst", RST, pins_hrst),
50 GRP_MUX("mdio", MDIO, pins_mdio),
51 GRP_MUX("bootled", LED, pins_bled),
52 @@ -201,7 +204,7 @@ static struct ltq_pin_group falcon_grps[] = {
53 };
54
55 static const char * const ltq_rst_grps[] = {"por", "hrst"};
56 -static const char * const ltq_ntr_grps[] = {"ntr", "ntr8k"};
57 +static const char * const ltq_ntr_grps[] = {"ntr", "ntr8k", "pps"};
58 static const char * const ltq_mdio_grps[] = {"mdio"};
59 static const char * const ltq_bled_grps[] = {"bootled"};
60 static const char * const ltq_asc_grps[] = {"asc0", "asc1"};
61 --
62 1.7.10.4
63