<div>Hi Stefan,</div>
<div> </div>
<div>thanks for you reply, as per Amcc 440 ep h/w spec . I can see 10 External interrupts can be configured !! So can i use the GPIO ping mapped to one of these external IRQ's ? Or should the h/w deisgn also support it or is it pure s/w configurations. So i would just like to get an indication via interrupt when status is changed (0/1). I would like to do this is linux.</div>
<div> </div>
<div>Are there any reference drivers for this ? how to go about it ?</div>
<div> </div>
<div>Thanks & Regards</div>
<div>Zoolu<br></div>
<div class="gmail_quote">On Mon, Feb 8, 2010 at 11:43 PM, Stefan Roese <span dir="ltr"><<a href="mailto:sr@denx.de">sr@denx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Zoolu,<br><br>first, this question is not ELDK related. You should send it to Linux-PPC<br>mailing list instead <<a href="mailto:linuxppc-dev@ozlabs.org">linuxppc-dev@ozlabs.org</a>>. But still here a few quick<br>
answers/comments.<br>
<div class="im"><br>On Monday 08 February 2010 17:37:20 Zoolu R wrote:<br>> We are using a target with AMCC 440ep processor. We need to read the a GPIO<br>> pin value in a interrupt mode in linux kernel. Is there some modules where<br>
> i can refer so some generic implementation(configuring gpio pin as<br>> inteerupt pin and handlling the same).<br><br></div>The PPC4xx GPIO support is available in the current Linux kernel. See:<br><br>arch/powerpc/sysdev/ppc4xx_gpio.c<br>
<br>for more details. Please note that you also need to write a GPIO device node<br>in the device tree source (dts) of your Linux port. See this file for details<br>in the GPIO node:<br><br>arch/powerpc/boot/dts/warp.dts<br>
<div class="im"><br>> I would like to detect the dynamic<br>> value change(0/1) using interrupt and perform isr_call back. Could some<br>> one show me some pointers.<br><br></div>So you don't want to use the GPIO pin functionality, but the external<br>
interrupt functionality (the pin functions are multiplexed). You need to write<br>a device driver for your custom device. And you need to configure the pin as<br>external interrupt and again add a device node including the interrupt<br>
description into your device tree source (dts).<br><br>Cheers,<br>Stefan<br><font color="#888888"><br>--<br>DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel<br>HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany<br>
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: <a href="mailto:office@denx.de">office@denx.de</a><br></font></blockquote></div><br>