diff options
Diffstat (limited to 'arch/arm/boards/lxa-mc1/lowlevel.c')
-rw-r--r-- | arch/arm/boards/lxa-mc1/lowlevel.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/boards/lxa-mc1/lowlevel.c b/arch/arm/boards/lxa-mc1/lowlevel.c new file mode 100644 index 0000000000..86211bf9d8 --- /dev/null +++ b/arch/arm/boards/lxa-mc1/lowlevel.c @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ +#include <common.h> +#include <mach/stm32mp/entry.h> +#include <debug_ll.h> + +extern char __dtb_z_stm32mp157c_lxa_mc1_start[]; + +static void setup_uart(void) +{ + /* first stage has set up the UART, so nothing to do here */ + putc_ll('>'); +} + +ENTRY_FUNCTION(start_stm32mp157c_lxa_mc1, r0, r1, r2) +{ + void *fdt; + + stm32mp_cpu_lowlevel_init(); + + if (IS_ENABLED(CONFIG_DEBUG_LL)) + setup_uart(); + + fdt = __dtb_z_stm32mp157c_lxa_mc1_start + get_runtime_offset(); + + stm32mp1_barebox_entry(fdt); +} |