]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
imx: mx6: add get_cpu_speed_grade_hz func to return MHz speed grade from OTP
authorTim Harvey <tharvey@gateworks.com>
Mon, 18 May 2015 14:02:24 +0000 (07:02 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 13:03:55 +0000 (15:03 +0200)
commit4e46cd41a928ed076374a3deca38589f17788d07
tree9a3c8d1df71f57e0f219f16325e261a32b24a0ce
parent1b073eb8c46b091ec2041980d519258661b4281d
imx: mx6: add get_cpu_speed_grade_hz func to return MHz speed grade from OTP

The IMX6 has four different speed grades determined by eFUSE SPEED_GRADING
indicated by OCOTP_CFG3[17:16] which is at 0x440 in the Fusemap Description
Table. Return this frequency so that it can be used elsewhere.

Note that the IMX6SDLRM and the IMX6SXRM do not indicate this in the
their Fusemap Description Table however Freescale has confirmed that these
eFUSE bits match the description within the IMX6DQRM and that they will
be added to the next revision of the respective reference manuals.

These have been tested with IMX6 Quad/Solo/Dual-light 800Mhz and 1GHz grades.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
arch/arm/cpu/armv7/mx6/soc.c
arch/arm/include/asm/arch-mx6/sys_proto.h