From: ben-linux@fluff.org (Ben Dooks)
To: linux-arm-kernel@lists.infradead.org
Subject: platform data for the s3c-adc or hardcoded delay?
Date: Thu, 24 Sep 2009 20:36:42 +0100 [thread overview]
Message-ID: <20090924193642.GH31920@trinity.fluff.org> (raw)
In-Reply-To: <2accc2ff0909230336m173f0b0fqc1e1c08be448b648@mail.gmail.com>
On Wed, Sep 23, 2009 at 05:36:33AM -0500, Nelson Castillo wrote:
> (Ben, sorry for sending 2 copies. I used the old list address... I'd
> better go to sleep now.).
>
>
> We had this for the touchscreen but it doesn't make sense now that the
> driver has been converted to use the s3c-adc API.
>
> const static struct s3c_ts_platdata gta02_ts_cfg = {
> ? ? ? .delay = 10000,
> ? ? ? .presc = 0xff, /* Slow as we can go. */
> };
>
> Without this delay the TS doesn't work for us:
>
> Now I see two options:
>
> 1) Hardcode the delay in plat-s3c24xx/adc.c (As it's done in [1]).
> 2) Submit patches adding s3c_adc_platdata.
The pre-scaler value is probably something we should be passing to the
ADC core driver via platform data, I think that the rate that the conversions
are run at is a property of the board itself and not just the client. This
is mostly due to (I think) the ADC drawing more power the faster it runs
and the board may have only been designed to supply a certain amount of
power to the ADC.
The delay value is probably something that the client structure should
contain and the ADC driver set the delay value when the client is first
selected to start a conversion.
> What do I do?
>
> I also would like to know if we rule out the possibility of
> delay/presc depending on the current s3c_adc_client.
>
> [1] http://lists.openmoko.org/pipermail/openmoko-kernel/2009-September/010550.html
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
--
--
Ben
Q: What's a light-year?
A: One-third less calories than a regular year.
prev parent reply other threads:[~2009-09-24 19:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2accc2ff0909230332y6bf565e0kc33a0ef8d8072451@mail.gmail.com>
2009-09-23 10:36 ` platform data for the s3c-adc or hardcoded delay? Nelson Castillo
2009-09-24 13:37 ` Arnaud Patard (Rtp)
2009-09-24 19:36 ` Ben Dooks [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=20090924193642.GH31920@trinity.fluff.org \
--to=ben-linux@fluff.org \
--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).