MLK-12623-03 ARM: imx: Add cpu speed grading check for imx6ul
authorBai Ping <ping.bai@nxp.com>
Mon, 11 Apr 2016 02:56:40 +0000 (10:56 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:51:47 +0000 (14:51 -0500)
commitf7bbe1c8273b203cc162d3f552c71610e24262e1
tree8dd3612918f76ab2b97fc06477d0e3ba23e8f1d4
parent4d48eada2900113de5df5d622a81a8b9fa803922
MLK-12623-03 ARM: imx: Add cpu speed grading check for imx6ul

In the OCOTP fuse map, the speed grading[1:0] define the MAX
CPU speed the chip can run. The detailed definition is below:
2b'00: Reserved;
2b'01: 528000000Hz;
2b'10: 696000000Hz;
2b'11: Reserved;

We need to disable the illegal setpoints according to the fuse map.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
arch/arm/mach-imx/mach-imx6ul.c