]> git.sur5r.net Git - u-boot/commitdiff
mx7: Fix speed grade entry
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 22 Feb 2017 15:43:25 +0000 (12:43 -0300)
committerStefano Babic <sbabic@denx.de>
Sun, 19 Mar 2017 16:28:55 +0000 (17:28 +0100)
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>
arch/arm/cpu/armv7/mx7/soc.c

index dead1d3a96f9fbe0b9337452c60312258356568b..b9fb97bdb6a3c838e56f09af6755481da819a979 100644 (file)
@@ -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;
        }