xhci driver have not been completely implemented, so the controller
cannot recognize the USB 3.0 device when it is connected to xhci-hosted
port. This patch disable USB 3.0 port of xhci host, then super-speed
devices can be recognized as at least high-speed devices.
Change-Id: I6100f6c441993ae882db371d880a457cdcde4ae5
Reported-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
#define PHYBATCHG_UTMI_CLKSEL (0x1 << 2)
+
+#define LINK_PORT_HOST_U3_PORT_DISABLE (0x1 << 8)
+#define LINK_PORT_HOST_U2_PORT_DISABLE (0x1 << 7)
+
#define FSEL_CLKSEL_24M (0x5)
/* XHCI PHY register structure */
writel(0x0, &phy->phy_resume);
/*
+ * FIXME: If xhci becomes being able to fully support super-speed
+ * devices, this should be reverted.
+ *
+ * Disable USB 3.0 port and enable USB 2.0 port only
+ */
+ clrbits_le32(&phy->link_port, LINK_PORT_HOST_U2_PORT_DISABLE);
+ setbits_le32(&phy->link_port, LINK_PORT_HOST_U3_PORT_DISABLE);
+
+ /*
* Setting the Frame length Adj value[6:1] to default 0x20
* See xHCI 1.0 spec, 5.2.4
*/