summaryrefslogtreecommitdiff
path: root/include/linux/tps80031-charger.h
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2011-08-21 20:23:44 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:48:32 -0800
commit6a0a7949845f43929161081d811d84d27366bd4a (patch)
tree63d531015e59ef174316c538b6459f53519f8fb3 /include/linux/tps80031-charger.h
parent6d84ef18a8da2a7faddd41631bca401e1647fa1a (diff)
power: tps80031-charger: Add battery charger driver
Adding battery charger driver for tps80031. bug 841080 Original-Change-Id: Id5bd717f4784b9bb48b2c2cb0b1b16a8a85aa830 Reviewed-on: http://git-master/r/48361 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Rebase-Id: Rae0d4723273b65c6a30820a876c8a8499bb69cf3
Diffstat (limited to 'include/linux/tps80031-charger.h')
-rw-r--r--include/linux/tps80031-charger.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/include/linux/tps80031-charger.h b/include/linux/tps80031-charger.h
new file mode 100644
index 000000000000..6d2348d2788f
--- /dev/null
+++ b/include/linux/tps80031-charger.h
@@ -0,0 +1,43 @@
+/*
+ * include/linux/tps80031-charger.h
+ *
+ * Battery charger driver interface for TI TPS80031 PMIC
+ *
+ * Copyright (C) 2011 NVIDIA Corporation
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+#ifndef __LINUX_TPS80031_CHARGER_H
+#define __LINUX_TPS80031_CHARGER_H
+
+#include <linux/regulator/machine.h>
+
+struct tps80031_charger_platform_data {
+ int regulator_id;
+ int max_charge_volt_mV;
+ int max_charge_current_mA;
+ int charging_term_current_mA;
+ int refresh_time;
+ int irq_base;
+ int watch_time_sec;
+ struct regulator_consumer_supply *consumer_supplies;
+ int num_consumer_supplies;
+ int (*board_init)(void *board_data);
+ void *board_data;
+};
+
+#endif /*__LINUX_TPS80031_CHARGER_H */