diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-04 15:32:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-04 15:32:41 -0400 |
commit | 22b154365fbc096a46d936ec1f462ef8b9bd1f05 (patch) | |
tree | 69459adc5424e1efc3c74ae3e96bfa44e00672c6 /arch/sh | |
parent | 6fa52ed33bea997374a88dbacbba5bf8c7ac4fef (diff) | |
parent | cb3daf580a6bd798580d274a164e63a598d165c5 (diff) |
Merge tag 'renesas-pinctrl-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC pinctrl changes for Renesas from Olof Johansson:
"This is yet another driver change, which is split out just because of
its size. As already in 3.9, a lot of changes are going on here, as
the shmobile platform gets converted from its own pin control API to
the generic drivers/pinctrl subsystem.
Based on agreements with Paul Mundt, we are merging the sh-arch-side
changes here as well"
* tag 'renesas-pinctrl-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (142 commits)
ARM: shmobile: r8a7779: Remove INTC function GPIOs
ARM: shmobile: r8a7779: Remove LBSC function GPIOs
ARM: shmobile: r8a7779: Remove USB function GPIOs
ARM: shmobile: r8a7779: Remove HSPI function GPIOs
ARM: shmobile: r8a7779: Remove SCIF function GPIOs
ARM: shmobile: r8a7779: Remove SDHI and MMCIF function GPIOs
ARM: shmobile: r8a7779: Remove DU function GPIOs
ARM: shmobile: r8a7779: Remove DU1_DOTCLKOUT1 GPIO
ARM: shmobile: r8a7740: Remove SDHI and MMCIF function GPIOs
ARM: shmobile: r8a7740: Remove LCD0 and LCD1 function GPIOs
ARM: shmobile: sh73a0: Remove IrDA function GPIOs
ARM: shmobile: sh73a0: Remove USB function GPIOs
ARM: shmobile: sh73a0: Remove BSC function GPIOs
ARM: shmobile: sh73a0: Remove KEYSC function GPIOs
ARM: shmobile: sh73a0: Remove pull-up function GPIOS
ARM: shmobile: sh73a0: Remove FSI function GPIOs
ARM: shmobile: sh73a0: Remove I2C function GPIOs
ARM: shmobile: sh73a0: Remove SCIFA and SCIFB function GPIOs
ARM: shmobile: sh73a0: Remove LCDC and LCDC2 function GPIOs
ARM: shmobile: sh7372: Remove SDHI and MMCIF function GPIOs
...
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c | 13 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c | 13 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c | 11 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh3/pinmux-sh7720.c | 14 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c | 14 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c | 14 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c | 13 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c | 13 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c | 14 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c | 14 | ||||
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/pinmux-shx3.c | 17 |
11 files changed, 132 insertions, 18 deletions
diff --git a/arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c b/arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c index 96c6c2634cb4..eef17dcc3a41 100644 --- a/arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c +++ b/arch/sh/kernel/cpu/sh2a/pinmux-sh7203.c | |||
@@ -8,12 +8,23 @@ | |||
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/bug.h> | ||
11 | #include <linux/init.h> | 12 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/ioport.h> | ||
13 | #include <cpu/pfc.h> | 15 | #include <cpu/pfc.h> |
14 | 16 | ||
17 | static struct resource sh7203_pfc_resources[] = { | ||
18 | [0] = { | ||
19 | .start = 0xfffe3800, | ||
20 | .end = 0xfffe3a9f, | ||
21 | .flags = IORESOURCE_MEM, | ||
22 | }, | ||
23 | }; | ||
24 | |||
15 | static int __init plat_pinmux_setup(void) | 25 | static int __init plat_pinmux_setup(void) |
16 | { | 26 | { |
17 | return sh_pfc_register("pfc-sh7203", NULL, 0); | 27 | return sh_pfc_register("pfc-sh7203", sh7203_pfc_resources, |
28 | ARRAY_SIZE(sh7203_pfc_resources)); | ||
18 | } | 29 | } |
19 | arch_initcall(plat_pinmux_setup); | 30 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c b/arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c index b1b7c1bae127..569decbd6d93 100644 --- a/arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c +++ b/arch/sh/kernel/cpu/sh2a/pinmux-sh7264.c | |||
@@ -8,12 +8,23 @@ | |||
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/bug.h> | ||
11 | #include <linux/init.h> | 12 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/ioport.h> | ||
13 | #include <cpu/pfc.h> | 15 | #include <cpu/pfc.h> |
14 | 16 | ||
17 | static struct resource sh7264_pfc_resources[] = { | ||
18 | [0] = { | ||
19 | .start = 0xfffe3800, | ||
20 | .end = 0xfffe393f, | ||
21 | .flags = IORESOURCE_MEM, | ||
22 | }, | ||
23 | }; | ||
24 | |||
15 | static int __init plat_pinmux_setup(void) | 25 | static int __init plat_pinmux_setup(void) |
16 | { | 26 | { |
17 | return sh_pfc_register("pfc-sh7264", NULL, 0); | 27 | return sh_pfc_register("pfc-sh7264", sh7264_pfc_resources, |
28 | ARRAY_SIZE(sh7264_pfc_resources)); | ||
18 | } | 29 | } |
19 | arch_initcall(plat_pinmux_setup); | 30 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c b/arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c index dc2a86830456..1825b0bd523d 100644 --- a/arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c +++ b/arch/sh/kernel/cpu/sh2a/pinmux-sh7269.c | |||
@@ -13,8 +13,17 @@ | |||
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <cpu/pfc.h> | 14 | #include <cpu/pfc.h> |
15 | 15 | ||
16 | static struct resource sh7269_pfc_resources[] = { | ||
17 | [0] = { | ||
18 | .start = 0xfffe3800, | ||
19 | .end = 0xfffe391f, | ||
20 | .flags = IORESOURCE_MEM, | ||
21 | }, | ||
22 | }; | ||
23 | |||
16 | static int __init plat_pinmux_setup(void) | 24 | static int __init plat_pinmux_setup(void) |
17 | { | 25 | { |
18 | return sh_pfc_register("pfc-sh7269", NULL, 0); | 26 | return sh_pfc_register("pfc-sh7269", sh7269_pfc_resources, |
27 | ARRAY_SIZE(sh7269_pfc_resources)); | ||
19 | } | 28 | } |
20 | arch_initcall(plat_pinmux_setup); | 29 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh3/pinmux-sh7720.c b/arch/sh/kernel/cpu/sh3/pinmux-sh7720.c index 7d3744ac7b08..26e90a66ebb7 100644 --- a/arch/sh/kernel/cpu/sh3/pinmux-sh7720.c +++ b/arch/sh/kernel/cpu/sh3/pinmux-sh7720.c | |||
@@ -8,13 +8,23 @@ | |||
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/bug.h> | ||
11 | #include <linux/init.h> | 12 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/ioport.h> | ||
13 | #include <cpu/pfc.h> | 15 | #include <cpu/pfc.h> |
14 | 16 | ||
17 | static struct resource sh7720_pfc_resources[] = { | ||
18 | [0] = { | ||
19 | .start = 0xa4050100, | ||
20 | .end = 0xa405016f, | ||
21 | .flags = IORESOURCE_MEM, | ||
22 | }, | ||
23 | }; | ||
24 | |||
15 | static int __init plat_pinmux_setup(void) | 25 | static int __init plat_pinmux_setup(void) |
16 | { | 26 | { |
17 | return sh_pfc_register("pfc-sh7720", NULL, 0); | 27 | return sh_pfc_register("pfc-sh7720", sh7720_pfc_resources, |
28 | ARRAY_SIZE(sh7720_pfc_resources)); | ||
18 | } | 29 | } |
19 | |||
20 | arch_initcall(plat_pinmux_setup); | 30 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c index d9bcc4290997..271bbc864929 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7722.c | |||
@@ -1,10 +1,20 @@ | |||
1 | #include <linux/bug.h> | ||
1 | #include <linux/init.h> | 2 | #include <linux/init.h> |
2 | #include <linux/kernel.h> | 3 | #include <linux/kernel.h> |
4 | #include <linux/ioport.h> | ||
3 | #include <cpu/pfc.h> | 5 | #include <cpu/pfc.h> |
4 | 6 | ||
7 | static struct resource sh7722_pfc_resources[] = { | ||
8 | [0] = { | ||
9 | .start = 0xa4050100, | ||
10 | .end = 0xa405018f, | ||
11 | .flags = IORESOURCE_MEM, | ||
12 | }, | ||
13 | }; | ||
14 | |||
5 | static int __init plat_pinmux_setup(void) | 15 | static int __init plat_pinmux_setup(void) |
6 | { | 16 | { |
7 | return sh_pfc_register("pfc-sh7722", NULL, 0); | 17 | return sh_pfc_register("pfc-sh7722", sh7722_pfc_resources, |
18 | ARRAY_SIZE(sh7722_pfc_resources)); | ||
8 | } | 19 | } |
9 | |||
10 | arch_initcall(plat_pinmux_setup); | 20 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c index bcec7ad7f783..99c637d5bf7a 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7723.c | |||
@@ -8,13 +8,23 @@ | |||
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/bug.h> | ||
11 | #include <linux/init.h> | 12 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/ioport.h> | ||
13 | #include <cpu/pfc.h> | 15 | #include <cpu/pfc.h> |
14 | 16 | ||
17 | static struct resource sh7723_pfc_resources[] = { | ||
18 | [0] = { | ||
19 | .start = 0xa4050100, | ||
20 | .end = 0xa405016f, | ||
21 | .flags = IORESOURCE_MEM, | ||
22 | }, | ||
23 | }; | ||
24 | |||
15 | static int __init plat_pinmux_setup(void) | 25 | static int __init plat_pinmux_setup(void) |
16 | { | 26 | { |
17 | return sh_pfc_register("pfc-sh7723", NULL, 0); | 27 | return sh_pfc_register("pfc-sh7723", sh7723_pfc_resources, |
28 | ARRAY_SIZE(sh7723_pfc_resources)); | ||
18 | } | 29 | } |
19 | |||
20 | arch_initcall(plat_pinmux_setup); | 30 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c index 5c3541d6aed8..63be4749e341 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7724.c | |||
@@ -13,12 +13,23 @@ | |||
13 | * for more details. | 13 | * for more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/bug.h> | ||
16 | #include <linux/init.h> | 17 | #include <linux/init.h> |
17 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
19 | #include <linux/ioport.h> | ||
18 | #include <cpu/pfc.h> | 20 | #include <cpu/pfc.h> |
19 | 21 | ||
22 | static struct resource sh7724_pfc_resources[] = { | ||
23 | [0] = { | ||
24 | .start = 0xa4050100, | ||
25 | .end = 0xa405016f, | ||
26 | .flags = IORESOURCE_MEM, | ||
27 | }, | ||
28 | }; | ||
29 | |||
20 | static int __init plat_pinmux_setup(void) | 30 | static int __init plat_pinmux_setup(void) |
21 | { | 31 | { |
22 | return sh_pfc_register("pfc-sh7724", NULL, 0); | 32 | return sh_pfc_register("pfc-sh7724", sh7724_pfc_resources, |
33 | ARRAY_SIZE(sh7724_pfc_resources)); | ||
23 | } | 34 | } |
24 | arch_initcall(plat_pinmux_setup); | 35 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c index cda6bd177b8c..567745d44221 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7757.c | |||
@@ -13,12 +13,23 @@ | |||
13 | * for more details. | 13 | * for more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/bug.h> | ||
16 | #include <linux/init.h> | 17 | #include <linux/init.h> |
17 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
19 | #include <linux/ioport.h> | ||
18 | #include <cpu/pfc.h> | 20 | #include <cpu/pfc.h> |
19 | 21 | ||
22 | static struct resource sh7757_pfc_resources[] = { | ||
23 | [0] = { | ||
24 | .start = 0xffec0000, | ||
25 | .end = 0xffec008f, | ||
26 | .flags = IORESOURCE_MEM, | ||
27 | }, | ||
28 | }; | ||
29 | |||
20 | static int __init plat_pinmux_setup(void) | 30 | static int __init plat_pinmux_setup(void) |
21 | { | 31 | { |
22 | return sh_pfc_register("pfc-sh7757", NULL, 0); | 32 | return sh_pfc_register("pfc-sh7757", sh7757_pfc_resources, |
33 | ARRAY_SIZE(sh7757_pfc_resources)); | ||
23 | } | 34 | } |
24 | arch_initcall(plat_pinmux_setup); | 35 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c index 01055b809f64..e336ab8b5125 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7785.c | |||
@@ -8,13 +8,23 @@ | |||
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <linux/bug.h> | ||
11 | #include <linux/init.h> | 12 | #include <linux/init.h> |
12 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/ioport.h> | ||
13 | #include <cpu/pfc.h> | 15 | #include <cpu/pfc.h> |
14 | 16 | ||
17 | static struct resource sh7785_pfc_resources[] = { | ||
18 | [0] = { | ||
19 | .start = 0xffe70000, | ||
20 | .end = 0xffe7008f, | ||
21 | .flags = IORESOURCE_MEM, | ||
22 | }, | ||
23 | }; | ||
24 | |||
15 | static int __init plat_pinmux_setup(void) | 25 | static int __init plat_pinmux_setup(void) |
16 | { | 26 | { |
17 | return sh_pfc_register("pfc-sh7785", NULL, 0); | 27 | return sh_pfc_register("pfc-sh7785", sh7785_pfc_resources, |
28 | ARRAY_SIZE(sh7785_pfc_resources)); | ||
18 | } | 29 | } |
19 | |||
20 | arch_initcall(plat_pinmux_setup); | 30 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c index 3061778d55da..9a459556a2f7 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c | |||
@@ -13,13 +13,23 @@ | |||
13 | * for more details. | 13 | * for more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/bug.h> | ||
16 | #include <linux/init.h> | 17 | #include <linux/init.h> |
17 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
19 | #include <linux/ioport.h> | ||
18 | #include <cpu/pfc.h> | 20 | #include <cpu/pfc.h> |
19 | 21 | ||
22 | static struct resource sh7786_pfc_resources[] = { | ||
23 | [0] = { | ||
24 | .start = 0xffcc0000, | ||
25 | .end = 0xffcc008f, | ||
26 | .flags = IORESOURCE_MEM, | ||
27 | }, | ||
28 | }; | ||
29 | |||
20 | static int __init plat_pinmux_setup(void) | 30 | static int __init plat_pinmux_setup(void) |
21 | { | 31 | { |
22 | return sh_pfc_register("pfc-sh7786", NULL, 0); | 32 | return sh_pfc_register("pfc-sh7786", sh7786_pfc_resources, |
33 | ARRAY_SIZE(sh7786_pfc_resources)); | ||
23 | } | 34 | } |
24 | |||
25 | arch_initcall(plat_pinmux_setup); | 35 | arch_initcall(plat_pinmux_setup); |
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c b/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c index ace84acc55ea..444bf25c60fa 100644 --- a/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c +++ b/arch/sh/kernel/cpu/sh4a/pinmux-shx3.c | |||
@@ -7,12 +7,23 @@ | |||
7 | * License. See the file "COPYING" in the main directory of this archive | 7 | * License. See the file "COPYING" in the main directory of this archive |
8 | * for more details. | 8 | * for more details. |
9 | */ | 9 | */ |
10 | #include <linux/bug.h> | ||
10 | #include <linux/init.h> | 11 | #include <linux/init.h> |
11 | #include <linux/kernel.h> | 12 | #include <linux/kernel.h> |
13 | #include <linux/ioport.h> | ||
12 | #include <cpu/pfc.h> | 14 | #include <cpu/pfc.h> |
13 | 15 | ||
14 | static int __init shx3_pinmux_setup(void) | 16 | static struct resource shx3_pfc_resources[] = { |
17 | [0] = { | ||
18 | .start = 0xffc70000, | ||
19 | .end = 0xffc7001f, | ||
20 | .flags = IORESOURCE_MEM, | ||
21 | }, | ||
22 | }; | ||
23 | |||
24 | static int __init plat_pinmux_setup(void) | ||
15 | { | 25 | { |
16 | return sh_pfc_register("pfc-shx3", NULL, 0); | 26 | return sh_pfc_register("pfc-shx3", shx3_pfc_resources, |
27 | ARRAY_SIZE(shx3_pfc_resources)); | ||
17 | } | 28 | } |
18 | arch_initcall(shx3_pinmux_setup); | 29 | arch_initcall(plat_pinmux_setup); |