mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
imx233: rework adc battery temperature sensor handling
Change-Id: I770729d7246b0ad8bc6fc5d6e45861325f6b790c
This commit is contained in:
parent
bc4631055f
commit
25feb00a64
4 changed files with 17 additions and 11 deletions
|
|
@ -30,6 +30,4 @@
|
|||
#define ADC_BATT_TEMP 4
|
||||
#define ADC_CH2 5
|
||||
|
||||
#define IMX233_ADC_BATT_TEMP_SENSOR 0
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -37,12 +37,22 @@
|
|||
* - top off period: 30 min
|
||||
* - high die temperature: 71 °C
|
||||
* - low die temperature: 56 °C
|
||||
* - safe temperature current: 30 mA
|
||||
* - safe die temperature current: 30 mA
|
||||
* - battery temperature channel: 0
|
||||
* - high battery temperature: 1100
|
||||
* - low battery temperature: 220
|
||||
* - safe battery temperature current: 0 mA
|
||||
* - low DCDC battery voltage: 3.9 V
|
||||
*/
|
||||
|
||||
#define IMX233_CHARGE_CURRENT 200
|
||||
#define IMX233_STOP_CURRENT 30
|
||||
#define IMX233_TOPOFF_TIMEOUT (30 * 60 * HZ)
|
||||
#define IMX233_CHARGING_TIMEOUT (4 * 3600 * HZ)
|
||||
#define IMX233_DIE_TEMP_HIGH 71
|
||||
#define IMX233_DIE_TEMP_LOW 56
|
||||
#define IMX233_BATT_TEMP_SENSOR 0
|
||||
#define IMX233_BATT_TEMP_HIGH 1100
|
||||
#define IMX233_BATT_TEMP_LOW 220
|
||||
|
||||
#endif /* POWERMGMT_TARGET_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue