lantiq: kernel 4.14: fix usb
[openwrt/staging/wigyori.git] / target / linux / lantiq / patches-4.14 / 0052-MIPS-lantiq-fix-usb-clocks.patch
1 From 11e84fdfad0331555ca889c4ac6a9d5f37ae83df Mon Sep 17 00:00:00 2001
2 From: Mathias Kresin <dev@kresin.me>
3 Date: Sat, 20 Jan 2018 14:38:40 +0100
4 Subject: [PATCH] MIPS: lantiq: fix danube usb clock
5
6 On danube the USB0 registers are at 1e101000 similar to all other lantiq
7 SoCs.
8
9 Fixes: dea54fbad332 ("phy: Add an USB PHY driver for the Lantiq SoCs using the RCU module")
10 Signed-off-by: Mathias Kresin <dev@kresin.me>
11 ---
12 arch/mips/lantiq/xway/sysctrl.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/arch/mips/lantiq/xway/sysctrl.c
16 +++ b/arch/mips/lantiq/xway/sysctrl.c
17 @@ -581,7 +581,7 @@ void __init ltq_soc_init(void)
18 } else {
19 clkdev_add_static(ltq_danube_cpu_hz(), ltq_danube_fpi_hz(),
20 ltq_danube_fpi_hz(), ltq_danube_pp32_hz());
21 - clkdev_add_pmu("1f203018.usb2-phy", "ctrl", 1, 0, PMU_USB0);
22 + clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0);
23 clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P);
24 clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO);
25 clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU);