]> git.ipfire.org Git - people/ms/u-boot.git/commit
usb: host: ehci: samsung: Move hcor initialization after usb phy setup
authorLukasz Majewski <l.majewski@samsung.com>
Thu, 10 Dec 2015 15:32:25 +0000 (16:32 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 17 Dec 2015 20:54:41 +0000 (21:54 +0100)
commit70cc443d5833b27dd4dd4a48a771778c39734f75
treec0c17f13a52fabfdccdb0988d3051ec87a4d9576
parent5d5716eebccaa9b9ab977b7d5a9fae2abb7a8829
usb: host: ehci: samsung: Move hcor initialization after usb phy setup

With the old order of initialization the hcor pointer has been setup to
the same address as Exynos EHCI base address (0x12110000 instead of
0x12110010).
Such behaviour was caused by reading value of 0 instead of 0x10 from EHCI
HCCPBASE register without doing proper clock initialization before.

To fix this problem hcor initialization has been moved after USB PHY setup.
Now ehci_readl(&ctx->hcd->cr_capbase) returns correct value.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/host/ehci-exynos.c