ARM ep93xx: Get rid of special handling in linker file
The ep93xx needs a special value at offset 0x1000. Rather than do special handling in the linker file add aa header section as done on i.MX. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
a5dd9f8eca
commit
218dffea80
|
@ -41,11 +41,6 @@ SECTIONS
|
||||||
*(.text_entry*)
|
*(.text_entry*)
|
||||||
__ll_return = .;
|
__ll_return = .;
|
||||||
*(.text_ll_return*)
|
*(.text_ll_return*)
|
||||||
#ifdef CONFIG_ARCH_EP93XX
|
|
||||||
/* the EP93xx expects to find the pattern 'CRUS' at 0x1000 */
|
|
||||||
. = 0x1000;
|
|
||||||
LONG(0x53555243) /* 'CRUS' */
|
|
||||||
#endif
|
|
||||||
__bare_init_start = .;
|
__bare_init_start = .;
|
||||||
*(.text_bare_init*)
|
*(.text_bare_init*)
|
||||||
__bare_init_end = .;
|
__bare_init_end = .;
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
obj-y += clocksource.o gpio.o led.o
|
obj-y += clocksource.o gpio.o led.o header.o
|
||||||
|
|
||||||
obj-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += lowlevel_init.o
|
obj-$(CONFIG_MACH_DO_LOWLEVEL_INIT) += lowlevel_init.o
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <common.h>
|
||||||
|
#include <linux/compiler.h>
|
||||||
|
#include <asm/barebox-arm-head.h>
|
||||||
|
|
||||||
|
void __naked __section(.flash_header_start) go(void)
|
||||||
|
{
|
||||||
|
barebox_arm_head();
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
|
||||||
|
/* the EP93xx expects to find the pattern 'CRUS' at 0x1000 */
|
||||||
|
|
||||||
|
#define PRE_IMAGE \
|
||||||
|
.pre_image : { \
|
||||||
|
KEEP(*(.flash_header_start*)) \
|
||||||
|
. = 0x1000; \
|
||||||
|
LONG(0x53555243) /* 'CRUS' */ \
|
||||||
|
}
|
|
@ -4,7 +4,8 @@
|
||||||
defined CONFIG_ARCH_IMX51 || \
|
defined CONFIG_ARCH_IMX51 || \
|
||||||
defined CONFIG_ARCH_IMX53 || \
|
defined CONFIG_ARCH_IMX53 || \
|
||||||
defined CONFIG_ARCH_IMX6 || \
|
defined CONFIG_ARCH_IMX6 || \
|
||||||
defined CONFIG_X86
|
defined CONFIG_X86 || \
|
||||||
|
defined CONFIG_ARCH_EP93XX
|
||||||
#include <mach/barebox.lds.h>
|
#include <mach/barebox.lds.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue