From d5cbb97171432c6b78827994b092b957106c0345 Mon Sep 17 00:00:00 2001 From: Takashi YOSHII Date: Fri, 19 Nov 2010 16:49:38 +0900 Subject: [PATCH] --- yaml --- r: 227151 b: refs/heads/master c: 3256c789882281b2eac5978c7d38f6f0bbd16ed6 h: refs/heads/master i: 227149: f0219f1401940f5ab558b1ab56d9291015014caa 227147: c37511e2601864a764d243db65daea6de386cfdb 227143: 4d1a7443411399640193887d20e404232e14d7cf 227135: 69ac7309845e88f81cbbd9107eae58f92850ab98 v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-shmobile/Kconfig | 1 + trunk/arch/arm/mach-shmobile/board-ag5evm.c | 17 ++++++++++------- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/[refs] b/[refs] index 67369ad128a6..653d6bfa046a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1cdf370244d5f0a4cf5ed672967cc2e16235908d +refs/heads/master: 3256c789882281b2eac5978c7d38f6f0bbd16ed6 diff --git a/trunk/arch/arm/mach-shmobile/Kconfig b/trunk/arch/arm/mach-shmobile/Kconfig index 2910ba282482..7d56e86c75e0 100644 --- a/trunk/arch/arm/mach-shmobile/Kconfig +++ b/trunk/arch/arm/mach-shmobile/Kconfig @@ -61,6 +61,7 @@ endchoice config MACH_AG5EVM bool "AG5EVM board" depends on ARCH_SH73A0 + select ARCH_REQUIRE_GPIOLIB comment "SH-Mobile System Configuration" diff --git a/trunk/arch/arm/mach-shmobile/board-ag5evm.c b/trunk/arch/arm/mach-shmobile/board-ag5evm.c index bade04accc80..e0bc0811dc48 100644 --- a/trunk/arch/arm/mach-shmobile/board-ag5evm.c +++ b/trunk/arch/arm/mach-shmobile/board-ag5evm.c @@ -121,16 +121,19 @@ void __init ag5evm_init_irq(void) static void __init ag5evm_init(void) { + sh73a0_pinmux_init(); + /* enable SCIFA2 */ - __raw_writeb(0x12, PORT154CR); /* TXD */ - __raw_writeb(0x22, PORT155CR); /* RXD */ - __raw_writeb(0x12, PORT156CR); /* RTS */ - __raw_writeb(0x22, PORT157CR); /* CTS */ + gpio_request(GPIO_FN_SCIFA2_TXD1, NULL); + gpio_request(GPIO_FN_SCIFA2_RXD1, NULL); + gpio_request(GPIO_FN_SCIFA2_RTS1_, NULL); + gpio_request(GPIO_FN_SCIFA2_CTS1_, NULL); /* enable SMSC911X */ - __raw_writeb(0x20, PORT144CR); /* PINTA2 */ - __raw_writeb(0x10, PORT145CR); /* RESET */ - __raw_writel(__raw_readl(PORTR159_128DR) & ~(1 << 17), PORTR159_128DR); + gpio_request(GPIO_PORT144, NULL); /* PINTA2 */ + gpio_direction_input(GPIO_PORT144); + gpio_request(GPIO_PORT145, NULL); /* RESET */ + gpio_direction_output(GPIO_PORT145, 1); #ifdef CONFIG_CACHE_L2X0 /* Shared attribute override enable, 64K*8way */