Change order of module startup to force USB2 before USB1.1
[openwrt.git] / target / linux / ar7 / patches-2.6.26 / 100-board_support.patch
1 --- a/arch/mips/Kconfig
2 +++ b/arch/mips/Kconfig
3 @@ -18,6 +18,23 @@ choice
4 prompt "System type"
5 default SGI_IP22
6
7 +config AR7
8 + bool "Texas Instruments AR7"
9 + select BOOT_ELF32
10 + select DMA_NONCOHERENT
11 + select CEVT_R4K
12 + select CSRC_R4K
13 + select IRQ_CPU
14 + select SWAP_IO_SPACE
15 + select SYS_HAS_CPU_MIPS32_R1
16 + select SYS_HAS_EARLY_PRINTK
17 + select SYS_SUPPORTS_32BIT_KERNEL
18 + select SYS_SUPPORTS_KGDB
19 + select SYS_SUPPORTS_LITTLE_ENDIAN
20 + select SYS_SUPPORTS_BIG_ENDIAN
21 + select GENERIC_GPIO
22 + select GENERIC_HARDIRQS_NO__DO_IRQ
23 +
24 config MACH_ALCHEMY
25 bool "Alchemy processor based machines"
26
27 --- a/arch/mips/kernel/traps.c
28 +++ b/arch/mips/kernel/traps.c
29 @@ -1188,9 +1188,22 @@ void *set_except_vector(int n, void *add
30
31 exception_handlers[n] = handler;
32 if (n == 0 && cpu_has_divec) {
33 - *(u32 *)(ebase + 0x200) = 0x08000000 |
34 - (0x03ffffff & (handler >> 2));
35 - flush_icache_range(ebase + 0x200, ebase + 0x204);
36 + if ((handler ^ (ebase + 4)) & 0xfc000000) {
37 + /* lui k0, 0x0000 */
38 + *(u32 *)(ebase + 0x200) = 0x3c1a0000 | (handler >> 16);
39 + /* ori k0, 0x0000 */
40 + *(u32 *)(ebase + 0x204) =
41 + 0x375a0000 | (handler & 0xffff);
42 + /* jr k0 */
43 + *(u32 *)(ebase + 0x208) = 0x03400008;
44 + /* nop */
45 + *(u32 *)(ebase + 0x20C) = 0x00000000;
46 + flush_icache_range(ebase + 0x200, ebase + 0x210);
47 + } else {
48 + *(u32 *)(ebase + 0x200) =
49 + 0x08000000 | (0x03ffffff & (handler >> 2));
50 + flush_icache_range(ebase + 0x200, ebase + 0x204);
51 + }
52 }
53 return (void *)old_handler;
54 }
55 --- a/arch/mips/Makefile
56 +++ b/arch/mips/Makefile
57 @@ -167,6 +167,13 @@ libs-$(CONFIG_SIBYTE_CFE) += arch/mips/s
58 #
59
60 #
61 +# Texas Instruments AR7
62 +#
63 +core-$(CONFIG_AR7) += arch/mips/ar7/
64 +cflags-$(CONFIG_AR7) += -Iinclude/asm-mips/ar7
65 +load-$(CONFIG_AR7) += 0xffffffff94100000
66 +
67 +#
68 # Acer PICA 61, Mips Magnum 4000 and Olivetti M700.
69 #
70 core-$(CONFIG_MACH_JAZZ) += arch/mips/jazz/
71 --- a/include/asm-mips/page.h
72 +++ b/include/asm-mips/page.h
73 @@ -182,8 +182,10 @@ typedef struct { unsigned long pgprot; }
74 #define VM_DATA_DEFAULT_FLAGS (VM_READ | VM_WRITE | VM_EXEC | \
75 VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)
76
77 -#define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + UNCAC_BASE)
78 -#define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET)
79 +#define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + UNCAC_BASE + \
80 + PHYS_OFFSET)
81 +#define CAC_ADDR(addr) ((addr) - UNCAC_BASE + PAGE_OFFSET - \
82 + PHYS_OFFSET)
83
84 #include <asm-generic/memory_model.h>
85 #include <asm-generic/page.h>
This page took 0.045861 seconds and 5 git commands to generate.