[PATCH] ARM: COLIBRI PXA320: fix UCB1400 irq autoprobing
Yuri Ludkevich
urx.forever at gmail.com
Wed Aug 11 08:54:15 EDT 2010
Ads properly initialization to GPIO4 ( alt. fn. #1, nCS3; because GPIO4 and
GPIO4_2 cannot be
configured as GPIO simultaneously ) so GPIO4_2 which used as irq line from
UCB1400 may be
detected while irq autoprobing routine.
Signed-off by: Yuri Ludkevich <urx.forever at gmail.com>
---
--- linux-next/arch/arm/mach-pxa/colibri-pxa320.c.orig 2010-08-11
16:01:46.000000000 +0400
+++ linux-next/arch/arm/mach-pxa/colibri-pxa320.c 2010-08-11
16:23:30.000000000 +0400
@@ -236,6 +236,19 @@ static void __init colibri_pxa320_init_u
pxa3xx_mfp_config(ARRAY_AND_SIZE(colibri_pxa320_uart_pin_config));
}
+
+static mfp_cfg_t colibri_pxa320_cpld_pin_config[] __initdata = {
+ /* init GPIO4 as nCS3 (AF1). If GPIO4 stay as GPIO
+ touchscreen irq (GPIO4_2 pin) autoprobing will not work.
+ See Marvell PXA320 datasheet for more details */
+ GPIO4_nCS3,
+};
+
+static void __init colibri_pxa320_init_cpld(void)
+{
+ pxa3xx_mfp_config(ARRAY_AND_SIZE(colibri_pxa320_cpld_pin_config));
+}
+
void __init colibri_pxa320_init(void)
{
pxa_set_ffuart_info(NULL);
@@ -252,6 +265,7 @@ void __init colibri_pxa320_init(void)
mfp_to_gpio(MFP_PIN_GPIO28));
colibri_pxa320_init_uart();
colibri_pxa320_init_udc();
+ colibri_pxa320_init_cpld();
}
MACHINE_START(COLIBRI320, "Toradex Colibri PXA320")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100811/a2e4b3bb/attachment-0001.html>
More information about the linux-arm-kernel
mailing list