Skip to content
Snippets Groups Projects
Commit 437a7293 authored by Vitaly Andrianov's avatar Vitaly Andrianov Committed by Tom Rini
Browse files

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: default avatarVitaly Andrianov <vitalya@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent c6265f7f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment