projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3fab62
)
TPL: TM2: usb3: Configure usb3 drd phy clocks
author
Lukasz Majewski
<l.majewski@samsung.com>
Thu, 12 May 2016 11:19:17 +0000
(13:19 +0200)
committer
Jaehoon Chung
<jh80.chung@samsung.com>
Tue, 11 Apr 2017 09:58:13 +0000
(18:58 +0900)
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>
board/samsung/tm2/tm2.c
patch
|
blob
|
history
diff --git
a/board/samsung/tm2/tm2.c
b/board/samsung/tm2/tm2.c
index 69bbbea7019e551bbe4eeeb93c0f862ce2dd1f09..cd63f8886c2044fb6a0c36281ebe0dcda69675ec 100644
(file)
--- a/
board/samsung/tm2/tm2.c
+++ b/
board/samsung/tm2/tm2.c
@@
-128,7
+128,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);