summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2021-08-07 11:00:31 +0300
committerStefano Babic <sbabic@denx.de>2021-08-09 15:46:50 +0300
commit331d40d7014d932ba7ebaf2450885d8dc427a023 (patch)
tree763b9a739966b751af1200e05f8647f56b559843 /arch/arm/mach-imx
parent19b990b4f756a6f0b661b2a3ba3f67228be773f4 (diff)
downloadu-boot-331d40d7014d932ba7ebaf2450885d8dc427a023.tar.xz
arm: imx: add i.MX8ULP cpu type and helper
Add i.MX8ULP cpu type and helpers. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/imx8ulp/soc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx8ulp/soc.c b/arch/arm/mach-imx/imx8ulp/soc.c
new file mode 100644
index 0000000000..b3679aefcb
--- /dev/null
+++ b/arch/arm/mach-imx/imx8ulp/soc.c
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2021 NXP
+ */
+
+#include <asm/arch/sys_proto.h>
+
+u32 get_cpu_rev(void)
+{
+ return (MXC_CPU_IMX8ULP << 12) | CHIP_REV_1_0;
+}