Skip to content

Commit

Permalink
MIPS: RB532: Set gpio interrupt status and level for CompactFlash
Browse files Browse the repository at this point in the history
This patch sets the correct interrupt status and level
in order to get the CompactFlash adapter working.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Florian Fainelli authored and Ralf Baechle committed Oct 27, 2008
1 parent 052ac71 commit fa36b04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/mips/rb532/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,10 @@ int __init rb532_gpio_init(void)
return -ENXIO;
}

/* Set the interrupt status and level for the CF pin */
rb532_gpio_set_int_level(&rb532_gpio_chip->chip, CF_GPIO_NUM, 1);
rb532_gpio_set_int_status(&rb532_gpio_chip->chip, CF_GPIO_NUM, 0);

return 0;
}
arch_initcall(rb532_gpio_init);

0 comments on commit fa36b04

Please sign in to comment.