summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2016-05-12 13:19:17 +0200
committerJaehoon Chung <jh80.chung@samsung.com>2016-05-18 15:32:13 +0900
commit4aa197dcd7c7ec5aa0748af5bb31c4c51288f3f1 (patch)
treee171ecb5af0f809c86fdea73eafed3e54c4efd97
parent40bd0656a0e8c770ff08f89b8861f1261f4a90d3 (diff)
downloadu-boot-4aa197dcd7c7ec5aa0748af5bb31c4c51288f3f1.tar.gz
u-boot-4aa197dcd7c7ec5aa0748af5bb31c4c51288f3f1.tar.bz2
u-boot-4aa197dcd7c7ec5aa0748af5bb31c4c51288f3f1.zip
TPL: TM2: usb3: Configure usb3 drd phy clocks
Proper values have been dumped from Linux kernel. For initial TPL support it is sufficient to add them as hardcoded one. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
-rw-r--r--board/samsung/tm2/tm2.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/board/samsung/tm2/tm2.c b/board/samsung/tm2/tm2.c
index e2b6c8e9cd..a355fe33f0 100644
--- a/board/samsung/tm2/tm2.c
+++ b/board/samsung/tm2/tm2.c
@@ -126,7 +126,19 @@ int board_usb_init(int index, enum usb_init_type init)
return -ENODEV;
}
+#ifndef CONFIG_TPL_TM2
set_usbdrd_phy_ctrl(POWER_USB_DRD_PHY_CTRL_EN);
+#else
+ /*
+ * Below values are taken from similar driver
+ * running on Linux kernel
+ */
+ writel(0x0007770b, (void *)0x10030634);
+ writel(0x00000011, (void *)0x156e0208);
+ writel(0x01101001, (void *)0x156e0204);
+ writel(0x00000101, (void *)0x10030234);
+ writel(0x00000001, (void *)0x105c0704);
+#endif
exynos5_usb3_phy_init(phy);
return dwc3_uboot_init(&dwc3_device_data);