[kernel] more linux kernel cygwin build fixes
[openwrt.git] / target / linux / amazon / patches / 100-board.patch
1 --- a/arch/mips/Kconfig
2 +++ b/arch/mips/Kconfig
3 @@ -159,6 +159,17 @@ config BASLER_EXCITE_PROTOTYPE
4 note that a kernel built with this option selected will not be
5 able to run on normal units.
6
7 +config AMAZON
8 + bool "Amazon support (EXPERIMENTAL)"
9 + depends on EXPERIMENTAL
10 + select DMA_NONCOHERENT
11 + select IRQ_CPU
12 + select SYS_HAS_CPU_MIPS32_R1
13 + select HAVE_STD_PC_SERIAL_PORT
14 + select SYS_SUPPORTS_BIG_ENDIAN
15 + select SYS_SUPPORTS_32BIT_KERNEL
16 + select SYS_HAS_EARLY_PRINTK
17 +
18 config MIPS_COBALT
19 bool "Cobalt Server"
20 select DMA_NONCOHERENT
21 @@ -823,6 +834,7 @@ config TOSHIBA_RBTX4938
22
23 endchoice
24
25 +source "arch/mips/amazon/Kconfig"
26 source "arch/mips/ddb5xxx/Kconfig"
27 source "arch/mips/gt64120/ev64120/Kconfig"
28 source "arch/mips/jazz/Kconfig"
29 --- a/arch/mips/Makefile
30 +++ b/arch/mips/Makefile
31 @@ -267,6 +267,13 @@ libs-$(CONFIG_MIPS_XXS1500) += arch/mips
32 load-$(CONFIG_MIPS_XXS1500) += 0xffffffff80100000
33
34 #
35 +# Infineon AMAZON
36 +#
37 +core-$(CONFIG_AMAZON) += arch/mips/amazon/
38 +cflags-$(CONFIG_AMAZON) += -Iinclude/asm-mips/mach-amazon
39 +load-$(CONFIG_AMAZON) += 0xffffffff80002000
40 +
41 +#
42 # Cobalt Server
43 #
44 core-$(CONFIG_MIPS_COBALT) += arch/mips/cobalt/
45 --- a/include/asm-mips/bootinfo.h
46 +++ b/include/asm-mips/bootinfo.h
47 @@ -213,6 +213,12 @@
48 #define MACH_GROUP_NEC_EMMA2RH 25 /* NEC EMMA2RH (was 23) */
49 #define MACH_NEC_MARKEINS 0 /* NEC EMMA2RH Mark-eins */
50
51 +/*
52 + * Valid machtype for group Infineon
53 + */
54 +#define MACH_GROUP_INFINEON 27
55 +#define MACH_INFINEON_AMAZON 0
56 +
57 #define CL_SIZE COMMAND_LINE_SIZE
58
59 const char *get_system_type(void);
This page took 0.045023 seconds and 5 git commands to generate.