diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2014-02-05 18:33:12 +0530 |
---|---|---|
committer | Laxman Dewangan <ldewangan@nvidia.com> | 2014-02-11 22:00:47 -0800 |
commit | 97ac89362494defda398449708d971d1609bf300 (patch) | |
tree | b7f050cdcd269b2fa1f46094b351d1bfa802c3e4 /include/linux/power | |
parent | c4b84d35d022129816ff17a01555c14d01681d1c (diff) |
power: bq2419x: add support for thermal profiling configuration
BQ2419x support thermal charging based on JEITA. This is default
on HW and can not disable by SW.
Provide mechanims to add more thermal profiling based on platform
along with HW support to match the paltform specific requirements.
bug 1435980
Change-Id: I6b6bed8639924e698c953d965248c752d08ad46d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/363841
(cherry picked from commit cbc4d5e75a7a41af4dc0609c58a045e401ae9cde)
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I4400ca4cd557dddc3b2f9610d0fc0c10a05cd038
Reviewed-on: http://git-master/r/365861
Diffstat (limited to 'include/linux/power')
-rw-r--r-- | include/linux/power/bq2419x-charger.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/power/bq2419x-charger.h b/include/linux/power/bq2419x-charger.h index b55ccbcdc895..c4ea43139c17 100644 --- a/include/linux/power/bq2419x-charger.h +++ b/include/linux/power/bq2419x-charger.h @@ -51,13 +51,14 @@ #define BQ2419X_THERM_VCLAMP_MASK 0x1C #define BQ2419X_THERM_TREG_MASK 0x03 +#define BQ2419X_TIME_JEITA_ISET 0x01 + #define BQ2419X_CHG_VOLT_LIMIT_MASK 0xFC #define BQ24190_IC_VER 0x40 #define BQ24192_IC_VER 0x28 #define BQ24192i_IC_VER 0x18 -#define BQ2419X_CHARGE_CURRENT_MASK ~(0x03) #define BQ2419X_ENABLE_CHARGE_MASK 0x30 #define BQ2419X_ENABLE_VBUS 0x20 #define BQ2419X_ENABLE_CHARGE 0x10 @@ -144,6 +145,9 @@ struct bq2419x_charger_platform_data { bool disable_suspend_during_charging; bool enable_thermal_monitor; /* TRUE if FuelGauge provides temp */ int temp_polling_time_sec; + int n_temp_profile; + u32 *temp_range; + u32 *chg_current_limit; }; /* |