diff options
author | Vitaly Andrianov <vitalya@ti.com> | 2015-06-15 12:54:15 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-06-19 20:46:46 (GMT) |
commit | 437a7293a7168b6a2d356fe5d1955091afa2074f (patch) | |
tree | 4f74ca028c2858a91f3a7ed991c33c6fab9ebc3e /arch/arm/mach-keystone/clock.c | |
parent | c6265f7f3410b5e5763181cdd123a3f6fcd9fd58 (diff) | |
download | u-boot-fsl-qoriq-437a7293a7168b6a2d356fe5d1955091afa2074f.tar.xz |
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>
Diffstat (limited to 'arch/arm/mach-keystone/clock.c')
-rw-r--r-- | arch/arm/mach-keystone/clock.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-keystone/clock.c b/arch/arm/mach-keystone/clock.c index d13fbc1..625907f 100644 --- a/arch/arm/mach-keystone/clock.c +++ b/arch/arm/mach-keystone/clock.c @@ -246,18 +246,18 @@ static inline u32 read_efuse_bootrom(void) } #endif -inline int get_max_dev_speed(void) -{ - return get_max_speed(read_efuse_bootrom() & 0xffff, dev_speeds); -} - #ifndef CONFIG_SOC_K2E inline int get_max_arm_speed(void) { - return get_max_speed((read_efuse_bootrom() >> 16) & 0xffff, arm_speeds); + return get_max_speed(read_efuse_bootrom() & 0xffff, arm_speeds); } #endif +inline int get_max_dev_speed(void) +{ + return get_max_speed((read_efuse_bootrom() >> 16) & 0xffff, dev_speeds); +} + void pass_pll_pa_clk_enable(void) { u32 reg; |