cpu: imx8: fix type and rate detection
authorAnatolij Gustschin <agust@denx.de>
Sat, 16 May 2020 20:34:19 +0000 (22:34 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 22 May 2020 11:26:33 +0000 (13:26 +0200)
commit69365540cf607d5212ebd014869e4f55c1de8044
tree9c02a166d1be4b6adf64eef68c5b3ba7d8b6819d
parent2fa581ba910368d0f7f995fb906d6c5e4218b594
cpu: imx8: fix type and rate detection

CPU type and rate detection is broken, for A35 cpu we get A53:
...
sc_pm_get_clock_rate: resource:0 clk:2: res:3
Could not read CPU frequency: -22
CPU:   NXP i.MX8QXP RevB A53 at 0 MHz at 47C

Fixes: 55bc96f3b675 ("cpu: imx8: fix get core name and rate")
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/cpu/imx8_cpu.c