| From 765c8732dd68dbdbf43b67f548c769ce213f1abb Mon Sep 17 00:00:00 2001 |
| From: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Date: Fri, 26 Jun 2015 01:43:07 +0300 |
| Subject: [PATCH 250/326] sh-pfc: r8a7791: remove non-existing GPIO pins |
| |
| GPIO banks 1 and 7 are missing pins 26 to 31. Remove them. |
| |
| Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> |
| Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> |
| Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> |
| Signed-off-by: Linus Walleij <linus.walleij@linaro.org> |
| (cherry picked from commit 441f77dcf8defcebb4477fea6db03624259fef42) |
| Signed-off-by: Simon Horman <horms+renesas@verge.net.au> |
| --- |
| drivers/pinctrl/sh-pfc/pfc-r8a7791.c | 19 +++++++++++++++++-- |
| 1 file changed, 17 insertions(+), 2 deletions(-) |
| |
| diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c |
| index 3ddf23ec9f0b..25e8117f5a1a 100644 |
| --- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c |
| +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c |
| @@ -14,15 +14,30 @@ |
| #include "core.h" |
| #include "sh_pfc.h" |
| |
| +#define PORT_GP_26(bank, fn, sfx) \ |
| + PORT_GP_1(bank, 0, fn, sfx), PORT_GP_1(bank, 1, fn, sfx), \ |
| + PORT_GP_1(bank, 2, fn, sfx), PORT_GP_1(bank, 3, fn, sfx), \ |
| + PORT_GP_1(bank, 4, fn, sfx), PORT_GP_1(bank, 5, fn, sfx), \ |
| + PORT_GP_1(bank, 6, fn, sfx), PORT_GP_1(bank, 7, fn, sfx), \ |
| + PORT_GP_1(bank, 8, fn, sfx), PORT_GP_1(bank, 9, fn, sfx), \ |
| + PORT_GP_1(bank, 10, fn, sfx), PORT_GP_1(bank, 11, fn, sfx), \ |
| + PORT_GP_1(bank, 12, fn, sfx), PORT_GP_1(bank, 13, fn, sfx), \ |
| + PORT_GP_1(bank, 14, fn, sfx), PORT_GP_1(bank, 15, fn, sfx), \ |
| + PORT_GP_1(bank, 16, fn, sfx), PORT_GP_1(bank, 17, fn, sfx), \ |
| + PORT_GP_1(bank, 18, fn, sfx), PORT_GP_1(bank, 19, fn, sfx), \ |
| + PORT_GP_1(bank, 20, fn, sfx), PORT_GP_1(bank, 21, fn, sfx), \ |
| + PORT_GP_1(bank, 22, fn, sfx), PORT_GP_1(bank, 23, fn, sfx), \ |
| + PORT_GP_1(bank, 24, fn, sfx), PORT_GP_1(bank, 25, fn, sfx) |
| + |
| #define CPU_ALL_PORT(fn, sfx) \ |
| PORT_GP_32(0, fn, sfx), \ |
| - PORT_GP_32(1, fn, sfx), \ |
| + PORT_GP_26(1, fn, sfx), \ |
| PORT_GP_32(2, fn, sfx), \ |
| PORT_GP_32(3, fn, sfx), \ |
| PORT_GP_32(4, fn, sfx), \ |
| PORT_GP_32(5, fn, sfx), \ |
| PORT_GP_32(6, fn, sfx), \ |
| - PORT_GP_32(7, fn, sfx) |
| + PORT_GP_26(7, fn, sfx) |
| |
| enum { |
| PINMUX_RESERVED = 0, |
| -- |
| 2.6.2 |
| |