summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/freescale-mx6-sabrelite/lowlevel.c
blob: 1b4796571a6636a3fab3677fa5ea683d5c696ffb (plain) (blame)
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
#include <common.h>
#include <sizes.h>
#include <mach/generic.h>
#include <asm/barebox-arm-head.h>
#include <asm/barebox-arm.h>

extern char __dtb_imx6q_sabrelite_start[];

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

	imx6_cpu_lowlevel_init();

	fdt = __dtb_imx6q_sabrelite_start - get_runtime_offset();

	barebox_arm_entry(0x10000000, SZ_1G, fdt);
}

extern char __dtb_imx6dl_sabrelite_start[];

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

	imx6_cpu_lowlevel_init();

	fdt = __dtb_imx6dl_sabrelite_start - get_runtime_offset();

	barebox_arm_entry(0x10000000, SZ_1G, fdt);
}