Go to the source code of this file.
|
enum | abx500_chargers { NO_CHG,
AC_CHG,
USB_CHG
} |
|
enum | abx500_chargalg_states {
STATE_HANDHELD_INIT,
STATE_HANDHELD,
STATE_CHG_NOT_OK_INIT,
STATE_CHG_NOT_OK,
STATE_HW_TEMP_PROTECT_INIT,
STATE_HW_TEMP_PROTECT,
STATE_NORMAL_INIT,
STATE_NORMAL,
STATE_WAIT_FOR_RECHARGE_INIT,
STATE_WAIT_FOR_RECHARGE,
STATE_MAINTENANCE_A_INIT,
STATE_MAINTENANCE_A,
STATE_MAINTENANCE_B_INIT,
STATE_MAINTENANCE_B,
STATE_TEMP_UNDEROVER_INIT,
STATE_TEMP_UNDEROVER,
STATE_TEMP_LOWHIGH_INIT,
STATE_TEMP_LOWHIGH,
STATE_SUSPENDED_INIT,
STATE_SUSPENDED,
STATE_OVV_PROTECT_INIT,
STATE_OVV_PROTECT,
STATE_SAFETY_TIMER_EXPIRED_INIT,
STATE_SAFETY_TIMER_EXPIRED,
STATE_BATT_REMOVED_INIT,
STATE_BATT_REMOVED,
STATE_WD_EXPIRED_INIT,
STATE_WD_EXPIRED
} |
|
enum | maxim_ret { MAXIM_RET_NOACTION,
MAXIM_RET_CHANGE,
MAXIM_RET_IBAT_TOO_HIGH
} |
|
#define abx500_chargalg_resume NULL |
#define abx500_chargalg_suspend NULL |
#define CHG_WD_INTERVAL (6 * HZ) |
#define to_abx500_chargalg_device_info |
( |
|
x | ) |
|
- Enumerator:
STATE_HANDHELD_INIT |
|
STATE_HANDHELD |
|
STATE_CHG_NOT_OK_INIT |
|
STATE_CHG_NOT_OK |
|
STATE_HW_TEMP_PROTECT_INIT |
|
STATE_HW_TEMP_PROTECT |
|
STATE_NORMAL_INIT |
|
STATE_NORMAL |
|
STATE_WAIT_FOR_RECHARGE_INIT |
|
STATE_WAIT_FOR_RECHARGE |
|
STATE_MAINTENANCE_A_INIT |
|
STATE_MAINTENANCE_A |
|
STATE_MAINTENANCE_B_INIT |
|
STATE_MAINTENANCE_B |
|
STATE_TEMP_UNDEROVER_INIT |
|
STATE_TEMP_UNDEROVER |
|
STATE_TEMP_LOWHIGH_INIT |
|
STATE_TEMP_LOWHIGH |
|
STATE_SUSPENDED_INIT |
|
STATE_SUSPENDED |
|
STATE_OVV_PROTECT_INIT |
|
STATE_OVV_PROTECT |
|
STATE_SAFETY_TIMER_EXPIRED_INIT |
|
STATE_SAFETY_TIMER_EXPIRED |
|
STATE_BATT_REMOVED_INIT |
|
STATE_BATT_REMOVED |
|
STATE_WD_EXPIRED_INIT |
|
STATE_WD_EXPIRED |
|
Definition at line 78 of file abx500_chargalg.c.
- Enumerator:
MAXIM_RET_NOACTION |
|
MAXIM_RET_CHANGE |
|
MAXIM_RET_IBAT_TOO_HIGH |
|
Definition at line 186 of file abx500_chargalg.c.
MODULE_ALIAS |
( |
"platform:abx500-chargalg" |
| ) |
|
MODULE_AUTHOR |
( |
"Johan |
Palsson, |
|
|
Karl Komierowski" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"abx500 battery charging algorithm" |
| ) |
|
module_exit |
( |
abx500_chargalg_exit |
| ) |
|
module_init |
( |
abx500_chargalg_init |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|