summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/arch-mx6
diff options
context:
space:
mode:
authorTim Harvey <tharvey@gateworks.com>2015-05-18 07:02:24 -0700
committerStefano Babic <sbabic@denx.de>2015-05-19 15:31:25 +0200
commit9b9449c3e2809994d260f4f783b98652e7b6353b (patch)
tree4c325f53688c044549865927e075de73bded12f4 /arch/arm/include/asm/arch-mx6
parentd43e0ab42d1ad853a51272050e2c0c452db48949 (diff)
downloadtalos-obmc-uboot-9b9449c3e2809994d260f4f783b98652e7b6353b.tar.gz
talos-obmc-uboot-9b9449c3e2809994d260f4f783b98652e7b6353b.zip
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>
Diffstat (limited to 'arch/arm/include/asm/arch-mx6')
-rw-r--r--arch/arm/include/asm/arch-mx6/sys_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h b/arch/arm/include/asm/arch-mx6/sys_proto.h
index 28ba84415f..a2cd0a9eff 100644
--- a/arch/arm/include/asm/arch-mx6/sys_proto.h
+++ b/arch/arm/include/asm/arch-mx6/sys_proto.h
@@ -16,6 +16,7 @@
u32 get_nr_cpus(void);
u32 get_cpu_rev(void);
+u32 get_cpu_speed_grade_hz(void);
/* returns MXC_CPU_ value */
#define cpu_type(rev) (((rev) >> 12)&0xff)
OpenPOWER on IntegriCloud