summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-boot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-boot.patch')
-rw-r--r--meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-boot.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-boot.patch b/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-boot.patch
new file mode 100644
index 0000000000..26cf38cc84
--- /dev/null
+++ b/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-boot.patch
@@ -0,0 +1,42 @@
1---
2 arch/arm/boot/compressed/Makefile | 4 ++++
3 arch/arm/boot/compressed/head-mx3.S | 17 +++++++++++++++++
4 2 files changed, 21 insertions(+)
5
6Index: linux-2.6.19.2/arch/arm/boot/compressed/Makefile
7===================================================================
8--- linux-2.6.19.2.orig/arch/arm/boot/compressed/Makefile 2007-01-10 20:10:37.000000000 +0100
9+++ linux-2.6.19.2/arch/arm/boot/compressed/Makefile 2007-10-02 15:46:13.000000000 +0200
10@@ -50,6 +50,10 @@
11 OBJS += head-at91rm9200.o
12 endif
13
14+ifeq ($(CONFIG_ARCH_MX3),y)
15+OBJS += head-mx3.o
16+endif
17+
18 ifeq ($(CONFIG_CPU_BIG_ENDIAN),y)
19 ifeq ($(CONFIG_CPU_CP15),y)
20 OBJS += big-endian.o
21Index: linux-2.6.19.2/arch/arm/boot/compressed/head-mx3.S
22===================================================================
23--- /dev/null 1970-01-01 00:00:00.000000000 +0000
24+++ linux-2.6.19.2/arch/arm/boot/compressed/head-mx3.S 2007-10-02 16:00:13.000000000 +0200
25@@ -0,0 +1,17 @@
26+/*
27+ * linux/arch/arm/boot/compressed/head-mx3.S
28+ *
29+ * MX3 specific hacks. This is merged into head.S by the linker.
30+ *
31+ */
32+
33+#include <linux/linkage.h>
34+#include <asm/mach-types.h>
35+
36+ .section ".start", "ax"
37+
38+__MX3_start:
39+#ifdef CONFIG_MACH_MX31LITE
40+ mov r7, #(MACH_TYPE_MX31LITE & 0xff)
41+ orr r7, r7, #(MACH_TYPE_MX31LITE & 0xff00)
42+#endif