diff options
author | Arun Murthy <arun.murthy@stericsson.com> | 2010-05-13 09:37:51 +0530 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2010-09-02 22:45:19 -0600 |
commit | 854f513da7dbd113dc4913a8ba42dc8c6453f9e6 (patch) | |
tree | 61b1f82116f42420422af7a8e6804b082a363305 /arch/arm/mach-ux500/include | |
parent | d6473bc3892208dc4e41e29cb19faed1aa5229f9 (diff) |
ER:260350 CorePl: Battery type is not detected.
Battery detection supported for the below batteries
Nokia BL-5F Li-Ion
Nokia BP-5M Li-Poly
Change-Id: I08b567d572c17fa2046419b1f2d1fc1d13749038
Signed-off-by: Arun Murthy <arun.murthy@stericsson.com>
Diffstat (limited to 'arch/arm/mach-ux500/include')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/ab8500_bm.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/include/mach/ab8500_bm.h b/arch/arm/mach-ux500/include/mach/ab8500_bm.h index d4ad1f05628..a303b465239 100644 --- a/arch/arm/mach-ux500/include/mach/ab8500_bm.h +++ b/arch/arm/mach-ux500/include/mach/ab8500_bm.h @@ -8,11 +8,16 @@ #ifndef _AB8500_BM_H #define _AB8500_BM_H -struct ab8500_bm_platform_data { +struct battery_type { int name; + int resis; +}; + +struct ab8500_bm_platform_data { int termination_vol; /* voltage in mV */ int op_cur_lvl; /* o/p current level in mA */ int ip_vol_lvl; /* i/p current level in mV */ + struct battery_type bat_type[]; }; /* Main charge i/p current */ @@ -123,7 +128,9 @@ struct ab8500_bm_platform_data { #define UNMASK_USB_CHARGER_NOT_OK_F 0x7F /* Battery resistance */ -#define NOKIA_BL_5F 0x04 +#define BATTERY_NOKIA_BL_5F 20 +#define BATTERY_NOKIA_BP_5M 63 +#define SUPPORTED_BATT 2 /* static constants */ #define STANDARD_HOST 0x04 |