[PATCH v2] cmd: adc: Add support for storing ADC result in env variable

Patrick DELAUNAY patrick.delaunay at foss.st.com
Fri Apr 15 11:05:54 CEST 2022


Hi Marek,

On 4/14/22 18:52, Marek Vasut wrote:
> Add the ability to save ADC conversion result in an environment
> variable. This is useful for further arbitrary processing by the
> U-Boot scripts.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Fabrice Gasnier <fabrice.gasnier at foss.st.com>
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
> V2: - Fix up commit message
>      - Call adc_raw_to_uV() only once
> ---
>   cmd/adc.c | 18 ++++++++++++++----
>   1 file changed, 14 insertions(+), 4 deletions(-)
>


Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Thanks
Patrick




More information about the U-Boot mailing list