diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 21:08:25 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 21:08:25 -0400 |
| commit | 4b24ff71108164e047cf2c95990b77651163e315 (patch) | |
| tree | 4b478906379adf22ff259fc1f2cce0da796df415 /include/linux/platform_data | |
| parent | bca1a5c0eabe0f17081760c61e8d08e73dd6b6a6 (diff) | |
| parent | 4b1bf5871f7d59de6484cc887e205d6d2f1e6fbd (diff) | |
Merge tag 'for-v3.6' of git://git.infradead.org/battery-2.6
Pull battery updates from Anton Vorontsov:
"The tag contains just a few battery-related changes for v3.6. It's is
all pretty straightforward, except one thing.
One of our patches added thermal support for power supply class, but
thermal/ subsystem changed under our feet. We (well, Stephen, that
is) caught the issue and it was decided[1] that I'd just delay the
battery pull request, and then will fix it up by merging upstream back
into battery tree at the specific commit.
That's not all though: another[2] small fixup for thermal subsystem
was needed to get rid of a warning in power supply subsystem (the
warning was not drivers/power's "fault", the thermal registration
function just needed a proper const annotation, which is also done by
a small commit on top of the merge.
So, to sum this up:
- The 'master' branch of the battery tree was in the -next tree for
weeks, was never rebased, altered etc. It should be all OK;
- Although, for-v3.6 tag contains the 'master' branch + merge + the
warning fix.
[1] http://lkml.org/lkml/2012/6/19/23
[2] http://lkml.org/lkml/2012/6/18/28"
* tag 'for-v3.6' of git://git.infradead.org/battery-2.6: (23 commits)
thermal: Constify 'type' argument for the registration routine
olpc-battery: update CHARGE_FULL_DESIGN property for BYD LiFe batteries
olpc-battery: Add VOLTAGE_MAX_DESIGN property
charger-manager: Fix build break related to EXTCON
lp8727_charger: Move header file into platform_data directory
power_supply: Add min/max alert properties for CAPACITY, TEMP, TEMP_AMBIENT
bq27x00_battery: Add support for BQ27425 chip
charger-manager: Set current limit of regulator for over current protection
charger-manager: Use EXTCON Subsystem to detect charger cables for charging
test_power: Add VOLTAGE_NOW and BATTERY_TEMP properties
test_power: Add support for USB AC source
gpio-charger: Use cansleep version of gpio_set_value
bq27x00_battery: Add support for power average and health properties
sbs-battery: Don't trigger false supply_changed event
twl4030_charger: Allow charger to control the regulator that feeds it
twl4030_charger: Add backup-battery charging
twl4030_charger: Fix some typos
max17042_battery: Support CHARGE_COUNTER power supply attribute
smb347-charger: Add constant charge and current properties
power_supply: Add constant charge_current and charge_voltage properties
...
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/lp8727.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/include/linux/platform_data/lp8727.h b/include/linux/platform_data/lp8727.h new file mode 100644 index 000000000000..ea98c6133d32 --- /dev/null +++ b/include/linux/platform_data/lp8727.h | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | /* | ||
| 2 | * LP8727 Micro/Mini USB IC with integrated charger | ||
| 3 | * | ||
| 4 | * Copyright (C) 2011 Texas Instruments | ||
| 5 | * Copyright (C) 2011 National Semiconductor | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | */ | ||
| 11 | |||
| 12 | #ifndef _LP8727_H | ||
| 13 | #define _LP8727_H | ||
| 14 | |||
| 15 | enum lp8727_eoc_level { | ||
| 16 | EOC_5P, | ||
| 17 | EOC_10P, | ||
| 18 | EOC_16P, | ||
| 19 | EOC_20P, | ||
| 20 | EOC_25P, | ||
| 21 | EOC_33P, | ||
| 22 | EOC_50P, | ||
| 23 | }; | ||
| 24 | |||
| 25 | enum lp8727_ichg { | ||
| 26 | ICHG_90mA, | ||
| 27 | ICHG_100mA, | ||
| 28 | ICHG_400mA, | ||
| 29 | ICHG_450mA, | ||
| 30 | ICHG_500mA, | ||
| 31 | ICHG_600mA, | ||
| 32 | ICHG_700mA, | ||
| 33 | ICHG_800mA, | ||
| 34 | ICHG_900mA, | ||
| 35 | ICHG_1000mA, | ||
| 36 | }; | ||
| 37 | |||
| 38 | /** | ||
| 39 | * struct lp8727_chg_param | ||
| 40 | * @eoc_level : end of charge level setting | ||
| 41 | * @ichg : charging current | ||
| 42 | */ | ||
| 43 | struct lp8727_chg_param { | ||
| 44 | enum lp8727_eoc_level eoc_level; | ||
| 45 | enum lp8727_ichg ichg; | ||
| 46 | }; | ||
| 47 | |||
| 48 | /** | ||
| 49 | * struct lp8727_platform_data | ||
| 50 | * @get_batt_present : check battery status - exists or not | ||
| 51 | * @get_batt_level : get battery voltage (mV) | ||
| 52 | * @get_batt_capacity : get battery capacity (%) | ||
| 53 | * @get_batt_temp : get battery temperature | ||
| 54 | * @ac, @usb : charging parameters each charger type | ||
| 55 | */ | ||
| 56 | struct lp8727_platform_data { | ||
| 57 | u8 (*get_batt_present)(void); | ||
| 58 | u16 (*get_batt_level)(void); | ||
| 59 | u8 (*get_batt_capacity)(void); | ||
| 60 | u8 (*get_batt_temp)(void); | ||
| 61 | struct lp8727_chg_param ac; | ||
| 62 | struct lp8727_chg_param usb; | ||
| 63 | }; | ||
| 64 | |||
| 65 | #endif | ||
