aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/include
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2019-07-05 17:20:13 +0200
committerPatrick Delaunay <patrick.delaunay@st.com>2019-07-12 11:18:53 +0200
commit24cb4587f48f5b88efc497baa6e010f6fd4f4825 (patch)
treec1b8da3fdfacf1c6d99632f1621d0124b613dd91 /arch/arm/mach-stm32mp/include
parentd3f077b3490bcf4f202d85a195cede591f6f3995 (diff)
downloadu-boot-24cb4587f48f5b88efc497baa6e010f6fd4f4825.zip
u-boot-24cb4587f48f5b88efc497baa6e010f6fd4f4825.tar.gz
u-boot-24cb4587f48f5b88efc497baa6e010f6fd4f4825.tar.bz2
stm32mp1: export get_cpu_package function
Prepare update of package information update in Linux device tree. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/include')
-rw-r--r--arch/arm/mach-stm32mp/include/mach/sys_proto.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/include/mach/sys_proto.h b/arch/arm/mach-stm32mp/include/mach/sys_proto.h
index 71a3ba7..99eefab 100644
--- a/arch/arm/mach-stm32mp/include/mach/sys_proto.h
+++ b/arch/arm/mach-stm32mp/include/mach/sys_proto.h
@@ -19,5 +19,14 @@ u32 get_cpu_type(void);
/* return CPU_REV constants */
u32 get_cpu_rev(void);
+
+/* Get Package options from OTP */
+u32 get_cpu_package(void);
+
+#define PKG_AA_LBGA448 4
+#define PKG_AB_LBGA354 3
+#define PKG_AC_TFBGA361 2
+#define PKG_AD_TFBGA257 1
+
/* return boot mode */
u32 get_bootmode(void);