mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Florian Vallee <fvallee@eukrea.fr>
To: barebox@lists.infradead.org
Cc: Florian Vallee <fvallee@eukrea.fr>
Subject: [RFC 0/2] imx_adc command for barebox
Date: Tue,  1 Dec 2015 16:26:22 +0100	[thread overview]
Message-ID: <1448983584-14939-1-git-send-email-fvallee@eukrea.fr> (raw)

The two following patches import the out-of-tree imx_adc driver from Freescale
in barebox.

The original driver was interfaced with userspace through IOCTLs, this simple
port exposes a barebox command "imx_adc" which returns converted values in mV.
As such it's more a command since it doesn't register itself anywhere and is
accessed that way only.

There doesn't seem to be any ADC driver in barebox right now, Is there any
interest in cleaning this up for inclusion ?

Florian Vallee (2):
  drivers: imx_adc: import and adapt imx_adc from linux
  drivers: imx_adc: repurpose driver as pure ADC

 arch/arm/mach-imx/include/mach/imx25-regs.h |   1 +
 drivers/misc/Kconfig                        |   4 +
 drivers/misc/Makefile                       |   1 +
 drivers/misc/imx_adc.c                      | 248 ++++++++++++++++++++++++++++
 drivers/misc/imx_adc.h                      | 112 +++++++++++++
 drivers/misc/imx_adc_reg.h                  | 247 +++++++++++++++++++++++++++
 6 files changed, 613 insertions(+)
 create mode 100644 drivers/misc/imx_adc.c
 create mode 100644 drivers/misc/imx_adc.h
 create mode 100644 drivers/misc/imx_adc_reg.h

-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2015-12-01 15:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-01 15:26 Florian Vallee [this message]
2015-12-01 15:26 ` [RFC 1/2] drivers: imx_adc: import and adapt imx_adc from linux Florian Vallee
2015-12-01 15:26 ` [RFC 2/2] drivers: imx_adc: repurpose driver as pure ADC Florian Vallee
2015-12-02  7:13 ` [RFC 0/2] imx_adc command for barebox Sascha Hauer

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=1448983584-14939-1-git-send-email-fvallee@eukrea.fr \
    --to=fvallee@eukrea.fr \
    --cc=barebox@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