blob: db77d1f53237b0095a3a6ecacba8d8dbda920541 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) 2019 Rouven Czerwinski, Pengutronix
*/
#include <common.h>
#include <debug_ll.h>
#include <firmware.h>
#include <mach/generic.h>
#include <asm/barebox-arm.h>
#include <mach/esdctl.h>
#include <mach/iomux-mx6ul.h>
#include <asm/cache.h>
extern char __dtb_z_imx6ul_mba6ulx_start[];
static void setup_uart(void)
{
imx6_ungate_all_peripherals();
/*
* Default pad configuration on this board, no explicit config needed
*/
imx6_uart_setup((void *)MX6_UART1_BASE_ADDR);
pbl_set_putc(imx_uart_putc, (void *)MX6_UART1_BASE_ADDR);
pr_debug("\n");
}
static void noinline start_mba6ulx(void)
{
setup_uart();
imx6ul_barebox_entry(__dtb_z_imx6ul_mba6ulx_start);
}
ENTRY_FUNCTION(start_imx6ul_mba6ulx, r0, r1, r2)
{
imx6ul_cpu_lowlevel_init();
arm_setup_stack(0x00910000);
if (IS_ENABLED(CONFIG_DEBUG_LL)) {
imx6_uart_setup_ll();
putc_ll('>');
}
relocate_to_current_adr();
setup_c();
barrier();
start_mba6ulx();
}
|