From 99dd30daee17eed0077b2fd97feb3cdc71900c78 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Mon, 9 May 2005 14:03:35 -0700 Subject: [PATCH] ARM: OMAP: Boot 730 without a bootloader Boots 730 without a bootloader Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren --- arch/arm/boot/compressed/Makefile | 6 +++++- arch/arm/boot/compressed/head-omap.S | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/compressed/head-omap.S diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 6b505ce41a7..f9b05d80a08 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -51,7 +51,11 @@ OBJS += head-sharpsl.o endif ifeq ($(CONFIG_DEBUG_ICEDCC),y) -OBJS += ice-dcc.o +OBJS += ice-dcc.o +endif + +ifeq ($(CONFIG_MACH_OMAP_PERSEUS2),y) +OBJS += head-omap.o endif ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) diff --git a/arch/arm/boot/compressed/head-omap.S b/arch/arm/boot/compressed/head-omap.S new file mode 100644 index 00000000000..440e9a5edd3 --- /dev/null +++ b/arch/arm/boot/compressed/head-omap.S @@ -0,0 +1,19 @@ +/* + * linux/arch/arm/boot/compressed/head-omap.S + * + * OMAP specific tweaks. This is merged into head.S by the linker. + * + */ + +#include +#include +#include + + .section ".start", "ax" + +__OMAP_start: +#ifdef CONFIG_MACH_OMAP_PERSEUS2 + /* support for booting without u-boot */ + mov r7, #(MACH_TYPE_OMAP_PERSEUS2 & ~0xf) + orr r7, r7, #(MACH_TYPE_OMAP_PERSEUS2 & 0xf) +#endif -- 2.41.1