diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2015-08-13 10:55:32 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2015-09-02 15:29:14 +0200 |
commit | 2af896abf60ed93c57d72d62635daef8ca6124c2 (patch) | |
tree | b4b7804f160a0d9b3a6ed9c28a09fd724fd853da /arch/arm/cpu/arm1136 | |
parent | 49ea15d55fcbb3ee26a23cbfbda314bc17467ad8 (diff) | |
download | talos-obmc-uboot-2af896abf60ed93c57d72d62635daef8ca6124c2.tar.gz talos-obmc-uboot-2af896abf60ed93c57d72d62635daef8ca6124c2.zip |
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: Peng Fan <Peng.Fan@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/cpu/arm1136')
-rw-r--r-- | arch/arm/cpu/arm1136/mx31/generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/arm1136/mx31/generic.c b/arch/arm/cpu/arm1136/mx31/generic.c index 060d46b82c..fe966702fa 100644 --- a/arch/arm/cpu/arm1136/mx31/generic.c +++ b/arch/arm/cpu/arm1136/mx31/generic.c @@ -175,7 +175,7 @@ u32 get_cpu_rev(void) for (i = 0; i < ARRAY_SIZE(mx31_cpu_type); i++) 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; } |