imx8qm: fix cpu frequency reporting
authorMarcel Ziswiler <marcel@ziswiler.com>
Fri, 31 May 2019 16:00:18 +0000 (19:00 +0300)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jun 2019 08:42:48 +0000 (10:42 +0200)
commit1da39d3ce89cd5c43e22f0a18f969093b6f41450
treeee507dea6f9b73ce9ad9510f5084f5879600ec50
parent16f8b84917698ddc607a84daf36c473bda0676cf
imx8qm: fix cpu frequency reporting

CPU frequency reporting failed with the following error message being
printed:

sc_pm_get_clock_rate: resource:507 clk:2: res:3
Could not read CPU frequency: -22
CPU:   NXP i.MX8QM RevB A53 at 0 MHz

Fix this by differentiating between the A35 as found on the i.MX 8QXP
and the A53 as found on the i.MX 8QM SoCs.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Max Krummenacher <max.krummenacher@toradex.com>
arch/arm/mach-imx/imx8/cpu.c