summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSyed Rafiuddin <srafiuddin@nvidia.com>2012-01-31 17:10:37 +0530
committerSimone Willett <swillett@nvidia.com>2012-02-09 12:52:28 -0800
commit385778bfee40e5925128ccd5186276c32ef252f2 (patch)
tree79caa59890e4eea4998daef129b5b48b898a7356 /include
parent180aca790eca8dfdce94e84f61b35dfabc00a6f4 (diff)
power: smb349: smb349 charger driver
Smb349 battery charger driver for kai platform. Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com> Reviewed-on: http://git-master/r/78211 (cherry picked from commit f059c9db2735a6e0088dd9cd61a623b13b5d717e) Change-Id: Ifa401713928d29bb4235353e50b66e632c7625ba Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com> Reviewed-on: http://git-master/r/79980 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/smb349-charger.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/include/linux/smb349-charger.h b/include/linux/smb349-charger.h
new file mode 100644
index 000000000000..7c48a7370b19
--- /dev/null
+++ b/include/linux/smb349-charger.h
@@ -0,0 +1,40 @@
+/*
+ * include/linux/smb349-charger.h
+ *
+ * Battery charger driver interface for Summit SMB349
+ *
+ * Copyright (C) 2012 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;
+ *
+ * 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_SMB349_CHARGER_H
+#define __LINUX_SMB349_CHARGER_H
+
+#include <linux/regulator/machine.h>
+
+struct smb349_charger {
+ struct i2c_client *client;
+ struct device *dev;
+};
+
+/*
+ * Register the callback function for the client.
+ */
+extern int smb349_battery_online(void);
+extern int smb349_charging_status(void);
+extern int smb349_charger_type(void);
+
+#endif /*__LINUX_SMB349_CHARGER_H */