From 91b6f3c5252937f85e56c71215b37024827ae924 Mon Sep 17 00:00:00 2001 From: Magnus Damm Date: Wed, 8 Oct 2008 20:42:01 +0900 Subject: sh: Use sh7722 GPIO on Migo-R board 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 Signed-off-by: Paul Mundt --- 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(-) (limited to 'arch') diff --git a/arch/sh/boards/Kconfig b/arch/sh/boards/Kconfig index c6b21e82755..4e37f5c0215 100644 --- a/arch/sh/boards/Kconfig +++ b/arch/sh/boards/Kconfig @@ -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. diff --git a/arch/sh/boards/mach-migor/lcd_qvga.c b/arch/sh/boards/mach-migor/lcd_qvga.c index 735326c0449..c283cfc2a5c 100644 --- a/arch/sh/boards/mach-migor/lcd_qvga.c +++ b/arch/sh/boards/mach-migor/lcd_qvga.c @@ -17,7 +17,9 @@ #include #include #include +#include #include