summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuotao Fu <l.fu@pengutronix.de>2009-06-18 12:16:28 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-07-01 10:04:51 +0200
commit7117c5369337304549cd75cc6c8c71b1ff81a553 (patch)
tree9be7e9ec499e32a343070b3cc1db4a334ab97b2e
parentfaf5dffcf138816ca7bea7575a2db42d163cc718 (diff)
downloadlinux-2.6-7117c5369337304549cd75cc6c8c71b1ff81a553.tar.gz
linux-2.6-7117c5369337304549cd75cc6c8c71b1ff81a553.tar.xz
pca100: mux configuration for predefined gpio lines
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
-rw-r--r--arch/arm/mach-mx2/pca100.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-mx2/pca100.c b/arch/arm/mach-mx2/pca100.c
index f968858e26f..c1a5a46650b 100644
--- a/arch/arm/mach-mx2/pca100.c
+++ b/arch/arm/mach-mx2/pca100.c
@@ -488,6 +488,13 @@ static void __init pca100_init(void)
mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_OUT);
mxc_gpio_mode(GPIO_PORTD | 27 | GPIO_GPIO | GPIO_OUT);
+ /* GPIO0_IRQ */
+ mxc_gpio_mode(GPIO_PORTC | 31 | GPIO_GPIO | GPIO_IN);
+ /* GPIO1_IRQ */
+ mxc_gpio_mode(GPIO_PORTC | 25 | GPIO_GPIO | GPIO_IN);
+ /* GPIO2_IRQ */
+ mxc_gpio_mode(GPIO_PORTE | 5 | GPIO_GPIO | GPIO_IN);
+
mxc_register_device(&mxc_spi_device0, &pca100_spi_0_data);
spi_register_board_info(pca100_spi_board_info,