From mboxrd@z Thu Jan 1 00:00:00 1970 From: Magnus Damm Date: Wed, 08 Oct 2008 11:42:01 +0000 Subject: [PATCH 03/09] sh: Use sh7722 GPIO on Migo-R board Message-Id: <20081008114201.25282.69471.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 Migo-R and converts the code from register based pinmux configuration to GPIO based pin by pin setup. Fix whitespace damage while at it and add 2 LEDs and export them to user space. Signed-off-by: Magnus Damm --- arch/sh/boards/Kconfig | 1 arch/sh/boards/mach-migor/lcd_qvga.c | 6 - arch/sh/boards/mach-migor/setup.c | 187 +++++++++++++++++++++------------- 3 files changed, 125 insertions(+), 69 deletions(-) --- 0001/arch/sh/boards/Kconfig +++ work/arch/sh/boards/Kconfig 2008-10-08 18:51:31.000000000 +0900 @@ -162,6 +162,7 @@ config SH_SH7785LCR_29BIT_PHYSMAPS config SH_MIGOR bool "Migo-R" depends on CPU_SUBTYPE_SH7722 + select GENERIC_GPIO help Select Migo-R if configuring for the SH7722 Migo-R platform by Renesas System Solutions Asia Pte. Ltd. --- 0001/arch/sh/boards/mach-migor/lcd_qvga.c +++ work/arch/sh/boards/mach-migor/lcd_qvga.c 2008-10-08 18:50:59.000000000 +0900 @@ -17,7 +17,9 @@ #include #include #include +#include #include