[RFC 0/2] imx_adc command for barebox

Sascha Hauer s.hauer at pengutronix.de
Tue Dec 1 23:13:42 PST 2015


Hi Florian,

On Tue, Dec 01, 2015 at 04:26:22PM +0100, Florian Vallee wrote:
> 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.

You can register the values as device parameters using dev_add_param_int
and friends. That allows us to process the values from scripts or other
code.

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

I currently have no use for it, but I am willing to include it if you
clean it up. So maybe the question is more if you have interest ;)

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list