diff options
author | Syed Rafiuddin <srafiuddin@nvidia.com> | 2012-04-13 15:39:05 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-04-18 18:30:22 -0700 |
commit | 1936560a16edfe970ae286c2a7f60c445e36086a (patch) | |
tree | ff173a0ab953bff067a9ef22a9e596f41c85e068 /include | |
parent | fd5af65bc99c11f65fd400f08d67e9d2470c9d9e (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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/smb349-charger.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/smb349-charger.h b/include/linux/smb349-charger.h index 116f036baf19..6dbec61034ed 100644 --- a/include/linux/smb349-charger.h +++ b/include/linux/smb349-charger.h @@ -24,6 +24,17 @@ #define __LINUX_SMB349_CHARGER_H #include <linux/regulator/machine.h> +#include <linux/platform_device.h> +#include <linux/regulator/driver.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 +58,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); |