kernel: refresh patches
[openwrt/svn-archive/openwrt.git] / target / linux / rb532 / patches-2.6.23 / 100-rb5xx_support.patch
1 --- a/arch/mips/Kconfig
2 +++ b/arch/mips/Kconfig
3 @@ -595,6 +595,20 @@ config WR_PPMC
4 This enables support for the Wind River MIPS32 4KC PPMC evaluation
5 board, which is based on GT64120 bridge chip.
6
7 +config MIKROTIK_RB500
8 + bool "Support for RB5xx boards"
9 + select HW_HAS_PCI
10 + select IRQ_CPU
11 + select SYS_HAS_CPU_MIPS32_R1
12 + select SYS_SUPPORTS_LITTLE_ENDIAN
13 + select SYS_SUPPORTS_32BIT_KERNEL
14 + select SWAP_IO_SPACE
15 + select DMA_NONCOHERENT
16 + select GENERIC_GPIO
17 + help
18 + Support the Mikrotik(tm) Routerboard 500 series,
19 + such as the RB532.
20 +
21 endchoice
22
23 source "arch/mips/au1000/Kconfig"
24 @@ -829,6 +843,7 @@ config MIPS_L1_CACHE_SHIFT
25 default "4" if MACH_DECSTATION
26 default "7" if SGI_IP27 || SNI_RM
27 default "4" if PMC_MSP4200_EVAL
28 + default "4" if MIKROTIK_RB500
29 default "5"
30
31 config HAVE_STD_PC_SERIAL_PORT
32 --- a/arch/mips/Makefile
33 +++ b/arch/mips/Makefile
34 @@ -300,6 +300,13 @@ load-$(CONFIG_LEMOTE_FULONG) +=0xfffffff
35 cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote
36
37 #
38 +# Routerboard 532 board
39 +#
40 +core-$(CONFIG_MIKROTIK_RB500) += arch/mips/rb500/
41 +cflags-$(CONFIG_MIKROTIK_RB500) += -Iinclude/asm-mips/rc32434
42 +load-$(CONFIG_MIKROTIK_RB500) += 0xffffffff80101000
43 +
44 +#
45 # For all MIPS, Inc. eval boards
46 #
47 core-$(CONFIG_MIPS_BOARDS_GEN) += arch/mips/mips-boards/generic/
48 --- a/arch/mips/pci/Makefile
49 +++ b/arch/mips/pci/Makefile
50 @@ -46,3 +46,4 @@ obj-$(CONFIG_TOSHIBA_RBTX4938) += fixup-
51 obj-$(CONFIG_VICTOR_MPC30X) += fixup-mpc30x.o
52 obj-$(CONFIG_ZAO_CAPCELLA) += fixup-capcella.o
53 obj-$(CONFIG_WR_PPMC) += fixup-wrppmc.o
54 +obj-$(CONFIG_MIKROTIK_RB500) += pci-rc32434.o ops-rc32434.o fixup-rb500.o
55 --- a/drivers/pci/Makefile
56 +++ b/drivers/pci/Makefile
57 @@ -32,6 +32,7 @@ obj-$(CONFIG_PPC32) += setup-irq.o
58 obj-$(CONFIG_PPC64) += setup-bus.o
59 obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
60 obj-$(CONFIG_X86_VISWS) += setup-irq.o
61 +obj-$(CONFIG_MIKROTIK_RB500) += setup-irq.o
62
63 #
64 # ACPI Related PCI FW Functions
65 --- a/include/asm-mips/bootinfo.h
66 +++ b/include/asm-mips/bootinfo.h
67 @@ -208,6 +208,11 @@
68 #define MACH_GROUP_WINDRIVER 28 /* Windriver boards */
69 #define MACH_WRPPMC 1
70
71 +
72 +#define MACH_GROUP_MIKROTIK 29 /* Mikrotik Boards */
73 +#define MACH_MIKROTIK_RB532 0 /* Mikrotik RouterBoard 532 */
74 +#define MACH_MIKROTIK_RB532A 1 /* Mikrotik RouterBoard 532A */
75 +
76 #define CL_SIZE COMMAND_LINE_SIZE
77
78 const char *get_system_type(void);
79 --- a/include/asm-mips/cpu.h
80 +++ b/include/asm-mips/cpu.h
81 @@ -217,8 +217,9 @@
82 #define CPU_R14000 64
83 #define CPU_LOONGSON1 65
84 #define CPU_LOONGSON2 66
85 +#define CPU_RC32300 67
86
87 -#define CPU_LAST 66
88 +#define CPU_LAST 67
89
90 /*
91 * ISA Level encodings