summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-04-14 19:19:15 +0800
committerPeng Fan <Peng.Fan@freescale.com>2015-04-29 15:08:08 +0800
commitaebaef5a1bc2ca2ff0700e3b2d37375a6bf1f2e7 (patch)
tree27db4adf16e75932b0a75cb586a0fcd5f5e1b02b /arch/arm
parenteafc4b9843c1086533cbcdc62c20ff1f7ba78ad4 (diff)
downloadu-boot-imx-aebaef5a1bc2ca2ff0700e3b2d37375a6bf1f2e7.zip
u-boot-imx-aebaef5a1bc2ca2ff0700e3b2d37375a6bf1f2e7.tar.gz
u-boot-imx-aebaef5a1bc2ca2ff0700e3b2d37375a6bf1f2e7.tar.bz2
MLK-10774-44 imx:mx6 fix is_soc_rev
is_soc_rev should be casted to signed int, otherwise may incur errors when detecting cpu types. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/include/asm/arch-mx6/sys_proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h b/arch/arm/include/asm/arch-mx6/sys_proto.h
index a2768d1..60f0929 100644
--- a/arch/arm/include/asm/arch-mx6/sys_proto.h
+++ b/arch/arm/include/asm/arch-mx6/sys_proto.h
@@ -14,7 +14,7 @@
#include "../arch-imx/cpu.h"
#define soc_rev() (get_cpu_rev() & 0xFF)
-#define is_soc_rev(rev) (soc_rev() - rev)
+#define is_soc_rev(rev) (int)(soc_rev() - rev)
u32 get_nr_cpus(void);
u32 get_cpu_rev(void);