Subject: Re: initialization probrem for GPIO of pxa2x0
To: None <port-arm@netbsd.org>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: port-arm
Date: 07/21/2007 03:05:55
Hi! all,


I apologize for this very late work.  I plan to start this work from
next week.  I will initialize GPIO in the substrate dependence part. 

Thanks,
--
kiyohara


From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
Date: Mon, 21 May 2007 23:55:44 +0900 (JST)

> Our GPIO initiation for each devices has a lot of problem.
> 
> First, PXA2{55,60,70} is different for the GPIO functions.  For instance,
> AC97_SDATA_IN_1 is GPIO99 (PXA270) and GPIO32 (PXA2{55,60}).  Then,
> pxa2x0_ac97.c initializes it excluding this pin. 
> 
> Next, for instance PXA2{55,60} has I2C bus controller.  However
> pxa2x0_i2c.c sets function GPIO_ALT_FN_1_IN for GPIO11[78].  Moreover
> PXA2{55,60} hasn't GPIO11[78].  It will go to panic() possibly.  X-<
> 
> 
> I think we must set configure the GPIO in init_arm() and other.  And
> test to GPIO configuration from DEVICE_match().  If enable a device
> then to attach a device.
> It just to the way of gxpcic_match.c::gxpcic_match(). 
> 
> 
> Shall I correct them to other PXA2xx machines?
> --
> kiyohara