aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2012-12-15 17:50:39 -0500
committerSimon Horman <horms+renesas@verge.net.au>2013-01-24 19:24:19 -0500
commitcc88ec4875d3da8746a74e5772aa331dbf661647 (patch)
tree0c175924bfc3333213b666c58e67a123fb2a034b /arch/sh
parentffacb6a3f625861e9dc0a53491c2b7e06ea46598 (diff)
sh: sh7786: Fix port E, G and J GPIOs
The port E, G and J GPIOs don't match the SoC datasheet (they seem to have been copied from the SH7785). Fix them. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/include/cpu-sh4/cpu/sh7786.h8
-rw-r--r--arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c4
2 files changed, 5 insertions, 7 deletions
diff --git a/arch/sh/include/cpu-sh4/cpu/sh7786.h b/arch/sh/include/cpu-sh4/cpu/sh7786.h
index 977862f9072a..0df09e638f09 100644
--- a/arch/sh/include/cpu-sh4/cpu/sh7786.h
+++ b/arch/sh/include/cpu-sh4/cpu/sh7786.h
@@ -32,16 +32,14 @@ enum {
32 GPIO_PD3, GPIO_PD2, GPIO_PD1, GPIO_PD0, 32 GPIO_PD3, GPIO_PD2, GPIO_PD1, GPIO_PD0,
33 33
34 /* PE */ 34 /* PE */
35 GPIO_PE5, GPIO_PE4, GPIO_PE3, GPIO_PE2, 35 GPIO_PE7, GPIO_PE6,
36 GPIO_PE1, GPIO_PE0,
37 36
38 /* PF */ 37 /* PF */
39 GPIO_PF7, GPIO_PF6, GPIO_PF5, GPIO_PF4, 38 GPIO_PF7, GPIO_PF6, GPIO_PF5, GPIO_PF4,
40 GPIO_PF3, GPIO_PF2, GPIO_PF1, GPIO_PF0, 39 GPIO_PF3, GPIO_PF2, GPIO_PF1, GPIO_PF0,
41 40
42 /* PG */ 41 /* PG */
43 GPIO_PG7, GPIO_PG6, GPIO_PG5, GPIO_PG4, 42 GPIO_PG7, GPIO_PG6, GPIO_PG5,
44 GPIO_PG3, GPIO_PG2, GPIO_PG1, GPIO_PG0,
45 43
46 /* PH */ 44 /* PH */
47 GPIO_PH7, GPIO_PH6, GPIO_PH5, GPIO_PH4, 45 GPIO_PH7, GPIO_PH6, GPIO_PH5, GPIO_PH4,
@@ -49,7 +47,7 @@ enum {
49 47
50 /* PJ */ 48 /* PJ */
51 GPIO_PJ7, GPIO_PJ6, GPIO_PJ5, GPIO_PJ4, 49 GPIO_PJ7, GPIO_PJ6, GPIO_PJ5, GPIO_PJ4,
52 GPIO_PJ3, GPIO_PJ2, GPIO_PJ1, GPIO_PJ0, 50 GPIO_PJ3, GPIO_PJ2, GPIO_PJ1,
53 51
54 /* DU */ 52 /* DU */
55 GPIO_FN_DCLKIN, GPIO_FN_DCLKOUT, GPIO_FN_ODDF, 53 GPIO_FN_DCLKIN, GPIO_FN_DCLKOUT, GPIO_FN_ODDF,
diff --git a/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c b/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c
index 4229e0724c89..c24a7779405e 100644
--- a/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c
+++ b/arch/sh/kernel/cpu/sh4a/pinmux-sh7786.c
@@ -468,8 +468,8 @@ static struct pinmux_gpio pinmux_gpios[] = {
468 PINMUX_GPIO(GPIO_PD0, PD0_DATA), 468 PINMUX_GPIO(GPIO_PD0, PD0_DATA),
469 469
470 /* PE */ 470 /* PE */
471 PINMUX_GPIO(GPIO_PE5, PE7_DATA), 471 PINMUX_GPIO(GPIO_PE7, PE7_DATA),
472 PINMUX_GPIO(GPIO_PE4, PE6_DATA), 472 PINMUX_GPIO(GPIO_PE6, PE6_DATA),
473 473
474 /* PF */ 474 /* PF */
475 PINMUX_GPIO(GPIO_PF7, PF7_DATA), 475 PINMUX_GPIO(GPIO_PF7, PF7_DATA),