ARM: mach-shmobile: ag5evm: use gpio.

Ag5evm board now uses gpio api to initialize pins and peripherals.

Signed-off-by: Takashi YOSHII <takashi.yoshii.zj@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Takashi YOSHII 2010-11-19 16:49:38 +09:00 committed by Paul Mundt
parent 1cdf370244
commit 3256c78988
2 changed files with 11 additions and 7 deletions

View File

@ -61,6 +61,7 @@ endchoice
config MACH_AG5EVM config MACH_AG5EVM
bool "AG5EVM board" bool "AG5EVM board"
depends on ARCH_SH73A0 depends on ARCH_SH73A0
select ARCH_REQUIRE_GPIOLIB
comment "SH-Mobile System Configuration" comment "SH-Mobile System Configuration"

View File

@ -121,16 +121,19 @@ void __init ag5evm_init_irq(void)
static void __init ag5evm_init(void) static void __init ag5evm_init(void)
{ {
sh73a0_pinmux_init();
/* enable SCIFA2 */ /* enable SCIFA2 */
__raw_writeb(0x12, PORT154CR); /* TXD */ gpio_request(GPIO_FN_SCIFA2_TXD1, NULL);
__raw_writeb(0x22, PORT155CR); /* RXD */ gpio_request(GPIO_FN_SCIFA2_RXD1, NULL);
__raw_writeb(0x12, PORT156CR); /* RTS */ gpio_request(GPIO_FN_SCIFA2_RTS1_, NULL);
__raw_writeb(0x22, PORT157CR); /* CTS */ gpio_request(GPIO_FN_SCIFA2_CTS1_, NULL);
/* enable SMSC911X */ /* enable SMSC911X */
__raw_writeb(0x20, PORT144CR); /* PINTA2 */ gpio_request(GPIO_PORT144, NULL); /* PINTA2 */
__raw_writeb(0x10, PORT145CR); /* RESET */ gpio_direction_input(GPIO_PORT144);
__raw_writel(__raw_readl(PORTR159_128DR) & ~(1 << 17), PORTR159_128DR); gpio_request(GPIO_PORT145, NULL); /* RESET */
gpio_direction_output(GPIO_PORT145, 1);
#ifdef CONFIG_CACHE_L2X0 #ifdef CONFIG_CACHE_L2X0
/* Shared attribute override enable, 64K*8way */ /* Shared attribute override enable, 64K*8way */