mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 07:26:17 +02:00
[adm5120] enable wait state pin for the CF slot on the RB153 board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9709 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c55e60e2ba
commit
d62dc9dbcf
@ -242,8 +242,10 @@ static void __init rb1xx_flash_setup(void)
|
||||
|
||||
static void __init rb153_cf_setup(void)
|
||||
{
|
||||
/* enable CSX1:INTX1 on GPIO 3:4 for the CF slot */
|
||||
/* enable CSX1:INTX1 on GPIO[3:4] for the CF slot */
|
||||
adm5120_gpio_csx1_enable();
|
||||
/* enable the wait state pin GPIO[0] for external I/O control */
|
||||
adm5120_gpio_ew_enable();
|
||||
|
||||
gpio_request(RB153_GPIO_CF_RDY, "cf-ready");
|
||||
gpio_direction_input(RB153_GPIO_CF_RDY);
|
||||
|
@ -370,6 +370,8 @@ void __init adm5120_gpio_ew_enable(void)
|
||||
t = SW_READ_REG(GPIO_CONF2);
|
||||
t |= GPIO_CONF2_EW;
|
||||
SW_WRITE_REG(GPIO_CONF2, t);
|
||||
|
||||
adm5120_gpio_map[ADM5120_GPIO_PIN0].flags &= ~GPIO_FLAG_VALID;
|
||||
}
|
||||
|
||||
void __init adm5120_gpio_init(void)
|
||||
|
Loading…
Reference in New Issue
Block a user