Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227151
b: refs/heads/master
c: 3256c78
h: refs/heads/master
i:
  227149: f0219f1
  227147: c37511e
  227143: 4d1a744
  227135: 69ac730
v: v3
  • Loading branch information
Takashi YOSHII authored and Paul Mundt committed Nov 19, 2010
1 parent 259cb19 commit d5cbb97
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1cdf370244d5f0a4cf5ed672967cc2e16235908d
refs/heads/master: 3256c789882281b2eac5978c7d38f6f0bbd16ed6
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-shmobile/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ endchoice
config MACH_AG5EVM
bool "AG5EVM board"
depends on ARCH_SH73A0
select ARCH_REQUIRE_GPIOLIB

comment "SH-Mobile System Configuration"

Expand Down
17 changes: 10 additions & 7 deletions trunk/arch/arm/mach-shmobile/board-ag5evm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d5cbb97

Please sign in to comment.