]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm: tegra: tn8 quick charge 2 board support
authorPhilip Rakity <prakity@nvidia.com>
Wed, 15 Jan 2014 11:22:11 +0000 (11:22 +0000)
committerJuha Tukkinen <jtukkinen@nvidia.com>
Thu, 13 Feb 2014 11:23:38 +0000 (03:23 -0800)
Add changes to board file to support QC2 TN8
quick charge capable is only set for E1936 PMU

add note describing how to configure current
and voltage in the board file.

Bug 1424733

Change-Id: Ibf40d3be8f81a3228c6446475ec44963c986ddc0
Reviewed-on: http://git-master/r/355973
(cherry picked from commit 9524afb32129617f5320504090bad6a69c95d884)
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/363213
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Tested-by: Juha Tukkinen <jtukkinen@nvidia.com>
arch/arm/mach-tegra/board-ardbeg.c

index 507e00c6812f77c68ec619483fe393a861bad0b3..4a99cfea1670c14748aaed9f83f0a0765dc9a05c 100644 (file)
@@ -656,7 +656,26 @@ static void ardbeg_usb_init(void)
                tegra_ehci1_utmi_pdata.id_det_type = TEGRA_USB_PMU_ID;
                tegra_ehci1_utmi_pdata.id_extcon_dev_name = "as3722-extcon";
        } else {
-               /* Ardbeg */
+               /* Ardbeg and TN8 */
+
+               /*
+                * TN8 supports vbus changing and it can handle
+                * vbus voltages larger then 5V.  Enable this.
+                */
+               if (board_info.board_id == BOARD_P1761 ||
+                       board_info.board_id == BOARD_E1784) {
+                       /*
+                        * Set the maximum voltage that can be supplied
+                        * over USB vbus that the board supports if we use
+                        * a quick charge 2 wall charger.
+                        */
+                       tegra_udc_pdata.qc2_voltage = TEGRA_USB_QC2_9V;
+                       /*
+                        * TN8 board design can handle 3A charging
+                        */
+                       tegra_udc_pdata.u_data.dev.qc2_current_limit_ma = 3000;
+               }
+
                switch (bi.board_id) {
                case BOARD_E1733:
                        /* Host cable is detected through PMU Interrupt */