arm: tegra124: PM375: update port config for xusb
Preetham Chandru R [Thu, 6 Mar 2014 13:45:46 +0000 (18:45 +0530)]
Bug 1466561

Signed-off-by: Preetham Chandru R <pchandru@nvidia.com>
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Change-Id: I950c55361e305f10944a2210a5b30a69dea52397
Reviewed-on: http://git-master/r/377877
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

arch/arm/mach-tegra/board-ardbeg.c

index a82405c..ff4b93a 100644 (file)
@@ -811,7 +811,6 @@ static void ardbeg_xusb_init(void)
                        board_info.board_id == BOARD_PM358 ||
                        board_info.board_id == BOARD_PM370 ||
                        board_info.board_id == BOARD_PM374 ||
-                       board_info.board_id == BOARD_PM375 ||
                        board_info.board_id == BOARD_PM377 ||
                        board_info.board_id == BOARD_PM363) {
                /* Laguna */
@@ -826,6 +825,13 @@ static void ardbeg_xusb_init(void)
                                TEGRA_XUSB_SS_P1 | TEGRA_XUSB_USB2_P2);
 
                /* FIXME Add for UTMIP2 when have odmdata assigend */
+       } else if (board_info.board_id == BOARD_PM375) {
+               if (!(usb_port_owner_info & UTMI1_PORT_OWNER_XUSB))
+                       xusb_pdata.portmap &= ~(TEGRA_XUSB_USB2_P0);
+               if (!(usb_port_owner_info & UTMI2_PORT_OWNER_XUSB))
+                       xusb_pdata.portmap &= ~(TEGRA_XUSB_USB2_P2 |
+                                               TEGRA_XUSB_SS_P0);
+               xusb_pdata.portmap &= ~(TEGRA_XUSB_SS_P1 | TEGRA_XUSB_USB2_P1);
        } else {
                /* Ardbeg */
                if (board_info.board_id == BOARD_E1781) {