MLK-16725 imx8mq: clock: Set ARM core clock according to the CPU grade
authorYe Li <ye.li@nxp.com>
Mon, 30 Oct 2017 03:16:31 +0000 (22:16 -0500)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:28 +0000 (02:37 +0800)
commit6f59a8e23e1f1f7dc0a65f6b196049b115738599
tree61e8d3a43f477233295a655cf5e29c8795e0476c
parent889fef962ab4b86944735b8e7d993ed93bbc57ec
MLK-16725 imx8mq: clock: Set ARM core clock according to the CPU grade

According to the data sheet iMX8MXEC_Rev_E, the imx8mq has two CPU grades:
consumer and industrial, which has different maximum ARM CPU freq for nominal mode.

    consumer:    arm core clock @ 1Ghz
    industrial:  arm core clock @ 800Mhz.

So in u-boot we changed to check the CPU grade fuse and select the frequency for
ARM core clock.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
arch/arm/cpu/armv8/imx8m/clock.c