diff options
author | Syed Rafiuddin <srafiuddin@nvidia.com> | 2012-04-13 15:39:05 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:08:58 -0700 |
commit | 6ef471ad3f00cd50604f1686846a5aa9b05eb423 (patch) | |
tree | 417aec78e6d7a4bdde8fc78ff8494073d216ff3e /include/linux/smb349-charger.h | |
parent | 59dec6f2e0412e453d6e6f18f0774bc15e042f54 (diff) |
power: smb349: addition of regulator interface
Addition of reglator interface to detect the usb cable
plug/unplug detection.
Bug 961166
Bug 966874
Change-Id: Ida297bc39df9aca8cffe60c29bc24f2d32819f56
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Reviewed-on: http://git-master/r/96440
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Rebase-Id: Rb7c1e4621b93b101e974d760613a6c2d60e9dd43
Diffstat (limited to 'include/linux/smb349-charger.h')
-rw-r--r-- | include/linux/smb349-charger.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/smb349-charger.h b/include/linux/smb349-charger.h index 116f036baf19..19e7aa6f5e73 100644 --- a/include/linux/smb349-charger.h +++ b/include/linux/smb349-charger.h @@ -24,6 +24,18 @@ #define __LINUX_SMB349_CHARGER_H #include <linux/regulator/machine.h> +#include <linux/platform_device.h> +#include <linux/regulator/driver.h> +#include <linux/usb/otg.h> + +struct smb349_charger_platform_data { + int regulator_id; + int max_charge_volt_mV; + int max_charge_current_mA; + int charging_term_current_mA; + int num_consumer_supplies; + struct regulator_consumer_supply *consumer_supplies; +}; enum charging_states { idle, @@ -47,6 +59,10 @@ struct smb349_charger { enum charging_states state; enum charger_type chrg_type; charging_callback_t charger_cb; + + struct regulator_dev *rdev; + struct regulator_desc reg_desc; + struct regulator_init_data reg_init_data; }; int smb349_battery_online(void); |