usb: tegra: fix USB2 powerdown for Tegra30 and later
authorStefan Agner <stefan@agner.ch>
Sun, 2 Mar 2014 18:46:48 +0000 (19:46 +0100)
committerTom Warren <twarren@nvidia.com>
Thu, 17 Apr 2014 15:41:06 +0000 (08:41 -0700)
Clear the forced powerdown bit in the UTMIP_PLL_CFG2_0 register
which brings USB2 in UTMI mode to work. This was clearly missing
since the forced powerdown bit is set in reset by default for all
USB ports.

Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Tested-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/usb/host/ehci-tegra.c

index 0b42aa5b383ae7b6c7692a4edcaadc6adc4aa462..20e9297d9c44e30eb02fb82d38835636a831ad8f 100644 (file)
@@ -461,6 +461,9 @@ static int init_utmi_usb_controller(struct fdt_usb *config)
                if (config->periph_id == PERIPH_ID_USBD)
                        clrbits_le32(&clkrst->crc_utmip_pll_cfg2,
                                     UTMIP_FORCE_PD_SAMP_A_POWERDOWN);
+               if (config->periph_id == PERIPH_ID_USB2)
+                       clrbits_le32(&clkrst->crc_utmip_pll_cfg2,
+                                    UTMIP_FORCE_PD_SAMP_B_POWERDOWN);
                if (config->periph_id == PERIPH_ID_USB3)
                        clrbits_le32(&clkrst->crc_utmip_pll_cfg2,
                                     UTMIP_FORCE_PD_SAMP_C_POWERDOWN);