7cd8e1d5275f637d82fb1c063a6b53fd3a22b934
[openwrt.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 --- a/drivers/pinctrl/pinctrl-falcon.c
16 +++ b/drivers/pinctrl/pinctrl-falcon.c
17 @@ -75,6 +75,7 @@ enum falcon_mux {
18         FALCON_MUX_GPIO = 0,
19         FALCON_MUX_RST,
20         FALCON_MUX_NTR,
21 +       FALCON_MUX_PPS,
22         FALCON_MUX_MDIO,
23         FALCON_MUX_LED,
24         FALCON_MUX_SPI,
25 @@ -114,7 +115,7 @@ static struct ltq_mfp_pin falcon_mfp[] =
26         MFP_FALCON(GPIO2,       GPIO,   GPIO,   NONE,   NONE),
27         MFP_FALCON(GPIO3,       GPIO,   GPIO,   NONE,   NONE),
28         MFP_FALCON(GPIO4,       NTR,    GPIO,   NONE,   NONE),
29 -       MFP_FALCON(GPIO5,       NTR,    GPIO,   NONE,   NONE),
30 +       MFP_FALCON(GPIO5,       NTR,    GPIO,   PPS,    NONE),
31         MFP_FALCON(GPIO6,       RST,    GPIO,   NONE,   NONE),
32         MFP_FALCON(GPIO7,       MDIO,   GPIO,   NONE,   NONE),
33         MFP_FALCON(GPIO8,       MDIO,   GPIO,   NONE,   NONE),
34 @@ -168,6 +169,7 @@ static struct ltq_mfp_pin falcon_mfp[] =
35  static const unsigned pins_por[] = {GPIO0};
36  static const unsigned pins_ntr[] = {GPIO4};
37  static const unsigned pins_ntr8k[] = {GPIO5};
38 +static const unsigned pins_pps[] = {GPIO5};
39  static const unsigned pins_hrst[] = {GPIO6};
40  static const unsigned pins_mdio[] = {GPIO7, GPIO8};
41  static const unsigned pins_bled[] = {GPIO9, GPIO10, GPIO11,
42 @@ -186,6 +188,7 @@ static struct ltq_pin_group falcon_grps[
43         GRP_MUX("por", RST, pins_por),
44         GRP_MUX("ntr", NTR, pins_ntr),
45         GRP_MUX("ntr8k", NTR, pins_ntr8k),
46 +       GRP_MUX("pps", PPS, pins_pps),
47         GRP_MUX("hrst", RST, pins_hrst),
48         GRP_MUX("mdio", MDIO, pins_mdio),
49         GRP_MUX("bootled", LED, pins_bled),
50 @@ -201,7 +204,7 @@ static struct ltq_pin_group falcon_grps[
51  };
52  
53  static const char * const ltq_rst_grps[] = {"por", "hrst"};
54 -static const char * const ltq_ntr_grps[] = {"ntr", "ntr8k"};
55 +static const char * const ltq_ntr_grps[] = {"ntr", "ntr8k", "pps"};
56  static const char * const ltq_mdio_grps[] = {"mdio"};
57  static const char * const ltq_bled_grps[] = {"bootled"};
58  static const char * const ltq_asc_grps[] = {"asc0", "asc1"};