From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Damm Date: Wed, 08 Oct 2008 11:42:20 +0000 Subject: [PATCH 05/09] sh: Use sh7723 GPIO on AP325RXA board Message-Id: <20081008114220.25282.38689.sendpatchset@rx1.opensource.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sh@vger.kernel.org From: Magnus Damm This patch enables the GPIO code on AP325RXA and converts the code from register based pinmux configuration to GPIO based pin by pin setup. While at it 2 LEDs and one switch are added and exported to user space. Signed-off-by: Magnus Damm --- arch/sh/boards/Kconfig | 1 arch/sh/boards/board-ap325rxa.c | 100 ++++++++++++++++++++++++++++----------- 2 files changed, 75 insertions(+), 26 deletions(-) --- 0004/arch/sh/boards/Kconfig +++ work/arch/sh/boards/Kconfig 2008-10-08 19:23:44.000000000 +0900 @@ -170,6 +170,7 @@ config SH_MIGOR config SH_AP325RXA bool "AP-325RXA" depends on CPU_SUBTYPE_SH7723 + select GENERIC_GPIO help Renesas "AP-325RXA" support. Compatible with ALGO SYSTEM CO.,LTD. "AP-320A" --- 0001/arch/sh/boards/board-ap325rxa.c +++ work/arch/sh/boards/board-ap325rxa.c 2008-10-08 19:23:28.000000000 +0900 @@ -18,11 +18,13 @@ #include #include #include +#include #include #include #include