mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
imx: mx6: correct get_cpu_speed_grade_hz for i.MX6DQP
Correct get_cpu_speed_grade_hz for i.MX6DQP, otherwise we will get wrong speed grade info i.MX6DQP. Signed-off-by: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
e4d79dcaa4
commit
04cb3c0b0e
1 changed files with 2 additions and 2 deletions
|
@ -138,14 +138,14 @@ u32 get_cpu_speed_grade_hz(void)
|
|||
switch (val) {
|
||||
/* Valid for IMX6DQ */
|
||||
case OCOTP_CFG3_SPEED_1P2GHZ:
|
||||
if (is_mx6dq())
|
||||
if (is_mx6dq() || is_mx6dqp())
|
||||
return 1200000000;
|
||||
/* Valid for IMX6SX/IMX6SDL/IMX6DQ */
|
||||
case OCOTP_CFG3_SPEED_1GHZ:
|
||||
return 996000000;
|
||||
/* Valid for IMX6DQ */
|
||||
case OCOTP_CFG3_SPEED_850MHZ:
|
||||
if (is_mx6dq())
|
||||
if (is_mx6dq() || is_mx6dqp())
|
||||
return 852000000;
|
||||
/* Valid for IMX6SX/IMX6SDL/IMX6DQ */
|
||||
case OCOTP_CFG3_SPEED_800MHZ:
|
||||
|
|
Loading…
Reference in a new issue