38c8fd6b013d6c871aaaef32c348dd3368811e27
[openwrt/svn-archive/archive.git] / target / linux / ifxmips / patches / 100-board.patch
1 Index: linux-2.6.25.7/arch/mips/Kconfig
2 ===================================================================
3 --- linux-2.6.25.7.orig/arch/mips/Kconfig 2008-06-26 10:42:44.000000000 +0200
4 +++ linux-2.6.25.7/arch/mips/Kconfig 2008-06-26 22:05:19.000000000 +0200
5 @@ -78,6 +78,21 @@
6 select SYS_SUPPORTS_LITTLE_ENDIAN
7 select GENERIC_HARDIRQS_NO__DO_IRQ
8
9 +config IFXMIPS
10 + bool "Infineon Twinpass, Danube, Amazon-SE"
11 + select DMA_NONCOHERENT
12 + select IRQ_CPU
13 + select CEVT_R4K
14 + select CSRC_R4K
15 + select SYS_HAS_CPU_MIPS32_R1
16 + select HAVE_STD_PC_SERIAL_PORT
17 + select SYS_SUPPORTS_BIG_ENDIAN
18 + select SYS_SUPPORTS_32BIT_KERNEL
19 + select SYS_HAS_EARLY_PRINTK
20 + select HW_HAS_PCI
21 + select GENERIC_GPIO
22 + select SWAP_IO_SPACE
23 +
24 config MACH_DECSTATION
25 bool "DECstations"
26 select BOOT_ELF32
27 @@ -693,6 +708,7 @@
28 source "arch/mips/tx4927/Kconfig"
29 source "arch/mips/tx4938/Kconfig"
30 source "arch/mips/vr41xx/Kconfig"
31 +source "arch/mips/ifxmips/Kconfig"
32
33 endmenu
34
35 Index: linux-2.6.25.7/arch/mips/Makefile
36 ===================================================================
37 --- linux-2.6.25.7.orig/arch/mips/Makefile 2008-06-26 10:42:55.000000000 +0200
38 +++ linux-2.6.25.7/arch/mips/Makefile 2008-06-26 10:42:56.000000000 +0200
39 @@ -283,6 +283,13 @@
40 load-$(CONFIG_MIPS_COBALT) += 0xffffffff80080000
41
42 #
43 +# Infineon IFXMIPS
44 +#
45 +core-$(CONFIG_IFXMIPS) += arch/mips/ifxmips/
46 +cflags-$(CONFIG_IFXMIPS) += -Iinclude/asm-mips/mach-ifxmips
47 +load-$(CONFIG_IFXMIPS) += 0xffffffff80002000
48 +
49 +#
50 # DECstation family
51 #
52 core-$(CONFIG_MACH_DECSTATION) += arch/mips/dec/
53 Index: linux-2.6.25.7/include/asm-mips/bootinfo.h
54 ===================================================================
55 --- linux-2.6.25.7.orig/include/asm-mips/bootinfo.h 2008-06-26 10:42:44.000000000 +0200
56 +++ linux-2.6.25.7/include/asm-mips/bootinfo.h 2008-06-26 10:42:56.000000000 +0200
57 @@ -94,6 +94,12 @@
58 #define MACH_MSP7120_FPGA 5 /* PMC-Sierra MSP7120 Emulation */
59 #define MACH_MSP_OTHER 255 /* PMC-Sierra unknown board type */
60
61 +/*
62 + * Valid machtype for group IFXMIPS
63 + */
64 +#define MACH_GROUP_IFXMIPS 29
65 +#define MACH_INFINEON_IFXMIPS 0
66 +
67 #define CL_SIZE COMMAND_LINE_SIZE
68
69 extern char *system_type;
70 Index: linux-2.6.25.7/arch/mips/kernel/traps.c
71 ===================================================================
72 --- linux-2.6.25.7.orig/arch/mips/kernel/traps.c 2008-06-26 10:42:44.000000000 +0200
73 +++ linux-2.6.25.7/arch/mips/kernel/traps.c 2008-06-26 10:42:56.000000000 +0200
74 @@ -1379,6 +1379,7 @@
75 */
76 if (cpu_has_mips_r2) {
77 cp0_compare_irq = (read_c0_intctl() >> 29) & 7;
78 + cp0_compare_irq = CP0_LEGACY_COMPARE_IRQ;
79 cp0_perfcount_irq = (read_c0_intctl() >> 26) & 7;
80 if (cp0_perfcount_irq == cp0_compare_irq)
81 cp0_perfcount_irq = -1;
82 Index: linux-2.6.25.7/arch/mips/pci/Makefile
83 ===================================================================
84 --- linux-2.6.25.7.orig/arch/mips/pci/Makefile 2008-06-26 10:42:44.000000000 +0200
85 +++ linux-2.6.25.7/arch/mips/pci/Makefile 2008-06-26 10:42:56.000000000 +0200
86 @@ -48,3 +48,4 @@
87 obj-$(CONFIG_VICTOR_MPC30X) += fixup-mpc30x.o
88 obj-$(CONFIG_ZAO_CAPCELLA) += fixup-capcella.o
89 obj-$(CONFIG_WR_PPMC) += fixup-wrppmc.o
90 +obj-$(CONFIG_IFXMIPS) += pci-ifxmips.o ops-ifxmips.o