aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-stm32mp/include
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-02-12 19:37:43 +0100
committerPatrick Delaunay <patrick.delaunay@st.com>2020-03-24 14:15:08 +0100
commitac5e4d8af8d3fd89068db1e50cafd646175c66d6 (patch)
tree190b21e0adc07e708e9bc1d28eb6b0a7e06c84ea /arch/arm/mach-stm32mp/include
parent61f6d4619859642c64870d54f75029d217e587fb (diff)
downloadu-boot-ac5e4d8af8d3fd89068db1e50cafd646175c66d6.zip
u-boot-ac5e4d8af8d3fd89068db1e50cafd646175c66d6.tar.gz
u-boot-ac5e4d8af8d3fd89068db1e50cafd646175c66d6.tar.bz2
arm: stm32mp: add function get_soc_name
Add a function get_soc_name to get a string with the full name of the SOC "STM32MP15xxx Rev.x" Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Acked-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/include')
-rw-r--r--arch/arm/mach-stm32mp/include/mach/sys_proto.h4
1 files changed, 4 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 da46c11..065b7b2 100644
--- a/arch/arm/mach-stm32mp/include/mach/sys_proto.h
+++ b/arch/arm/mach-stm32mp/include/mach/sys_proto.h
@@ -29,6 +29,10 @@ u32 get_cpu_package(void);
#define PKG_AC_TFBGA361 2
#define PKG_AD_TFBGA257 1
+/* Get SOC name */
+#define SOC_NAME_SIZE 20
+void get_soc_name(char name[SOC_NAME_SIZE]);
+
/* return boot mode */
u32 get_bootmode(void);