aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/battery
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-06-04 01:33:22 +0200
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-06-04 12:54:26 +0200
commit55bb2048feb59f2190f704c2a4df81b557b55c7a (patch)
treecbb680a60770fb762e5b27c502ad71c2366bf604 /include/linux/battery
parent3d8b293a4f5042cd9fdc4009a40f6483371cd489 (diff)
downloadkernel_samsung_smdk4412-55bb2048feb59f2190f704c2a4df81b557b55c7a.zip
kernel_samsung_smdk4412-55bb2048feb59f2190f704c2a4df81b557b55c7a.tar.gz
kernel_samsung_smdk4412-55bb2048feb59f2190f704c2a4df81b557b55c7a.tar.bz2
smdk4412: bulk update from i9300 update 9
Change-Id: Icd3e7b601f3f4c8b3dcf053fed5819fb7caf5296
Diffstat (limited to 'include/linux/battery')
-rw-r--r--include/linux/battery/samsung_battery.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/battery/samsung_battery.h b/include/linux/battery/samsung_battery.h
index f58c839..2293fce 100644
--- a/include/linux/battery/samsung_battery.h
+++ b/include/linux/battery/samsung_battery.h
@@ -115,6 +115,7 @@ struct battery_info {
unsigned int cable_type;
unsigned int cable_sub_type;
unsigned int cable_pwr_type;
+ int online_prop;
/* For SAMSUNG charge spec */
unsigned int vf_state;
@@ -205,6 +206,12 @@ extern bool is_jig_attached;
#undef EXTENDED_ONLINE_TYPE
#endif
+enum online_property {
+ ONLINE_PROP_UNKNOWN = 0,
+ ONLINE_PROP_AC,
+ ONLINE_PROP_USB,
+};
+
/* use 2step charge termination */
#if defined(CONFIG_MACH_T0)
#define USE_2STEP_TERM
@@ -269,7 +276,11 @@ enum status_full_type {
/* WORKAROUND: define audio dock current */
#define DOCK_TYPE_AUDIO_CURR 1000
+#if defined(CONFIG_MACH_T0)
#define DOCK_TYPE_SMART_NOTG_CURR 1700
+#else
+#define DOCK_TYPE_SMART_NOTG_CURR 1000
+#endif
#define DOCK_TYPE_SMART_OTG_CURR 1000
#define DOCK_TYPE_LOW_CURR 475