Skip to content
Snippets Groups Projects
Commit 2af896ab authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

imx: mx31 use new formula for get_cpu_rev


Use new formula for get_cpu_rev, since we need to use this formula
to do runtime check for all i.MXes.

Signed-off-by: default avatarPeng Fan <Peng.Fan@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: default avatarStefano Babic <sbabic@denx.de>
parent 49ea15d5
No related branches found
No related tags found
No related merge requests found
...@@ -175,7 +175,7 @@ u32 get_cpu_rev(void) ...@@ -175,7 +175,7 @@ u32 get_cpu_rev(void)
for (i = 0; i < ARRAY_SIZE(mx31_cpu_type); i++) for (i = 0; i < ARRAY_SIZE(mx31_cpu_type); i++)
if (srev == mx31_cpu_type[i].srev) if (srev == mx31_cpu_type[i].srev)
return mx31_cpu_type[i].v; return mx31_cpu_type[i].v | (MXC_CPU_MX31 << 12);
return srev | 0x8000; return srev | 0x8000;
} }
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
#ifndef _SYS_PROTO_H_ #ifndef _SYS_PROTO_H_
#define _SYS_PROTO_H_ #define _SYS_PROTO_H_
#include "../arch-imx/cpu.h"
struct mxc_weimcs { struct mxc_weimcs {
u32 upper; u32 upper;
u32 lower; u32 lower;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment