Preliminary ADM5120 support, marked as broken
[openwrt/svn-archive/archive.git] / target / linux / adm5120-2.6 / patches / 001-adm5120.patch
1 diff -urN linux-2.6.19.2/arch/mips/Kconfig linux-2.6.19.2.new/arch/mips/Kconfig
2 --- linux-2.6.19.2/arch/mips/Kconfig 2007-01-10 20:10:37.000000000 +0100
3 +++ linux-2.6.19.2.new/arch/mips/Kconfig 2007-01-23 14:49:38.000000000 +0100
4 @@ -12,6 +12,18 @@
5 prompt "System type"
6 default SGI_IP22
7
8 +config MIPS_ADM5120
9 + bool "Support for ADM5120 SoC"
10 + select SYS_HAS_CPU_MIPS32_R1
11 + select DMA_NONCOHERENT
12 + select HW_HAS_PCI
13 + select SYS_SUPPORTS_LITTLE_ENDIAN
14 + select SYS_SUPPORTS_32BIT_KERNEL
15 +
16 +config PCI_ADM5120
17 + bool "Add PCI control support for ADM5120"
18 + depends on MIPS_ADM5120 && PCI
19 +
20 config MIPS_MTX1
21 bool "4G Systems MTX-1 board"
22 select DMA_NONCOHERENT
23 diff -urN linux-2.6.19.2/arch/mips/Makefile linux-2.6.19.2.new/arch/mips/Makefile
24 --- linux-2.6.19.2/arch/mips/Makefile 2007-01-23 14:02:57.000000000 +0100
25 +++ linux-2.6.19.2.new/arch/mips/Makefile 2007-01-23 14:49:39.000000000 +0100
26 @@ -165,6 +165,13 @@
27 load-$(CONFIG_MACH_JAZZ) += 0xffffffff80080000
28
29 #
30 +# ADMtek 5120
31 +#
32 +
33 +core-$(CONFIG_MIPS_ADM5120) += arch/mips/adm5120/
34 +load-$(CONFIG_MIPS_ADM5120) += 0xffffffff80001000
35 +
36 +#
37 # Common Alchemy Au1x00 stuff
38 #
39 core-$(CONFIG_SOC_AU1X00) += arch/mips/au1000/common/
40 diff -urN linux-2.6.19.2/arch/mips/pci/Makefile linux-2.6.19.2.new/arch/mips/pci/Makefile
41 --- linux-2.6.19.2/arch/mips/pci/Makefile 2007-01-10 20:10:37.000000000 +0100
42 +++ linux-2.6.19.2.new/arch/mips/pci/Makefile 2007-01-23 14:49:40.000000000 +0100
43 @@ -53,3 +53,4 @@
44 obj-$(CONFIG_VICTOR_MPC30X) += fixup-mpc30x.o
45 obj-$(CONFIG_ZAO_CAPCELLA) += fixup-capcella.o
46 obj-$(CONFIG_WR_PPMC) += fixup-wrppmc.o
47 +obj-$(CONFIG_PCI_ADM5120) += ops-adm5120.o pci-adm5120.o
48 diff -urN linux-2.6.19.2/include/asm-mips/bootinfo.h linux-2.6.19.2.new/include/asm-mips/bootinfo.h
49 --- linux-2.6.19.2/include/asm-mips/bootinfo.h 2007-01-10 20:10:37.000000000 +0100
50 +++ linux-2.6.19.2.new/include/asm-mips/bootinfo.h 2007-01-23 14:49:40.000000000 +0100
51 @@ -212,6 +212,12 @@
52 #define MACH_GROUP_NEC_EMMA2RH 25 /* NEC EMMA2RH (was 23) */
53 #define MACH_NEC_MARKEINS 0 /* NEC EMMA2RH Mark-eins */
54
55 +/*
56 + * Valid machtype for group ADMtek
57 + */
58 +#define MACH_GROUP_ADM_GW 23
59 +#define MACH_ADM_GW_5120 0
60 +
61 #define CL_SIZE COMMAND_LINE_SIZE
62
63 const char *get_system_type(void);