diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-09-10 17:43:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-09-10 17:43:37 -0400 |
commit | 897ee77bfba12b83752027427a41009961458ee6 (patch) | |
tree | 2caf21fd61ab29d5e5ac37e45ff70b55ceeff9c9 | |
parent | f3f94ce5dba6e134cf0958dd3a42ab28a028fc83 (diff) | |
parent | 43863074659b71345b0047c2cf2ff8d8f7a4b4a1 (diff) |
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
[MIPS] Ocelot: remove remaining bits
[MIPS] TLB: Fix instruction bitmasks
[MIPS] R10000: Fix wrong test in dma-default.c
[MIPS] Provide empty irq_enable_hazard definition for legacy and R1 cores.
[MIPS] Sibyte: Remove broken dependency on EXPERIMENTAL from SIBYTE_SB1xxx_SOC.
[MIPS] Kconfig: whitespace cleanup.
[MIPS] PCI: Set need_domain_info if controller domain index is non-zero.
[MIPS] BCM1480: Fix computation of interrupt mask address register.
[MIPS] i8259: Add disable method.
[MIPS] tty: add the new ioctls and definitions.
-rw-r--r-- | arch/mips/Kconfig | 22 | ||||
-rw-r--r-- | arch/mips/kernel/i8259.c | 1 | ||||
-rw-r--r-- | arch/mips/mm/dma-default.c | 2 | ||||
-rw-r--r-- | arch/mips/mm/tlbex.c | 4 | ||||
-rw-r--r-- | arch/mips/pci/pci.c | 1 | ||||
-rw-r--r-- | arch/mips/sibyte/Kconfig | 1 | ||||
-rw-r--r-- | arch/mips/sibyte/bcm1480/irq.c | 8 | ||||
-rw-r--r-- | include/asm-mips/hazards.h | 1 | ||||
-rw-r--r-- | include/asm-mips/ioctls.h | 4 | ||||
-rw-r--r-- | include/asm-mips/mach-ocelot/mach-gt64120.h | 30 | ||||
-rw-r--r-- | include/asm-mips/termbits.h | 7 | ||||
-rw-r--r-- | include/asm-mips/termios.h | 6 |
12 files changed, 27 insertions, 60 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 04797b289c21..3b807b4bc7cd 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -80,10 +80,10 @@ config MACH_DECSTATION | |||
80 | If you have one of the following DECstation Models you definitely | 80 | If you have one of the following DECstation Models you definitely |
81 | want to choose R4xx0 for the CPU Type: | 81 | want to choose R4xx0 for the CPU Type: |
82 | 82 | ||
83 | DECstation 5000/50 | 83 | DECstation 5000/50 |
84 | DECstation 5000/150 | 84 | DECstation 5000/150 |
85 | DECstation 5000/260 | 85 | DECstation 5000/260 |
86 | DECsystem 5900/260 | 86 | DECsystem 5900/260 |
87 | 87 | ||
88 | otherwise choose R3000. | 88 | otherwise choose R3000. |
89 | 89 | ||
@@ -818,20 +818,6 @@ config EMMA2RH | |||
818 | config SERIAL_RM9000 | 818 | config SERIAL_RM9000 |
819 | bool | 819 | bool |
820 | 820 | ||
821 | # | ||
822 | # Unfortunately not all GT64120 systems run the chip at the same clock. | ||
823 | # As the user for the clock rate and try to minimize the available options. | ||
824 | # | ||
825 | choice | ||
826 | prompt "Galileo Chip Clock" | ||
827 | depends on MOMENCO_OCELOT | ||
828 | default SYSCLK_100 if MOMENCO_OCELOT | ||
829 | |||
830 | config SYSCLK_100 | ||
831 | bool "100" if MOMENCO_OCELOT | ||
832 | |||
833 | endchoice | ||
834 | |||
835 | config ARC32 | 821 | config ARC32 |
836 | bool | 822 | bool |
837 | 823 | ||
diff --git a/arch/mips/kernel/i8259.c b/arch/mips/kernel/i8259.c index 2345160e63fc..b6c30800c667 100644 --- a/arch/mips/kernel/i8259.c +++ b/arch/mips/kernel/i8259.c | |||
@@ -36,6 +36,7 @@ void mask_and_ack_8259A(unsigned int); | |||
36 | static struct irq_chip i8259A_chip = { | 36 | static struct irq_chip i8259A_chip = { |
37 | .name = "XT-PIC", | 37 | .name = "XT-PIC", |
38 | .mask = disable_8259A_irq, | 38 | .mask = disable_8259A_irq, |
39 | .disable = disable_8259A_irq, | ||
39 | .unmask = enable_8259A_irq, | 40 | .unmask = enable_8259A_irq, |
40 | .mask_ack = mask_and_ack_8259A, | 41 | .mask_ack = mask_and_ack_8259A, |
41 | }; | 42 | }; |
diff --git a/arch/mips/mm/dma-default.c b/arch/mips/mm/dma-default.c index 76903c727647..f60b3dc0fc62 100644 --- a/arch/mips/mm/dma-default.c +++ b/arch/mips/mm/dma-default.c | |||
@@ -35,7 +35,7 @@ static inline unsigned long dma_addr_to_virt(dma_addr_t dma_addr) | |||
35 | static inline int cpu_is_noncoherent_r10000(struct device *dev) | 35 | static inline int cpu_is_noncoherent_r10000(struct device *dev) |
36 | { | 36 | { |
37 | return !plat_device_is_coherent(dev) && | 37 | return !plat_device_is_coherent(dev) && |
38 | (current_cpu_data.cputype == CPU_R10000 && | 38 | (current_cpu_data.cputype == CPU_R10000 || |
39 | current_cpu_data.cputype == CPU_R12000); | 39 | current_cpu_data.cputype == CPU_R12000); |
40 | } | 40 | } |
41 | 41 | ||
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c index 4ec0964b8394..9cb39644b6f1 100644 --- a/arch/mips/mm/tlbex.c +++ b/arch/mips/mm/tlbex.c | |||
@@ -78,7 +78,7 @@ enum fields | |||
78 | SET = 0x200 | 78 | SET = 0x200 |
79 | }; | 79 | }; |
80 | 80 | ||
81 | #define OP_MASK 0x2f | 81 | #define OP_MASK 0x3f |
82 | #define OP_SH 26 | 82 | #define OP_SH 26 |
83 | #define RS_MASK 0x1f | 83 | #define RS_MASK 0x1f |
84 | #define RS_SH 21 | 84 | #define RS_SH 21 |
@@ -92,7 +92,7 @@ enum fields | |||
92 | #define IMM_SH 0 | 92 | #define IMM_SH 0 |
93 | #define JIMM_MASK 0x3ffffff | 93 | #define JIMM_MASK 0x3ffffff |
94 | #define JIMM_SH 0 | 94 | #define JIMM_SH 0 |
95 | #define FUNC_MASK 0x2f | 95 | #define FUNC_MASK 0x3f |
96 | #define FUNC_SH 0 | 96 | #define FUNC_SH 0 |
97 | #define SET_MASK 0x7 | 97 | #define SET_MASK 0x7 |
98 | #define SET_SH 0 | 98 | #define SET_SH 0 |
diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c index 6c5c684d1422..589b745d822a 100644 --- a/arch/mips/pci/pci.c +++ b/arch/mips/pci/pci.c | |||
@@ -141,6 +141,7 @@ static int __init pcibios_init(void) | |||
141 | 141 | ||
142 | bus = pci_scan_bus(next_busno, hose->pci_ops, hose); | 142 | bus = pci_scan_bus(next_busno, hose->pci_ops, hose); |
143 | hose->bus = bus; | 143 | hose->bus = bus; |
144 | need_domain_info = need_domain_info || hose->index; | ||
144 | hose->need_domain_info = need_domain_info; | 145 | hose->need_domain_info = need_domain_info; |
145 | if (bus) { | 146 | if (bus) { |
146 | next_busno = bus->subordinate + 1; | 147 | next_busno = bus->subordinate + 1; |
diff --git a/arch/mips/sibyte/Kconfig b/arch/mips/sibyte/Kconfig index e6b003ec6716..fdd7bd98fb44 100644 --- a/arch/mips/sibyte/Kconfig +++ b/arch/mips/sibyte/Kconfig | |||
@@ -48,7 +48,6 @@ config SIBYTE_BCM1x55 | |||
48 | 48 | ||
49 | config SIBYTE_SB1xxx_SOC | 49 | config SIBYTE_SB1xxx_SOC |
50 | bool | 50 | bool |
51 | depends on EXPERIMENTAL | ||
52 | select DMA_COHERENT | 51 | select DMA_COHERENT |
53 | select SIBYTE_CFE | 52 | select SIBYTE_CFE |
54 | select SWAP_IO_SPACE | 53 | select SWAP_IO_SPACE |
diff --git a/arch/mips/sibyte/bcm1480/irq.c b/arch/mips/sibyte/bcm1480/irq.c index 79ae6ef979bb..e729b5f30264 100644 --- a/arch/mips/sibyte/bcm1480/irq.c +++ b/arch/mips/sibyte/bcm1480/irq.c | |||
@@ -100,8 +100,8 @@ DEFINE_SPINLOCK(bcm1480_imr_lock); | |||
100 | 100 | ||
101 | void bcm1480_mask_irq(int cpu, int irq) | 101 | void bcm1480_mask_irq(int cpu, int irq) |
102 | { | 102 | { |
103 | unsigned long flags; | 103 | unsigned long flags, hl_spacing; |
104 | u64 cur_ints,hl_spacing; | 104 | u64 cur_ints; |
105 | 105 | ||
106 | spin_lock_irqsave(&bcm1480_imr_lock, flags); | 106 | spin_lock_irqsave(&bcm1480_imr_lock, flags); |
107 | hl_spacing = 0; | 107 | hl_spacing = 0; |
@@ -117,8 +117,8 @@ void bcm1480_mask_irq(int cpu, int irq) | |||
117 | 117 | ||
118 | void bcm1480_unmask_irq(int cpu, int irq) | 118 | void bcm1480_unmask_irq(int cpu, int irq) |
119 | { | 119 | { |
120 | unsigned long flags; | 120 | unsigned long flags, hl_spacing; |
121 | u64 cur_ints,hl_spacing; | 121 | u64 cur_ints; |
122 | 122 | ||
123 | spin_lock_irqsave(&bcm1480_imr_lock, flags); | 123 | spin_lock_irqsave(&bcm1480_imr_lock, flags); |
124 | hl_spacing = 0; | 124 | hl_spacing = 0; |
diff --git a/include/asm-mips/hazards.h b/include/asm-mips/hazards.h index 918a4894b587..6a5fa32f615b 100644 --- a/include/asm-mips/hazards.h +++ b/include/asm-mips/hazards.h | |||
@@ -172,6 +172,7 @@ ASMMACRO(tlb_probe_hazard, | |||
172 | nop; nop; nop | 172 | nop; nop; nop |
173 | ) | 173 | ) |
174 | ASMMACRO(irq_enable_hazard, | 174 | ASMMACRO(irq_enable_hazard, |
175 | _ssnop; _ssnop; _ssnop; | ||
175 | ) | 176 | ) |
176 | ASMMACRO(irq_disable_hazard, | 177 | ASMMACRO(irq_disable_hazard, |
177 | nop; nop; nop | 178 | nop; nop; nop |
diff --git a/include/asm-mips/ioctls.h b/include/asm-mips/ioctls.h index 92f6c36aac4d..5097cbf183a9 100644 --- a/include/asm-mips/ioctls.h +++ b/include/asm-mips/ioctls.h | |||
@@ -77,6 +77,10 @@ | |||
77 | #define TIOCSBRK 0x5427 /* BSD compatibility */ | 77 | #define TIOCSBRK 0x5427 /* BSD compatibility */ |
78 | #define TIOCCBRK 0x5428 /* BSD compatibility */ | 78 | #define TIOCCBRK 0x5428 /* BSD compatibility */ |
79 | #define TIOCGSID 0x7416 /* Return the session ID of FD */ | 79 | #define TIOCGSID 0x7416 /* Return the session ID of FD */ |
80 | #define TCGETS2 _IOR('T',0x2A, struct termios2) | ||
81 | #define TCSETS2 _IOW('T',0x2B, struct termios2) | ||
82 | #define TCSETSW2 _IOW('T',0x2C, struct termios2) | ||
83 | #define TCSETSF2 _IOW('T',0x2D, struct termios2) | ||
80 | #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ | 84 | #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ |
81 | #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ | 85 | #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ |
82 | 86 | ||
diff --git a/include/asm-mips/mach-ocelot/mach-gt64120.h b/include/asm-mips/mach-ocelot/mach-gt64120.h deleted file mode 100644 index a62ecb53c751..000000000000 --- a/include/asm-mips/mach-ocelot/mach-gt64120.h +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright 2001 MontaVista Software Inc. | ||
3 | * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License as published by the | ||
7 | * Free Software Foundation; either version 2 of the License, or (at your | ||
8 | * option) any later version. | ||
9 | */ | ||
10 | #ifndef _ASM_GT64120_MOMENCO_OCELOT_GT64120_DEP_H | ||
11 | #define _ASM_GT64120_MOMENCO_OCELOT_GT64120_DEP_H | ||
12 | |||
13 | /* | ||
14 | * PCI address allocation | ||
15 | */ | ||
16 | #define GT_PCI_MEM_BASE (0x22000000UL) | ||
17 | #define GT_PCI_MEM_SIZE GT_DEF_PCI0_MEM0_SIZE | ||
18 | #define GT_PCI_IO_BASE (0x20000000UL) | ||
19 | #define GT_PCI_IO_SIZE GT_DEF_PCI0_IO_SIZE | ||
20 | |||
21 | extern unsigned long gt64120_base; | ||
22 | |||
23 | #define GT64120_BASE (gt64120_base) | ||
24 | |||
25 | /* | ||
26 | * GT timer irq | ||
27 | */ | ||
28 | #define GT_TIMER 6 | ||
29 | |||
30 | #endif /* _ASM_GT64120_MOMENCO_OCELOT_GT64120_DEP_H */ | ||
diff --git a/include/asm-mips/termbits.h b/include/asm-mips/termbits.h index 5bfdc3b64510..c83c68444e86 100644 --- a/include/asm-mips/termbits.h +++ b/include/asm-mips/termbits.h | |||
@@ -164,6 +164,7 @@ struct ktermios { | |||
164 | #define HUPCL 0002000 /* Hang up on last close. */ | 164 | #define HUPCL 0002000 /* Hang up on last close. */ |
165 | #define CLOCAL 0004000 /* Ignore modem status lines. */ | 165 | #define CLOCAL 0004000 /* Ignore modem status lines. */ |
166 | #define CBAUDEX 0010000 | 166 | #define CBAUDEX 0010000 |
167 | #define BOTHER 0010000 | ||
167 | #define B57600 0010001 | 168 | #define B57600 0010001 |
168 | #define B115200 0010002 | 169 | #define B115200 0010002 |
169 | #define B230400 0010003 | 170 | #define B230400 0010003 |
@@ -179,9 +180,11 @@ struct ktermios { | |||
179 | #define B3000000 0010015 | 180 | #define B3000000 0010015 |
180 | #define B3500000 0010016 | 181 | #define B3500000 0010016 |
181 | #define B4000000 0010017 | 182 | #define B4000000 0010017 |
182 | #define CIBAUD 002003600000 /* input baud rate (not used) */ | 183 | #define CIBAUD 002003600000 /* input baud rate */ |
183 | #define CMSPAR 010000000000 /* mark or space (stick) parity */ | 184 | #define CMSPAR 010000000000 /* mark or space (stick) parity */ |
184 | #define CRTSCTS 020000000000 /* flow control */ | 185 | #define CRTSCTS 020000000000 /* flow control */ |
186 | |||
187 | #define IBSHIFT 16 /* Shift from CBAUD to CIBAUD */ | ||
185 | 188 | ||
186 | /* c_lflag bits */ | 189 | /* c_lflag bits */ |
187 | #define ISIG 0000001 /* Enable signals. */ | 190 | #define ISIG 0000001 /* Enable signals. */ |
diff --git a/include/asm-mips/termios.h b/include/asm-mips/termios.h index 2ce07f4be369..a275661fa7e1 100644 --- a/include/asm-mips/termios.h +++ b/include/asm-mips/termios.h | |||
@@ -122,8 +122,10 @@ struct termio { | |||
122 | copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \ | 122 | copy_to_user((termio)->c_cc, (termios)->c_cc, NCC); \ |
123 | }) | 123 | }) |
124 | 124 | ||
125 | #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios)) | 125 | #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) |
126 | #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios)) | 126 | #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) |
127 | #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios)) | ||
128 | #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios)) | ||
127 | 129 | ||
128 | #endif /* defined(__KERNEL__) */ | 130 | #endif /* defined(__KERNEL__) */ |
129 | 131 | ||