From: Miguel Aguilar <miguel.aguilar@ridgerun.com>
To: "Nori, Sekhar" <nsekhar@ti.com>
Cc: "Narnakaje, Snehaprabha" <nsnehaprabha@ti.com>,
"davinci-linux-open-source@linux.davincidsp.com"
<davinci-linux-open-source@linux.davincidsp.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
"santiago.nunez@ridgerun.com" <santiago.nunez@ridgerun.com>,
"todd.fischer@ridgerun.com" <todd.fischer@ridgerun.com>,
"clark.becker@ridgerun.com" <clark.becker@ridgerun.com>
Subject: Re: [PATCH 1/3] Input: DaVinci Key Scan Driver
Date: Fri, 25 Sep 2009 08:21:28 -0600 [thread overview]
Message-ID: <4ABCD1E8.5000200@ridgerun.com> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB59301DDAB3271@dbde02.ent.ti.com>
Nori, Sekhar wrote:
> On Thu, Sep 24, 2009 at 22:23:22, miguel.aguilar@ridgerun.com wrote:
>> From: Miguel Aguilar <miguel.aguilar@ridgerun.com>
>>
>> Adds the driver for enabling key scan support for DaVinci platforms.
>>
>> DM365 is the only platform that uses this driver at the moment.
>>
>> Signed-off-by: Miguel Aguilar <miguel.aguilar@ridgerun.com>
>> ---
>
> [...]
>
>> +
>> +/* Initializing the kp Module */
>> +static void davinci_ks_initialize(struct davinci_ks *davinci_ks)
>> +{
>> + u32 strobe = davinci_ks->pdata->strobe;
>> + u32 interval = davinci_ks->pdata->interval;
>> +
>> + /* Enable all interrupts */
>> + davinci_ks_write(davinci_ks, DAVINCI_KEYSCAN_INT_ALL, DAVINCI_KEYSCAN_INTENA);
>> +
>> + /* Clear interrupts if any */
>> + davinci_ks_write(davinci_ks, DAVINCI_KEYSCAN_INT_ALL, DAVINCI_KEYSCAN_INTCLR);
>> +
>> + /* Setup the scan period = strobe + interval */
>> + davinci_ks_write(davinci_ks, strobe, DAVINCI_KEYSCAN_STRBWIDTH);
>> + davinci_ks_write(davinci_ks, interval, DAVINCI_KEYSCAN_INTERVAL);
>> + davinci_ks_write(davinci_ks, 0x01, DAVINCI_KEYSCAN_CONTTIME);
>> +
>> + /* Enable Keyscan module and enable */
>> + davinci_ks_write(davinci_ks, DAVINCI_KEYSCAN_AUTODET | DAVINCI_KEYSCAN_KEYEN,
>> + DAVINCI_KEYSCAN_KEYCTRL);
>
> We seem to be hardcoded to the 4x4 matrix type here.
> Some DM365 boards could use 5x3 matrix.
>
> Thanks,
> Sekhar
>
[MA] I will add a platform option for matrix type to choose 4x4 or 5x3 matrix.
What do think about this?
Thanks,
Miguel Aguilar
next prev parent reply other threads:[~2009-09-25 14:21 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-24 16:53 [PATCH 1/3] Input: DaVinci Key Scan Driver miguel.aguilar
2009-09-24 17:13 ` Miguel Aguilar
2009-09-25 4:01 ` Dmitry Torokhov
2009-09-25 14:19 ` Miguel Aguilar
2009-09-28 17:02 ` Dmitry Torokhov
2009-09-25 6:13 ` Nori, Sekhar
2009-09-25 14:21 ` Miguel Aguilar [this message]
2009-09-25 14:31 ` Nori, Sekhar
[not found] ` <B85A65D85D7EB246BE421B3FB0FBB59301DDAB36C3-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-09-25 14:39 ` Paulraj, Sandeep
[not found] ` <0554BEF07D437848AF01B9C9B5F0BC5D92C8EBC0-bGftbgMkZa+IQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-09-25 14:45 ` Miguel Aguilar
2009-09-28 17:02 ` Dmitry Torokhov
2009-09-28 17:06 ` Paulraj, Sandeep
2009-09-29 21:24 ` Kevin Hilman
2009-09-30 13:40 ` Miguel Aguilar
2009-10-05 17:54 ` Dmitry Torokhov
[not found] ` <20091005175428.GB18588-WlK9ik9hQGAhIp7JRqBPierSzoNAToWh@public.gmane.org>
2009-10-05 19:29 ` Miguel Aguilar
2009-09-28 17:14 ` Paulraj, Sandeep
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=4ABCD1E8.5000200@ridgerun.com \
--to=miguel.aguilar@ridgerun.com \
--cc=clark.becker@ridgerun.com \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=linux-input@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=nsnehaprabha@ti.com \
--cc=santiago.nunez@ridgerun.com \
--cc=todd.fischer@ridgerun.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.