Commit 437a7293a7168b6a2d356fe5d1955091afa2074f
Committed by
Tom Rini
1 parent
c6265f7f34
Exists in
v2017.01-smarct4x
and in
34 other branches
keystone2: use correct EFUSE_BOOTROM fileds to configure speed
The get_max_arm_speed() and get_max_dev_speed() used wrong register fields to get the maximum speeds. This commit fixes the bug. Signed-off-by: Vitaly Andrianov <vitalya@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Showing 1 changed file with 6 additions and 6 deletions Side-by-side Diff
arch/arm/mach-keystone/clock.c
... | ... | @@ -246,17 +246,17 @@ |
246 | 246 | } |
247 | 247 | #endif |
248 | 248 | |
249 | -inline int get_max_dev_speed(void) | |
250 | -{ | |
251 | - return get_max_speed(read_efuse_bootrom() & 0xffff, dev_speeds); | |
252 | -} | |
253 | - | |
254 | 249 | #ifndef CONFIG_SOC_K2E |
255 | 250 | inline int get_max_arm_speed(void) |
256 | 251 | { |
257 | - return get_max_speed((read_efuse_bootrom() >> 16) & 0xffff, arm_speeds); | |
252 | + return get_max_speed(read_efuse_bootrom() & 0xffff, arm_speeds); | |
258 | 253 | } |
259 | 254 | #endif |
255 | + | |
256 | +inline int get_max_dev_speed(void) | |
257 | +{ | |
258 | + return get_max_speed((read_efuse_bootrom() >> 16) & 0xffff, dev_speeds); | |
259 | +} | |
260 | 260 | |
261 | 261 | void pass_pll_pa_clk_enable(void) |
262 | 262 | { |