[PATCH] ARM: COLIBRI PXA320: fix UCB1400 irq autoprobing

Marek Vasut marek.vasut at gmail.com
Wed Aug 11 17:25:55 EDT 2010


Dne St 11. srpna 2010 14:54:13 Yuri Ludkevich napsal(a):
> 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")

Do we even have a touchscreen init routine on 320? Maybe you could supply us 
with such a patch too?

Thanks :)



More information about the linux-arm-kernel mailing list