usb: gadget: tegra: add NV charger detection
authorRakesh Bodla <rbodla@nvidia.com>
Wed, 23 Jan 2013 15:19:33 +0000 (20:19 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Mon, 28 Jan 2013 21:22:50 +0000 (13:22 -0800)
commitbb144cc9933df39cf88a68e256e93e1529922ffa
tree62bdb9fe1ea20f6d896e507aa0885ed75896b86c
parent22cfd76a4b6ab8340d7634c10100eb1c59258125
usb: gadget: tegra: add NV charger detection

Adding the support to detect NV charger and
set current limit to withdraw as 2.0amps.

Bug 1193528

Change-Id: I5ef6c553b33dfa45bfd9e07a9ba05ddf3c75e239
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Reviewed-on: http://git-master/r/192055
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
arch/arm/mach-tegra/include/mach/usb_phy.h
arch/arm/mach-tegra/tegra11x_usb_phy.c
arch/arm/mach-tegra/tegra_usb_phy.h
arch/arm/mach-tegra/usb_phy.c
drivers/usb/gadget/tegra_udc.c
drivers/usb/gadget/tegra_udc.h