public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <sergei.gavrikov@gmail.com>
To: Christophe Coutand <ccoutand@stmi.com>
Cc: John Dallaway <john@dallaway.org.uk>,
	    eCos Patches <ecos-patches@ecos.sourceware.org>
Subject: RE: AT91 ADC support
Date: Thu, 27 May 2010 21:44:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.00.1005280035230.32066@sg-laptop> (raw)
In-Reply-To: <D6050C555CC56940A7AF32652283027602EAC91D@mail2.STMIRV01.COM>

On Thu, 27 May 2010, Christophe Coutand wrote:
> Hi Sergei,
>
> I have attached an updated var_io.h that includes ADC support for the
> AT91M55800A. I took the opportunity to define the number of channels
> per ADC in this file. It can be overwritten per platform basis since
> AT91SAM7L64 for instance has 4 channels only.

Hi Christophe,

Thanks for your time. I will take a look this morning.

> The definition of AT91_MAX_ADC_CHAN must be removed from
> devs/adc/arm/at91/current/src/adc_at91.c. I have not joined any patch
> for it since I will hopefully submit a new driver that support both
> ADCs.

Excellent! I did want to ask you about and it seems fetchamil is
retrieving it just now.

Sergei

> Christophe
>
> -----Original Message-----
> From: Sergei Gavrikov [mailto:sergei.gavrikov@gmail.com]
> Sent: 27. mai 2010 18:38
> To: Christophe Coutand
> Cc: John Dallaway; eCos Patches
> Subject: RE: AT91 ADC support
>
> On Thu, 27 May 2010, Christophe Coutand wrote:
>> Hi John,
>>
>> It's pretty easy to add the required definition for the AT91M55800A
>> targets. The only thing I see now is that this device contains 2 ADCs
>> which I have not considered before. I guess there are several ways out
>> of this:
>>
>> 1- Update the actual AT91 ADC driver to make full use of the
>> AT91M55800A targets. I guess should be done by loading a second ADC
>> instance (one for each ADC. I have not been through all the thinking
>> here...).
>>
>> 2- or limit the AT91 driver to use only ADC0 of the AT91M55800A target
>> for the time being.
>>
>> 3- or exclude AT91M55800A targets for the time being.
>>
>> IMO #1 is best but I cannot give any time frame for completing it.
>
> Hi Christophe, John
>
> I would prefer #1, if you want I can add that in AT91/ADC CDL/sources.
> One thing: I won't be able to test it on real hardware (only build
> process can be tested me).
>
> John, what do you think: Can we add the second ADC instance without a
> testing?
>
>> One additional weakness of the driver is that it is made for up to 8
>> channels. It is defined nowhere what the targeted CPU can actually
>> handle, this is left to the user when configuring eCos. I believe this
>> is pretty fine since the user must anyway know which signal he wants
> to
>> sample but you might disagree on that one.
>
> I know only one target which would use all 8 channels :-) That's eCos
> i386/Linux synthetic target.
>
> Thanks for collaboration.
>
> Sergei
>
>> Regards,
>> Christophe
>

  reply	other threads:[~2010-05-27 21:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-22  9:40 Christophe Coutand
2010-05-27 13:42 ` John Dallaway
2010-05-27 13:52   ` Sergei Gavrikov
2010-05-27 14:16     ` Christophe Coutand
2010-05-27 14:47       ` John Dallaway
2010-05-27 15:44         ` Christophe Coutand
2010-05-27 16:08           ` John Dallaway
2010-05-27 16:37             ` Kurt Siedenburg
2010-05-27 16:37           ` Sergei Gavrikov
2010-05-27 19:49             ` Christophe Coutand
2010-05-27 21:44               ` Sergei Gavrikov [this message]
2010-05-29 10:24                 ` Sergei Gavrikov
2010-05-29 13:10                   ` John Dallaway
2010-05-30 10:34                     ` Sergei Gavrikov
2010-05-30 12:40                       ` Christophe Coutand
2010-05-30 13:46                         ` Sergei Gavrikov
2011-02-22 11:33                   ` John Dallaway
2010-05-27 21:37             ` Christophe Coutand

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=alpine.DEB.2.00.1005280035230.32066@sg-laptop \
    --to=sergei.gavrikov@gmail.com \
    --cc=ccoutand@stmi.com \
    --cc=ecos-patches@ecos.sourceware.org \
    --cc=john@dallaway.org.uk \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).