aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-mx31-2.6.19.2/mx31lite-boot.patch
blob: 26cf38cc84fdefd393aea23c351af3c74331d000 (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
33
34
35
36
37
38
39
40
41
42
---
 arch/arm/boot/compressed/Makefile   |    4 ++++
 arch/arm/boot/compressed/head-mx3.S |   17 +++++++++++++++++
 2 files changed, 21 insertions(+)

Index: linux-2.6.19.2/arch/arm/boot/compressed/Makefile
===================================================================
--- linux-2.6.19.2.orig/arch/arm/boot/compressed/Makefile	2007-01-10 20:10:37.000000000 +0100
+++ linux-2.6.19.2/arch/arm/boot/compressed/Makefile	2007-10-02 15:46:13.000000000 +0200
@@ -50,6 +50,10 @@
 OBJS		+= head-at91rm9200.o
 endif
 
+ifeq ($(CONFIG_ARCH_MX3),y)
+OBJS		+= head-mx3.o
+endif
+
 ifeq ($(CONFIG_CPU_BIG_ENDIAN),y)
 ifeq ($(CONFIG_CPU_CP15),y)
 OBJS		+= big-endian.o
Index: linux-2.6.19.2/arch/arm/boot/compressed/head-mx3.S
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ linux-2.6.19.2/arch/arm/boot/compressed/head-mx3.S	2007-10-02 16:00:13.000000000 +0200
@@ -0,0 +1,17 @@
+/*
+ * linux/arch/arm/boot/compressed/head-mx3.S
+ *
+ * MX3 specific hacks.  This is merged into head.S by the linker.
+ *
+ */
+
+#include <linux/linkage.h>
+#include <asm/mach-types.h>
+
+		.section        ".start", "ax"
+
+__MX3_start:
+#ifdef CONFIG_MACH_MX31LITE
+		mov	r7, #(MACH_TYPE_MX31LITE & 0xff)
+		orr	r7, r7, #(MACH_TYPE_MX31LITE & 0xff00)
+#endif