summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-stm32mp/include/mach/entry.h
blob: f8d981cca7cdd41118af79dd1559d40d4b778c69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: GPL-2.0-only */

#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