summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-stm32mp/include/mach/entry.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-12-10 05:41:45 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-12-10 05:41:45 +0100
commit06f66d85753a49d4eb14578914ac7ce5e6454734 (patch)
treeeb748be6f6139366747067ac8d9b8597ebd4399e /arch/arm/mach-stm32mp/include/mach/entry.h
parentc65ca498685d09863efde43c73d955b729340fa5 (diff)
parentab8c218ec464f49aa1143cb26964d4774c5facb7 (diff)
downloadbarebox-06f66d85753a49d4eb14578914ac7ce5e6454734.tar.gz
barebox-06f66d85753a49d4eb14578914ac7ce5e6454734.tar.xz
Merge branch 'for-next/stm32'
Diffstat (limited to 'arch/arm/mach-stm32mp/include/mach/entry.h')
-rw-r--r--arch/arm/mach-stm32mp/include/mach/entry.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/include/mach/entry.h b/arch/arm/mach-stm32mp/include/mach/entry.h
new file mode 100644
index 0000000000..92e15b5cf4
--- /dev/null
+++ b/arch/arm/mach-stm32mp/include/mach/entry.h
@@ -0,0 +1,19 @@
+#ifndef _STM32MP_MACH_ENTRY_H_
+#define _STM32MP_MACH_ENTRY_H_
+
+#include <linux/kernel.h>
+#include <asm/barebox-arm.h>
+
+static __always_inline void stm32mp_cpu_lowlevel_init(void)
+{
+ unsigned long stack_top;
+ arm_cpu_lowlevel_init();
+
+ stack_top = (unsigned long)__image_end + get_runtime_offset() + 64;
+ stack_top = ALIGN(stack_top, 16);
+ arm_setup_stack(stack_top);
+}
+
+void __noreturn stm32mp1_barebox_entry(void *boarddata);
+
+#endif