diff options
author | Robert Marko <robert.marko@sartura.hr> | 2020-09-10 16:00:00 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-09-18 16:20:47 -0400 |
commit | 5ae15415c12c330ef3cd5d8c13bdadf5afb3db7a (patch) | |
tree | b6e693ae3900ff7d71a42034367dc9e42164071d /arch/arm/mach-ipq40xx/clock-ipq4019.c | |
parent | ae52e75d23ce11f36b3eae758045da95a871f263 (diff) | |
download | u-boot-5ae15415c12c330ef3cd5d8c13bdadf5afb3db7a.tar.gz u-boot-5ae15415c12c330ef3cd5d8c13bdadf5afb3db7a.tar.xz u-boot-5ae15415c12c330ef3cd5d8c13bdadf5afb3db7a.zip |
IPQ40xx: clk: Use dt-bindings instead of hardcoding
Its common to use dt-bindings instead of hard-coding clocks or resets.
So lets use the imported Linux GCC bindings on IPQ40xx target.
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Diffstat (limited to 'arch/arm/mach-ipq40xx/clock-ipq4019.c')
-rw-r--r-- | arch/arm/mach-ipq40xx/clock-ipq4019.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-ipq40xx/clock-ipq4019.c b/arch/arm/mach-ipq40xx/clock-ipq4019.c index 7cf98a203c..83a688e625 100644 --- a/arch/arm/mach-ipq40xx/clock-ipq4019.c +++ b/arch/arm/mach-ipq40xx/clock-ipq4019.c @@ -13,6 +13,8 @@ #include <dm.h> #include <errno.h> +#include <dt-bindings/clock/qcom,ipq4019-gcc.h> + struct msm_clk_priv { phys_addr_t base; }; @@ -20,7 +22,7 @@ struct msm_clk_priv { ulong msm_set_rate(struct clk *clk, ulong rate) { switch (clk->id) { - case 26: /*UART1*/ + case GCC_BLSP1_UART1_APPS_CLK: /*UART1*/ /* This clock is already initialized by SBL1 */ return 0; break; |