summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/include/mach/barebox.lds.h
blob: 2e60282c6d0e64a75b4a27f1882f5e798b4cb13a (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

#ifdef CONFIG_ARCH_IMX_INTERNAL_BOOT

#ifdef CONFIG_ARCH_IMX_INTERNAL_BOOT_SERIAL
#define PRE_IMAGE \
	.pre_image : {					\
		KEEP(*(.flash_header_0x0*))		\
		KEEP(*(.dcd_entry_0x0*))		\
		KEEP(*(.image_len_0x0*))		\
		. = 0x400;				\
	}
#else

#define PRE_IMAGE \
	.pre_image : {					\
		KEEP(*(.flash_header_start*))		\
		. = 0x100;				\
		KEEP(*(.flash_header_0x0100*))		\
		KEEP(*(.dcd_entry_0x0100*))		\
		KEEP(*(.image_len_0x0100*))		\
		. = 0x400;				\
		KEEP(*(.flash_header_0x0400*))		\
		KEEP(*(.dcd_entry_0x0400*))		\
		KEEP(*(.image_len_0x0400*))		\
		. = 0x1000;				\
		KEEP(*(.flash_header_0x1000*))		\
		KEEP(*(.dcd_entry_0x1000*))		\
		KEEP(*(.image_len_0x1000*))		\
		. = 0x2000;				\
	}
#endif
#endif