aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorengstk <eng.stk@sapo.pt>2017-07-31 18:28:24 +0100
committerSemavi Ulusoy <doc.divxm@gmail.com>2023-05-25 01:48:28 +0300
commitf2357465a39723366faac4a9fb77489fd5c08739 (patch)
tree2e02a4474e18cc87673e9d0b7e864195dda8bd98 /include/linux
parentb870015c90676065016aaa65244a159f8e8c35dc (diff)
drivers: misc: power: implement usb2 fast charge modeHEADt13.0
echo 0 /sys/kernel/fast_charge/force_fast_charge (disable) echo 1 /sys/kernel/fast_charge/force_fast_charge (enable) Enables force charging up to 900mA in usb2 mode Signed-off-by: engstk <eng.stk@sapo.pt> Signed-off-by: AnierinB <anierin@evolution-x.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fastchg.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/fastchg.h b/include/linux/fastchg.h
new file mode 100644
index 000000000000..7ab4c91e0388
--- /dev/null
+++ b/include/linux/fastchg.h
@@ -0,0 +1,22 @@
+/*
+ * Author (legacy sysfs): Chad Froebel <chadfroebel@gmail.com>
+ *
+ * Port to lemonadep/kebab and powers supply hooks: engstk <eng.stk@sapo.pt>
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef _LINUX_FASTCHG_H
+#define _LINUX_FASTCHG_H
+
+extern int force_fast_charge;
+
+#endif