summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/stm32mp15x-ev1/lowlevel.c
blob: 06ff6291b8b4f568530f71e067891bdff9698927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <mach/entry.h>
#include <debug_ll.h>

extern char __dtb_z_stm32mp157c_ev1_start[];

static void setup_uart(void)
{
	/* first stage has set up the UART, so nothing to do here */
	putc_ll('>');
}

ENTRY_FUNCTION(start_stm32mp15x_ev1, r0, r1, r2)
{
	void *fdt;

	stm32mp_cpu_lowlevel_init();

	if (IS_ENABLED(CONFIG_DEBUG_LL))
		setup_uart();

	fdt = __dtb_z_stm32mp157c_ev1_start + get_runtime_offset();

	stm32mp1_barebox_entry(fdt);
}