linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hemanthv@ti.com (Hemanth V)
To: linux-arm-kernel@lists.infradead.org
Subject: Interrupt registering for PIO problem in ATMEL chips
Date: Tue, 23 Feb 2010 11:37:16 +0530	[thread overview]
Message-ID: <038201cab44e$744f18f0$LocalHost@wipblrx0099946> (raw)
In-Reply-To: 17E4CABDDEE0BC4A9F40814378DEC0CB21EB65@BLR-EC-MBX03.wipro.com

----- Original Message ----- 
From: <biswa.nayak@wipro.com>
To: <linux-arm-kernel@lists.infradead.org>
Sent: Monday, February 22, 2010 2:06 PM
Subject: Interrupt registering for PIO problem in ATMEL chips


> Hello List,
> I have a strange issue with dealing with interrupts in a ATMEL chip as
> described below.
>
> As per the documentations, the peripherals of my board (custom one based
> on AT91SAM9260) are connected to the Advanced Interrupt Controller (AIC)
> of the ATMEL chip via the Parallel I/O (PIO) chips.
> Also, PIOs can not distinguish between inputs and interrupts, as they
> treat everything as inputs.
>
> Now, my problem is I am writing this keypad driver, which is connected
> to PIOA.
> I am able to read the key press event if I keep reading the PIO lines in
> a loop.
>
> Now, I need to read the key press events in an interrupt handler (but
> obvious) How exactly can I install an interrupt handler?
>
> The PIOA is connected to pin 2 of AIC, but then I can not install the
> handler for pin2, It fails saying error -22 ( resource not available).
> I also don't know, what I can do even if I get to install the handler
> for PIO.
>
> Can someone guide me in this? Or atleast point to me some driver codes
> which handles such situations.
>
> I would really appreciate some help on this, as I have hit a roadblock
> here.

Have u looked at driver/input/keyboard, which should
provide some examples

> Please, let me know if you need more info on this.
>
> Thanks
> Biswa
>
> Branch of Wipro Limited,
> Place of Commercial Register of the Branch: Kiel
> Commercial Registration Number of the branch : HRB 7178 KI
> VAT registration number - German Tax No:19/294/30609
> Company name as Registered in Commercial Register : Wipro Limited (India) 
> Zweigniederlassung Deutschland
> Legal form of the Company : Domestic Branch of the Foreign Limited 
> liability Company.
> Company seat: Registered office at Doddakannelli, Sarjapur Road, 
> Bangalore, India : 560 035.
> Tel : 91-80-28440011, Fax : 91-80-28440051, website: www.wipro.com
> Managing Director : Mr Azim H Premji
>
>
>
> Zweigniederlassung der Wipro Limited
> Registergericht: Kiel
> Handelsregisternummer: HRB 7178 KI
> Steuernummer: 19/294/30609
> Firma laut Handelsregistereintrag: Wipro Limited (India) 
> Zweigniederlassung Deutschland
> Rechtsform der Gesellschaft: inl?ndische Zweigniederlassung einer 
> Aktiengesellschaft ausl?ndischen Rechts
> Sitz der Gesellschaft: Doddakannelli, Sarjapur Road, Bangalore, Indien 560 
> 035
> Tel. +91 80 28440011, Fax: +91 80 28440051, website: www.wipro.com
> Vorstandsvorsitzender: Azim H Premji
>
> The information contained in this electronic message and any attachments 
> to this message are intended for the exclusive use of the addressee(s) and 
> may contain proprietary, confidential or privileged information. If you 
> are not the intended recipient, you should not disseminate, distribute or 
> copy this e-mail. Please notify the sender immediately and destroy all 
> copies of this message and any attachments. </p>
>
> WARNING: Computer viruses can be transmitted via email. The recipient 
> should check this email and any attachments for the presence of viruses. 
> The company accepts no liability for any damage caused by any virus 
> transmitted by this email.
>
> www.wipro.com
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 

      parent reply	other threads:[~2010-02-23  6:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-22  8:36 Interrupt registering for PIO problem in ATMEL chips biswa.nayak at wipro.com
2010-02-22 20:26 ` Andrew Victor
2010-02-23  6:07 ` Hemanth V [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='038201cab44e$744f18f0$LocalHost@wipblrx0099946' \
    --to=hemanthv@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).