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

Marek Vasut marek.vasut at gmail.com
Thu Aug 12 07:48:03 EDT 2010


Dne St 11. srpna 2010 23:26:20 Marek Vasut napsal(a):
> Dne St 11. srpna 2010 16:33:45 Daniel Mack napsal(a):
> > Hi Yuri,
> > 
> > thanks for the patch.
> > 
> > On Wed, Aug 11, 2010 at 04:54:13PM +0400, Yuri Ludkevich wrote:
> > > 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.
> > 
> > This looks fine to me, but Marek wanted to rework the board support in
> > order to unify the GPIO configs for better readability. Marek, is there
> > any tree which contains your changes already?
> 
> I hope there will be tomorrow ...

It's in http://git.kernel.org/?p=linux/kernel/git/marex/pxa-
linux-2.6.git;a=summary , for-eric-devel branch. It's been there since 
yesterday, but I was so dead tired I forgot to notify you. Cheers
> 
> > Thanks,
> > Daniel
> > 
> > > 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")



More information about the linux-arm-kernel mailing list