linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC] IIO LRADC for mach-mxs
@ 2012-01-24 13:08 Marek Vasut
  2012-01-24 13:14 ` Wolfram Sang
  0 siblings, 1 reply; 10+ messages in thread
From: Marek Vasut @ 2012-01-24 13:08 UTC (permalink / raw)
  To: linux-arm-kernel

Hi guys,

I've been playing with a custom mxs board recently and I'd like to tinker with 
ADC. Well, apparently there was some effort but it died silently.

Now, there are two approaches how to go about the MXS IIO LRADC. Firstly though, 
here are some hw details:

1) The ADC has 16 channels in total, some dedicated to particular function
2) The ADC can sample only up to 8 channels at the same time
3) The ADC delay triggers can trigger only up to 4 kinds of sampling for those 
up to 8 selected channel

So how should we go about this:

A) Implement functions, to configure and select a channel at probe-time and then 
never allow (at runtime) different channel to be selected.

+ Channel configuration is static, passed via plat_data
+ The channels don't need to be reconfigured => when data are demanded, the 
channel doesn't need to be reconfigured (if it's not configured in one of those 
8 options) and the user doesn't need to wait for data.
- Only 8 channels can be used

B) Allow channel to be configured on-demand -- when it's value is requested, it 
is configured (if it's not already) for the particular function.

+ All 16 channels can be used
- It's clunky and fragile to breakage
- It's hard to implement good channel replacement algo (replacement as on the 
delay triggers and on those 8 slots)

Which way do you consider better ?

M

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-01-28  9:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-24 13:08 [RFC] IIO LRADC for mach-mxs Marek Vasut
2012-01-24 13:14 ` Wolfram Sang
2012-01-24 14:20   ` J.I. Cameron
2012-01-24 14:39     ` J.I. Cameron
2012-01-26  0:49       ` Marek Vasut
2012-01-26  6:49         ` Jonathan Cameron
2012-01-26 10:30           ` Marek Vasut
2012-01-26 21:29             ` Jonathan Cameron
2012-01-27 21:44               ` Marek Vasut
2012-01-28  9:37                 ` Jonathan Cameron

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).