diff options
author | Chandler Zhang <chazhang@nvidia.com> | 2012-04-13 15:57:51 +0800 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-04-18 18:30:26 -0700 |
commit | 3207e1ab733970621c5df40145e9c048ee12e07e (patch) | |
tree | 6c820492e8a2b752b9ee0013a159c06fe0f5753c /arch/arm/mach-tegra | |
parent | 1936560a16edfe970ae286c2a7f60c445e36086a (diff) |
arm: tegra: kai: addition of charger regulator
Use SMB349 regulator instead of irq to controll USB1 VBUS
Bug 961166
Bug 966874
Change-Id: I68884444883277ef169f3eb066ea50d6d49b708d
Signed-off-by: Chandler Zhang <chazhang@nvidia.com>
Signed-off-by: Syed Rafiuddin <srafiuddin@nvidia.com>
Reviewed-on: http://git-master/r/96441
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/board-kai.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-kai.c b/arch/arm/mach-tegra/board-kai.c index 6bba90f4535f..fc35f4a86382 100644 --- a/arch/arm/mach-tegra/board-kai.c +++ b/arch/arm/mach-tegra/board-kai.c @@ -292,10 +292,21 @@ static struct i2c_board_info kai_eeprom_mac_add = { .platform_data = &eeprom_info, }; +static struct regulator_consumer_supply smb349_vbus_supply[] = { + REGULATOR_SUPPLY("usb_bat_chg", NULL), +}; + +static struct smb349_charger_platform_data smb349_charger_pdata = { + .max_charge_current_mA = 1000, + .charging_term_current_mA = 100, + .consumer_supplies = smb349_vbus_supply, + .num_consumer_supplies = ARRAY_SIZE(smb349_vbus_supply), +}; + static struct i2c_board_info kai_i2c4_smb349_board_info[] = { { I2C_BOARD_INFO("smb349", 0x1B), - .irq = MAX77663_GPIO_BASE + MAX77663_GPIO1, + .platform_data = &smb349_charger_pdata, }, }; |