diff options
author | Nikita Kiryanov <nikita@compulab.co.il> | 2014-08-20 15:08:59 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-09-09 15:35:00 +0200 |
commit | ea818ae74824fecf252fc64090295d68b2998e9c (patch) | |
tree | 6c202585c1375a35873aa540b617caadb01af035 /arch/arm | |
parent | 07ee927d2c319b477232affad7d3b6119ac079c9 (diff) | |
download | u-boot-imx-ea818ae74824fecf252fc64090295d68b2998e9c.zip u-boot-imx-ea818ae74824fecf252fc64090295d68b2998e9c.tar.gz u-boot-imx-ea818ae74824fecf252fc64090295d68b2998e9c.tar.bz2 |
arm: mx6: add get_cpu_type()
Define get_cpu_type(). Reuse it in is_cpu_type().
Cc: Igor Grinberg <grinberg@compulab.co.il>
Cc: Stefano Babic <sbabic@denx.de>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/include/asm/arch-mx6/sys_proto.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/include/asm/arch-mx6/sys_proto.h b/arch/arm/include/asm/arch-mx6/sys_proto.h index 306d699..c35a9051 100644 --- a/arch/arm/include/asm/arch-mx6/sys_proto.h +++ b/arch/arm/include/asm/arch-mx6/sys_proto.h @@ -20,8 +20,9 @@ u32 get_cpu_rev(void); /* returns MXC_CPU_ value */ #define cpu_type(rev) (((rev) >> 12)&0xff) -/* use with MXC_CPU_ constants */ -#define is_cpu_type(cpu) (cpu_type(get_cpu_rev()) == cpu) +/* both macros return/take MXC_CPU_ constants */ +#define get_cpu_type() (cpu_type(get_cpu_rev())) +#define is_cpu_type(cpu) (get_cpu_type() == cpu) const char *get_imx_type(u32 imxtype); unsigned imx_ddr_size(void); |