mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
imx: fix cpu_type helper
i.MX8MP use 0x182 as its ID, so 0xff is not valid to get the cpu type, extend it to 0x1ff. Reviewed-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
126dcc925d
commit
499c94975e
@ -16,7 +16,7 @@
|
|||||||
#define is_soc_rev(rev) (soc_rev() == rev)
|
#define is_soc_rev(rev) (soc_rev() == rev)
|
||||||
|
|
||||||
/* returns MXC_CPU_ value */
|
/* returns MXC_CPU_ value */
|
||||||
#define cpu_type(rev) (((rev) >> 12) & 0xff)
|
#define cpu_type(rev) (((rev) >> 12) & 0x1ff)
|
||||||
#define soc_type(rev) (((rev) >> 12) & 0xf0)
|
#define soc_type(rev) (((rev) >> 12) & 0xf0)
|
||||||
/* both macros return/take MXC_CPU_ constants */
|
/* both macros return/take MXC_CPU_ constants */
|
||||||
#define get_cpu_type() (cpu_type(get_cpu_rev()))
|
#define get_cpu_type() (cpu_type(get_cpu_rev()))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user