diff mbox

[U-Boot] keystone2: use correct EFUSE_BOOTROM fileds to configure speed

Message ID 1434372855-1422-1-git-send-email-vitalya@ti.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Vitaly Andrianov June 15, 2015, 12:54 p.m. UTC
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>
---
 arch/arm/mach-keystone/clock.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Tom Rini June 15, 2015, 2:31 p.m. UTC | #1
On Mon, Jun 15, 2015 at 08:54:15AM -0400, Vitaly Andrianov wrote:

> 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>
Tom Rini June 19, 2015, 8:24 p.m. UTC | #2
On Mon, Jun 15, 2015 at 08:54:15AM -0400, Vitaly Andrianov wrote:

> 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>

Applied to u-boot/master, thanks!
Vitaly Andrianov June 23, 2015, 11:33 a.m. UTC | #3
On 06/19/2015 04:24 PM, Tom Rini wrote:
> On Mon, Jun 15, 2015 at 08:54:15AM -0400, Vitaly Andrianov wrote:
>
>> 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>
>
> Applied to u-boot/master, thanks!
>
Tom, Thanks!!!

-Vitaly
diff mbox

Patch

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;