Thread (16 messages) flat view 16 messages, 5 authors, 2007-06-15

Re: 83xx GPIO/EXT int in arch/powerpc/

From: Andy Fleming <hidden>
Date: 2007-06-04 21:56:55

On Jun 4, 2007, at 16:17, Marc Leeman wrote:
So I don't have to define the GPIO pins in pio-map in "vi) Pin
configuration nodes" and already set in the U-Boot bootloader?  
Using the
GPIOs for interrupts or IO would just work "out of the box" after the
U-boot initialisation (used for TI's HPI in with the UPMB).
I meant external interrupts, not GPIOs.  I just had a brain fart.
Hang, and I finally thought the documentation made sense to me :-)

I already tried hardcoding the EXT7 pin as assigned in the ppc arch
(int 23); this would mean that, in the powerpc arch, the  
assignments of
interrupts is different wrt to ppc?

In the intervening versions between the introduction of arch/powerpc,  
and now, the interrupt mapping has also changed.  The interrupts are  
now all virtualized, and therefore all the interrupts start at 1 for  
each interrupt controller.  The numbers therefore change depending on  
how things are initialized.  You can't use hard-coded numbers  
anymore.  You need to map them into virtual numbers.  The easiest way  
is to set up an of node for the device, and invoke the necessary  
translation functions from your board code (Take a look at the CDS  
code for an example with a fairly complicated tree.  Or any other fsl  
board code for an almost-reasonable topology.  :) )

Andy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help