mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-09-24 08:22:14 +00:00
i.MX6: Add convenience macros cpu_type(rev) and is_cpu_type(cpu)
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com> Acked-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
6f6059e0f1
commit
1ca244ded5
1 changed files with 7 additions and 0 deletions
|
@ -19,6 +19,13 @@
|
||||||
|
|
||||||
#define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev)
|
#define is_soc_rev(rev) ((get_cpu_rev() & 0xFF) - rev)
|
||||||
u32 get_cpu_rev(void);
|
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)
|
||||||
|
|
||||||
const char *get_imx_type(u32 imxtype);
|
const char *get_imx_type(u32 imxtype);
|
||||||
unsigned imx_ddr_size(void);
|
unsigned imx_ddr_size(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue