forked from len0rd/rockbox
imx233: fix lradc/adc for stmp3600 and stmp3700
The lradc architecture of the stmp3600 is rather different: only channels 6 and 7 have configurable source and we need to take care when allocating channels so that we can actually measure the right channel! Delegate die temperature sensing to the power block on stmp3600. Change-Id: I0860eb4ea98240facc3d4a19d61684eca5f630cc
This commit is contained in:
parent
239219ee70
commit
f4fdf1ffe2
5 changed files with 83 additions and 8 deletions
|
|
@ -31,7 +31,9 @@
|
|||
#define IMX233_ADC_BATTERY -1 /* Battery voltage (mV) */
|
||||
#define IMX233_ADC_DIE_TEMP -2 /* Die temperature (°C) */
|
||||
#define IMX233_ADC_VDDIO -3 /* VddIO voltage (mV) */
|
||||
#if IMX233_SUBTARGET >= 3700
|
||||
#define IMX233_ADC_VDD5V -4 /* Vdd5V voltage (mV) */
|
||||
#endif
|
||||
#ifdef IMX233_BATT_TEMP_SENSOR
|
||||
#define IMX233_ADC_BATT_TEMP -5 /* Battery temperature (°C) */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue