imx: cpu: add cpu speed/grade for i.MX8M
authorPeng Fan <peng.fan@nxp.com>
Wed, 10 Jan 2018 05:20:30 +0000 (13:20 +0800)
committerStefano Babic <sbabic@denx.de>
Sun, 4 Feb 2018 11:00:58 +0000 (12:00 +0100)
commite56d9d79e587e945f219e5a98e5ab33680546215
tree344abe83c740ee6b0bb9ec821766eb48c4cac44b
parent423e84bc728b4c73bfbdefacb011be59a83797e0
imx: cpu: add cpu speed/grade for i.MX8M

Use more general enum types for speed grade.
Refine get_cpu_speed_grade_hz to support i.MX8M.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/cpu.c