summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/mx7
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2017-02-22 15:43:25 (GMT)
committerStefano Babic <sbabic@denx.de>2017-03-19 16:28:55 (GMT)
commit31b8a9011b33fd3ea7bfeb37349ab8e64755646c (patch)
treedef5a973f24f959e741eeb07c185db644bb3556e /arch/arm/cpu/armv7/mx7
parentb3cab814232d3b5e165c09ffad4af5b71bde15f3 (diff)
downloadu-boot-31b8a9011b33fd3ea7bfeb37349ab8e64755646c.tar.xz
mx7: Fix speed grade entry
According to the MX7D fuse map the speed grade of the parts, which return '1' is 500MHz instead of 850MHz, so fix it accordingly. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'arch/arm/cpu/armv7/mx7')
-rw-r--r--arch/arm/cpu/armv7/mx7/soc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/cpu/armv7/mx7/soc.c b/arch/arm/cpu/armv7/mx7/soc.c
index dead1d3..b9fb97b 100644
--- a/arch/arm/cpu/armv7/mx7/soc.c
+++ b/arch/arm/cpu/armv7/mx7/soc.c
@@ -103,7 +103,7 @@ struct imx_sec_config_fuse_t const imx_sec_config_fuse = {
*/
#define OCOTP_TESTER3_SPEED_SHIFT 8
#define OCOTP_TESTER3_SPEED_800MHZ 0
-#define OCOTP_TESTER3_SPEED_850MHZ 1
+#define OCOTP_TESTER3_SPEED_500MHZ 1
#define OCOTP_TESTER3_SPEED_1GHZ 2
u32 get_cpu_speed_grade_hz(void)
@@ -121,8 +121,8 @@ u32 get_cpu_speed_grade_hz(void)
switch(val) {
case OCOTP_TESTER3_SPEED_800MHZ:
return 792000000;
- case OCOTP_TESTER3_SPEED_850MHZ:
- return 852000000;
+ case OCOTP_TESTER3_SPEED_500MHZ:
+ return 500000000;
case OCOTP_TESTER3_SPEED_1GHZ:
return 996000000;
}