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:
7777406
)
i.MX7ULP: Correct the clock index
author
Bai Ping
<ping.bai@nxp.com>
Mon, 22 Jul 2019 01:24:45 +0000
(
01:24
+0000)
committer
Stefano Babic
<sbabic@denx.de>
Tue, 8 Oct 2019 14:35:16 +0000
(16:35 +0200)
On i.MX7ULP, value zero is reserved in SCG1 RCCR register,
so the val should be decreased by 1 to get the correct clock
source index.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/mx7ulp/scg.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-imx/mx7ulp/scg.c
b/arch/arm/mach-imx/mx7ulp/scg.c
index
b4f2ea8
..
85d726f
100644
(file)
--- a/
arch/arm/mach-imx/mx7ulp/scg.c
+++ b/
arch/arm/mach-imx/mx7ulp/scg.c
@@
-440,7
+440,7
@@
static u32 scg_sys_get_rate(enum scg_clk clk)
case SCG_SCS_SLOW_IRC:
case SCG_SCS_FAST_IRC:
case SCG_SCS_RTC_OSC:
- rate = scg_src_get_rate(scg_scs_array[val]);
+ rate = scg_src_get_rate(scg_scs_array[val
- 1
]);
break;
case 5:
rate = scg_apll_get_rate();