diff options
author | Robert Marko <robert.marko@sartura.hr> | 2020-10-28 15:56:26 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-12-01 22:12:28 +0300 |
commit | a282ada1987ca85826e6f47bb6e3c48a17e11098 (patch) | |
tree | 7da0bb72c7c9060ad5051c707fc6c62059cf5bf4 /arch | |
parent | 20476b51aa4d77c774f14671a185b5ac94f86c49 (diff) | |
download | u-boot-a282ada1987ca85826e6f47bb6e3c48a17e11098.tar.xz |
IPQ40xx: clk: add USB clock handling
USB clocks were completely forgotten as driver would always return 0 even if clock ID was unknown.
This behaviour changed with "IPQ40xx: clk: dont always return 0" and this will now causes the USB-s to fail probing as clock enable will return -EINVAL.
So to fix that lets add all of the USB clocks to the driver.
Fixes: 430e1dcf ("IPQ40xx: Add USB nodes")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-ipq40xx/clock-ipq4019.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-ipq40xx/clock-ipq4019.c b/arch/arm/mach-ipq40xx/clock-ipq4019.c index 7308563ad1..a3f872947d 100644 --- a/arch/arm/mach-ipq40xx/clock-ipq4019.c +++ b/arch/arm/mach-ipq40xx/clock-ipq4019.c @@ -55,6 +55,14 @@ static int msm_enable(struct clk *clk) case GCC_PRNG_AHB_CLK: /*PRNG*/ /* This clock is already initialized by SBL1 */ return 0; + case GCC_USB3_MASTER_CLK: + case GCC_USB3_SLEEP_CLK: + case GCC_USB3_MOCK_UTMI_CLK: + case GCC_USB2_MASTER_CLK: + case GCC_USB2_SLEEP_CLK: + case GCC_USB2_MOCK_UTMI_CLK: + /* These clocks is already initialized by SBL1 */ + return 0; default: return -EINVAL; } |