Searched hist:bf1b2418 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iio/adc/ |
H A D | ingenic-adc.c | bf1b2418 Mon Jul 26 03:20:32 CDT 2021 Christophe Branchereau <cbranchereau@gmail.com> iio/adc: ingenic: add JZ4760B support to the sadc driver
The JZ4760B variant differs slightly from the JZ4760: it has a bit called VBAT_SEL in the CFG register.
In order to correctly sample the battery voltage on existing handhelds using this SOC, the bit must be cleared.
We leave the possibility to set the bit, by using the "ingenic,use-internal-divider" in the devicetree.
Signed-off-by: Christophe Branchereau <cbranchereau@gmail.com> Link: https://lore.kernel.org/r/20210726082033.351533-5-cbranchereau@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
|