diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-10 17:55:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-10 17:55:16 -0400 |
commit | 8d7551eb1916832f2a5b27346edf24e7b2382f67 (patch) | |
tree | a9151f92b1586e024a839e71aa2c58d7f44cee41 | |
parent | 3da06ed7366f6749ac333d1c051131c1a550755f (diff) | |
parent | be8cb7f42ab9a8723082daa83ac28a11d4dde942 (diff) |
Merge tag 'cris-for-3.12' of git://jni.nu/cris
Pull CRIS updates from Jesper Nilsson:
"Mostly cleanup and removal of unused configs"
* tag 'cris-for-3.12' of git://jni.nu/cris:
CRIS: drop unused Kconfig symbols
CRIS: Add kvm_para.h which includes generic file
CRIS: remove unused current_regs
CRIS: Remove last traces of legacy RTC drivers
CRIS: remove "config OOM_REBOOT"
-rw-r--r-- | arch/cris/Kconfig | 81 | ||||
-rw-r--r-- | arch/cris/arch-v10/drivers/Kconfig | 70 | ||||
-rw-r--r-- | arch/cris/arch-v10/drivers/Makefile | 2 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/Kconfig | 394 | ||||
-rw-r--r-- | arch/cris/arch-v32/mach-a3/Kconfig | 4 | ||||
-rw-r--r-- | arch/cris/include/asm/processor.h | 1 | ||||
-rw-r--r-- | arch/cris/include/uapi/asm/kvm_para.h | 1 |
7 files changed, 1 insertions, 552 deletions
diff --git a/arch/cris/Kconfig b/arch/cris/Kconfig index 3201ddb8da6a..c699d3259872 100644 --- a/arch/cris/Kconfig +++ b/arch/cris/Kconfig | |||
@@ -99,9 +99,6 @@ config ETRAX_KMALLOCED_MODULES | |||
99 | help | 99 | help |
100 | Enable module allocation with kmalloc instead of vmalloc. | 100 | Enable module allocation with kmalloc instead of vmalloc. |
101 | 101 | ||
102 | config OOM_REBOOT | ||
103 | bool "Enable reboot at out of memory" | ||
104 | |||
105 | source "kernel/Kconfig.preempt" | 102 | source "kernel/Kconfig.preempt" |
106 | 103 | ||
107 | source mm/Kconfig | 104 | source mm/Kconfig |
@@ -175,12 +172,6 @@ config ETRAX_FLASH_BUSWIDTH | |||
175 | help | 172 | help |
176 | Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2. | 173 | Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2. |
177 | 174 | ||
178 | config ETRAX_NANDFLASH_BUSWIDTH | ||
179 | int "Buswidth of NAND flash in bytes" | ||
180 | default "1" | ||
181 | help | ||
182 | Width in bytes of the NAND flash (1 or 2). | ||
183 | |||
184 | config ETRAX_FLASH1_SIZE | 175 | config ETRAX_FLASH1_SIZE |
185 | int "FLASH1 size (dec, in MB. 0 = Unknown)" | 176 | int "FLASH1 size (dec, in MB. 0 = Unknown)" |
186 | default "0" | 177 | default "0" |
@@ -272,38 +263,6 @@ config ETRAX_AXISFLASHMAP | |||
272 | This option enables MTD mapping of flash devices. Needed to use | 263 | This option enables MTD mapping of flash devices. Needed to use |
273 | flash memories. If unsure, say Y. | 264 | flash memories. If unsure, say Y. |
274 | 265 | ||
275 | config ETRAX_RTC | ||
276 | bool "Real Time Clock support" | ||
277 | depends on ETRAX_I2C | ||
278 | help | ||
279 | Enables drivers for the Real-Time Clock battery-backed chips on | ||
280 | some products. The kernel reads the time when booting, and | ||
281 | the date can be set using ioctl(fd, RTC_SET_TIME, &rt) with rt a | ||
282 | rtc_time struct (see <file:arch/cris/include/asm/rtc.h>) on the | ||
283 | /dev/rtc device. You can check the time with cat /proc/rtc, but | ||
284 | normal time reading should be done using libc function time and | ||
285 | friends. | ||
286 | |||
287 | choice | ||
288 | prompt "RTC chip" | ||
289 | depends on ETRAX_RTC | ||
290 | default ETRAX_DS1302 | ||
291 | |||
292 | config ETRAX_DS1302 | ||
293 | depends on ETRAX_ARCH_V10 | ||
294 | bool "DS1302" | ||
295 | help | ||
296 | Enables the driver for the DS1302 Real-Time Clock battery-backed | ||
297 | chip on some products. | ||
298 | |||
299 | config ETRAX_PCF8563 | ||
300 | bool "PCF8563" | ||
301 | help | ||
302 | Enables the driver for the PCF8563 Real-Time Clock battery-backed | ||
303 | chip on some products. | ||
304 | |||
305 | endchoice | ||
306 | |||
307 | config ETRAX_SYNCHRONOUS_SERIAL | 266 | config ETRAX_SYNCHRONOUS_SERIAL |
308 | bool "Synchronous serial-port support" | 267 | bool "Synchronous serial-port support" |
309 | help | 268 | help |
@@ -578,26 +537,6 @@ config ETRAX_SERIAL_PORT3_DMA5_IN | |||
578 | depends on ETRAX_ARCH_V10 | 537 | depends on ETRAX_ARCH_V10 |
579 | bool "DMA 5" | 538 | bool "DMA 5" |
580 | 539 | ||
581 | config ETRAX_SERIAL_PORT3_DMA9_IN | ||
582 | bool "Ser3 uses DMA9 for input" | ||
583 | depends on ETRAXFS | ||
584 | help | ||
585 | Enables the DMA9 input channel for ser3 (ttyS3). | ||
586 | If you do not enable DMA, an interrupt for each character will be | ||
587 | used when receiving data. | ||
588 | Normally you want to use DMA, unless you use the DMA channel for | ||
589 | something else. | ||
590 | |||
591 | config ETRAX_SERIAL_PORT3_DMA3_IN | ||
592 | bool "Ser3 uses DMA3 for input" | ||
593 | depends on CRIS_MACH_ARTPEC3 | ||
594 | help | ||
595 | Enables the DMA3 input channel for ser3 (ttyS3). | ||
596 | If you do not enable DMA, an interrupt for each character will be | ||
597 | used when receiving data. | ||
598 | Normally you want to use DMA, unless you use the DMA channel for | ||
599 | something else. | ||
600 | |||
601 | endchoice | 540 | endchoice |
602 | 541 | ||
603 | choice | 542 | choice |
@@ -615,26 +554,6 @@ config ETRAX_SERIAL_PORT3_DMA4_OUT | |||
615 | depends on ETRAX_ARCH_V10 | 554 | depends on ETRAX_ARCH_V10 |
616 | bool "DMA 4" | 555 | bool "DMA 4" |
617 | 556 | ||
618 | config ETRAX_SERIAL_PORT3_DMA8_OUT | ||
619 | bool "Ser3 uses DMA8 for output" | ||
620 | depends on ETRAXFS | ||
621 | help | ||
622 | Enables the DMA8 output channel for ser3 (ttyS3). | ||
623 | If you do not enable DMA, an interrupt for each character will be | ||
624 | used when transmitting data. | ||
625 | Normally you want to use DMA, unless you use the DMA channel for | ||
626 | something else. | ||
627 | |||
628 | config ETRAX_SERIAL_PORT3_DMA2_OUT | ||
629 | bool "Ser3 uses DMA2 for output" | ||
630 | depends on CRIS_MACH_ARTPEC3 | ||
631 | help | ||
632 | Enables the DMA2 output channel for ser3 (ttyS3). | ||
633 | If you do not enable DMA, an interrupt for each character will be | ||
634 | used when transmitting data. | ||
635 | Normally you want to use DMA, unless you use the DMA channel for | ||
636 | something else. | ||
637 | |||
638 | endchoice | 557 | endchoice |
639 | 558 | ||
640 | endmenu | 559 | endmenu |
diff --git a/arch/cris/arch-v10/drivers/Kconfig b/arch/cris/arch-v10/drivers/Kconfig index daf5f19b61a1..239dab0b95c1 100644 --- a/arch/cris/arch-v10/drivers/Kconfig +++ b/arch/cris/arch-v10/drivers/Kconfig | |||
@@ -417,16 +417,6 @@ config ETRAX_USB_HOST | |||
417 | for CTRL and BULK traffic only, INTR traffic may work as well | 417 | for CTRL and BULK traffic only, INTR traffic may work as well |
418 | however (depending on the requirements of timeliness). | 418 | however (depending on the requirements of timeliness). |
419 | 419 | ||
420 | config ETRAX_USB_HOST_PORT1 | ||
421 | bool "USB port 1 enabled" | ||
422 | depends on ETRAX_USB_HOST | ||
423 | default n | ||
424 | |||
425 | config ETRAX_USB_HOST_PORT2 | ||
426 | bool "USB port 2 enabled" | ||
427 | depends on ETRAX_USB_HOST | ||
428 | default n | ||
429 | |||
430 | config ETRAX_PTABLE_SECTOR | 420 | config ETRAX_PTABLE_SECTOR |
431 | int "Byte-offset of partition table sector" | 421 | int "Byte-offset of partition table sector" |
432 | depends on ETRAX_AXISFLASHMAP | 422 | depends on ETRAX_AXISFLASHMAP |
@@ -527,19 +517,6 @@ config ETRAX_GPIO | |||
527 | Remember that you need to setup the port directions appropriately in | 517 | Remember that you need to setup the port directions appropriately in |
528 | the General configuration. | 518 | the General configuration. |
529 | 519 | ||
530 | config ETRAX_PA_BUTTON_BITMASK | ||
531 | hex "PA-buttons bitmask" | ||
532 | depends on ETRAX_GPIO | ||
533 | default "02" | ||
534 | help | ||
535 | This is a bitmask with information about what bits on PA that | ||
536 | are used for buttons. | ||
537 | Most products has a so called TEST button on PA1, if that's true | ||
538 | use 02 here. | ||
539 | Use 00 if there are no buttons on PA. | ||
540 | If the bitmask is <> 00 a button driver will be included in the gpio | ||
541 | driver. ETRAX general I/O support must be enabled. | ||
542 | |||
543 | config ETRAX_PA_CHANGEABLE_DIR | 520 | config ETRAX_PA_CHANGEABLE_DIR |
544 | hex "PA user changeable dir mask" | 521 | hex "PA user changeable dir mask" |
545 | depends on ETRAX_GPIO | 522 | depends on ETRAX_GPIO |
@@ -580,51 +557,4 @@ config ETRAX_PB_CHANGEABLE_BITS | |||
580 | Bit set = changeable. | 557 | Bit set = changeable. |
581 | You probably want 00 here. | 558 | You probably want 00 here. |
582 | 559 | ||
583 | config ETRAX_DS1302_RST_ON_GENERIC_PORT | ||
584 | bool "DS1302 RST on Generic Port" | ||
585 | depends on ETRAX_DS1302 | ||
586 | help | ||
587 | If your product has the RST signal line for the DS1302 RTC on the | ||
588 | Generic Port then say Y here, otherwise leave it as N in which | ||
589 | case the RST signal line is assumed to be connected to Port PB | ||
590 | (just like the SCL and SDA lines). | ||
591 | |||
592 | config ETRAX_DS1302_RSTBIT | ||
593 | int "DS1302 RST bit number" | ||
594 | depends on ETRAX_DS1302 | ||
595 | default "2" | ||
596 | help | ||
597 | This is the bit number for the RST signal line of the DS1302 RTC on | ||
598 | the selected port. If you have selected the generic port then it | ||
599 | should be bit 27, otherwise your best bet is bit 5. | ||
600 | |||
601 | config ETRAX_DS1302_SCLBIT | ||
602 | int "DS1302 SCL bit number" | ||
603 | depends on ETRAX_DS1302 | ||
604 | default "1" | ||
605 | help | ||
606 | This is the bit number for the SCL signal line of the DS1302 RTC on | ||
607 | Port PB. This is probably best left at 3. | ||
608 | |||
609 | config ETRAX_DS1302_SDABIT | ||
610 | int "DS1302 SDA bit number" | ||
611 | depends on ETRAX_DS1302 | ||
612 | default "0" | ||
613 | help | ||
614 | This is the bit number for the SDA signal line of the DS1302 RTC on | ||
615 | Port PB. This is probably best left at 2. | ||
616 | |||
617 | config ETRAX_DS1302_TRICKLE_CHARGE | ||
618 | int "DS1302 Trickle charger value" | ||
619 | depends on ETRAX_DS1302 | ||
620 | default "0" | ||
621 | help | ||
622 | This controls the initial value of the trickle charge register. | ||
623 | 0 = disabled (use this if you are unsure or have a non rechargeable battery) | ||
624 | Otherwise the following values can be OR:ed together to control the | ||
625 | charge current: | ||
626 | 1 = 2kohm, 2 = 4kohm, 3 = 4kohm | ||
627 | 4 = 1 diode, 8 = 2 diodes | ||
628 | Allowed values are (increasing current): 0, 11, 10, 9, 7, 6, 5 | ||
629 | |||
630 | endif | 560 | endif |
diff --git a/arch/cris/arch-v10/drivers/Makefile b/arch/cris/arch-v10/drivers/Makefile index 44bf2e88c26e..e5c13183b97c 100644 --- a/arch/cris/arch-v10/drivers/Makefile +++ b/arch/cris/arch-v10/drivers/Makefile | |||
@@ -6,7 +6,5 @@ obj-$(CONFIG_ETRAX_AXISFLASHMAP) += axisflashmap.o | |||
6 | obj-$(CONFIG_ETRAX_I2C) += i2c.o | 6 | obj-$(CONFIG_ETRAX_I2C) += i2c.o |
7 | obj-$(CONFIG_ETRAX_I2C_EEPROM) += eeprom.o | 7 | obj-$(CONFIG_ETRAX_I2C_EEPROM) += eeprom.o |
8 | obj-$(CONFIG_ETRAX_GPIO) += gpio.o | 8 | obj-$(CONFIG_ETRAX_GPIO) += gpio.o |
9 | obj-$(CONFIG_ETRAX_DS1302) += ds1302.o | ||
10 | obj-$(CONFIG_ETRAX_PCF8563) += pcf8563.o | ||
11 | obj-$(CONFIG_ETRAX_SYNCHRONOUS_SERIAL) += sync_serial.o | 9 | obj-$(CONFIG_ETRAX_SYNCHRONOUS_SERIAL) += sync_serial.o |
12 | 10 | ||
diff --git a/arch/cris/arch-v32/drivers/Kconfig b/arch/cris/arch-v32/drivers/Kconfig index 1d866d3ee2f8..6792503aaf79 100644 --- a/arch/cris/arch-v32/drivers/Kconfig +++ b/arch/cris/arch-v32/drivers/Kconfig | |||
@@ -19,64 +19,6 @@ config ETRAX_NO_PHY | |||
19 | switch. This option should normally be disabled. If enabled, | 19 | switch. This option should normally be disabled. If enabled, |
20 | speed and duplex will be locked to 100 Mbit and full duplex. | 20 | speed and duplex will be locked to 100 Mbit and full duplex. |
21 | 21 | ||
22 | config ETRAX_ETHERNET_IFACE0 | ||
23 | depends on ETRAX_ETHERNET | ||
24 | bool "Enable network interface 0" | ||
25 | |||
26 | config ETRAX_ETHERNET_IFACE1 | ||
27 | depends on (ETRAX_ETHERNET && ETRAXFS) | ||
28 | bool "Enable network interface 1 (uses DMA6 and DMA7)" | ||
29 | |||
30 | config ETRAX_ETHERNET_GBIT | ||
31 | depends on (ETRAX_ETHERNET && CRIS_MACH_ARTPEC3) | ||
32 | bool "Enable gigabit Ethernet support" | ||
33 | |||
34 | choice | ||
35 | prompt "Eth0 led group" | ||
36 | depends on ETRAX_ETHERNET_IFACE0 | ||
37 | default ETRAX_ETH0_USE_LEDGRP0 | ||
38 | |||
39 | config ETRAX_ETH0_USE_LEDGRP0 | ||
40 | bool "Use LED grp 0" | ||
41 | depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO | ||
42 | help | ||
43 | Use LED grp 0 for eth0 | ||
44 | |||
45 | config ETRAX_ETH0_USE_LEDGRP1 | ||
46 | bool "Use LED grp 1" | ||
47 | depends on ETRAX_NBR_LED_GRP_TWO | ||
48 | help | ||
49 | Use LED grp 1 for eth0 | ||
50 | |||
51 | config ETRAX_ETH0_USE_LEDGRPNULL | ||
52 | bool "Use no LEDs for eth0" | ||
53 | help | ||
54 | Use no LEDs for eth0 | ||
55 | endchoice | ||
56 | |||
57 | choice | ||
58 | prompt "Eth1 led group" | ||
59 | depends on ETRAX_ETHERNET_IFACE1 | ||
60 | default ETRAX_ETH1_USE_LEDGRP1 | ||
61 | |||
62 | config ETRAX_ETH1_USE_LEDGRP0 | ||
63 | bool "Use LED grp 0" | ||
64 | depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO | ||
65 | help | ||
66 | Use LED grp 0 for eth1 | ||
67 | |||
68 | config ETRAX_ETH1_USE_LEDGRP1 | ||
69 | bool "Use LED grp 1" | ||
70 | depends on ETRAX_NBR_LED_GRP_TWO | ||
71 | help | ||
72 | Use LED grp 1 for eth1 | ||
73 | |||
74 | config ETRAX_ETH1_USE_LEDGRPNULL | ||
75 | bool "Use no LEDs for eth1" | ||
76 | help | ||
77 | Use no LEDs for eth1 | ||
78 | endchoice | ||
79 | |||
80 | config ETRAXFS_SERIAL | 22 | config ETRAXFS_SERIAL |
81 | bool "Serial-port support" | 23 | bool "Serial-port support" |
82 | depends on ETRAX_ARCH_V32 | 24 | depends on ETRAX_ARCH_V32 |
@@ -108,261 +50,24 @@ config ETRAX_SERIAL_PORT0 | |||
108 | if you do not need DMA to something else. | 50 | if you do not need DMA to something else. |
109 | ser0 can use dma4 or dma6 for output and dma5 or dma7 for input. | 51 | ser0 can use dma4 or dma6 for output and dma5 or dma7 for input. |
110 | 52 | ||
111 | choice | ||
112 | prompt "Ser0 default port type " | ||
113 | depends on ETRAX_SERIAL_PORT0 | ||
114 | default ETRAX_SERIAL_PORT0_TYPE_232 | ||
115 | help | ||
116 | Type of serial port. | ||
117 | |||
118 | config ETRAX_SERIAL_PORT0_TYPE_232 | ||
119 | bool "Ser0 is a RS-232 port" | ||
120 | help | ||
121 | Configure serial port 0 to be a RS-232 port. | ||
122 | |||
123 | config ETRAX_SERIAL_PORT0_TYPE_485HD | ||
124 | bool "Ser0 is a half duplex RS-485 port" | ||
125 | depends on ETRAX_RS485 | ||
126 | help | ||
127 | Configure serial port 0 to be a half duplex (two wires) RS-485 port. | ||
128 | |||
129 | config ETRAX_SERIAL_PORT0_TYPE_485FD | ||
130 | bool "Ser0 is a full duplex RS-485 port" | ||
131 | depends on ETRAX_RS485 | ||
132 | help | ||
133 | Configure serial port 0 to be a full duplex (four wires) RS-485 port. | ||
134 | endchoice | ||
135 | |||
136 | config ETRAX_SER0_DTR_BIT | ||
137 | string "Ser 0 DTR bit (empty = not used)" | ||
138 | depends on ETRAX_SERIAL_PORT0 | ||
139 | |||
140 | config ETRAX_SER0_RI_BIT | ||
141 | string "Ser 0 RI bit (empty = not used)" | ||
142 | depends on ETRAX_SERIAL_PORT0 | ||
143 | |||
144 | config ETRAX_SER0_DSR_BIT | ||
145 | string "Ser 0 DSR bit (empty = not used)" | ||
146 | depends on ETRAX_SERIAL_PORT0 | ||
147 | |||
148 | config ETRAX_SER0_CD_BIT | ||
149 | string "Ser 0 CD bit (empty = not used)" | ||
150 | depends on ETRAX_SERIAL_PORT0 | ||
151 | |||
152 | config ETRAX_SERIAL_PORT1 | 53 | config ETRAX_SERIAL_PORT1 |
153 | bool "Serial port 1 enabled" | 54 | bool "Serial port 1 enabled" |
154 | depends on ETRAXFS_SERIAL | 55 | depends on ETRAXFS_SERIAL |
155 | help | 56 | help |
156 | Enables the ETRAX FS serial driver for ser1 (ttyS1). | 57 | Enables the ETRAX FS serial driver for ser1 (ttyS1). |
157 | 58 | ||
158 | choice | ||
159 | prompt "Ser1 default port type" | ||
160 | depends on ETRAX_SERIAL_PORT1 | ||
161 | default ETRAX_SERIAL_PORT1_TYPE_232 | ||
162 | help | ||
163 | Type of serial port. | ||
164 | |||
165 | config ETRAX_SERIAL_PORT1_TYPE_232 | ||
166 | bool "Ser1 is a RS-232 port" | ||
167 | help | ||
168 | Configure serial port 1 to be a RS-232 port. | ||
169 | |||
170 | config ETRAX_SERIAL_PORT1_TYPE_485HD | ||
171 | bool "Ser1 is a half duplex RS-485 port" | ||
172 | depends on ETRAX_RS485 | ||
173 | help | ||
174 | Configure serial port 1 to be a half duplex (two wires) RS-485 port. | ||
175 | |||
176 | config ETRAX_SERIAL_PORT1_TYPE_485FD | ||
177 | bool "Ser1 is a full duplex RS-485 port" | ||
178 | depends on ETRAX_RS485 | ||
179 | help | ||
180 | Configure serial port 1 to be a full duplex (four wires) RS-485 port. | ||
181 | endchoice | ||
182 | |||
183 | config ETRAX_SER1_DTR_BIT | ||
184 | string "Ser 1 DTR bit (empty = not used)" | ||
185 | depends on ETRAX_SERIAL_PORT1 | ||
186 | |||
187 | config ETRAX_SER1_RI_BIT | ||
188 | string "Ser 1 RI bit (empty = not used)" | ||
189 | depends on ETRAX_SERIAL_PORT1 | ||
190 | |||
191 | config ETRAX_SER1_DSR_BIT | ||
192 | string "Ser 1 DSR bit (empty = not used)" | ||
193 | depends on ETRAX_SERIAL_PORT1 | ||
194 | |||
195 | config ETRAX_SER1_CD_BIT | ||
196 | string "Ser 1 CD bit (empty = not used)" | ||
197 | depends on ETRAX_SERIAL_PORT1 | ||
198 | |||
199 | config ETRAX_SERIAL_PORT2 | 59 | config ETRAX_SERIAL_PORT2 |
200 | bool "Serial port 2 enabled" | 60 | bool "Serial port 2 enabled" |
201 | depends on ETRAXFS_SERIAL | 61 | depends on ETRAXFS_SERIAL |
202 | help | 62 | help |
203 | Enables the ETRAX FS serial driver for ser2 (ttyS2). | 63 | Enables the ETRAX FS serial driver for ser2 (ttyS2). |
204 | 64 | ||
205 | choice | ||
206 | prompt "Ser2 default port type" | ||
207 | depends on ETRAX_SERIAL_PORT2 | ||
208 | default ETRAX_SERIAL_PORT2_TYPE_232 | ||
209 | help | ||
210 | What DMA channel to use for ser2 | ||
211 | |||
212 | config ETRAX_SERIAL_PORT2_TYPE_232 | ||
213 | bool "Ser2 is a RS-232 port" | ||
214 | help | ||
215 | Configure serial port 2 to be a RS-232 port. | ||
216 | |||
217 | config ETRAX_SERIAL_PORT2_TYPE_485HD | ||
218 | bool "Ser2 is a half duplex RS-485 port" | ||
219 | depends on ETRAX_RS485 | ||
220 | help | ||
221 | Configure serial port 2 to be a half duplex (two wires) RS-485 port. | ||
222 | |||
223 | config ETRAX_SERIAL_PORT2_TYPE_485FD | ||
224 | bool "Ser2 is a full duplex RS-485 port" | ||
225 | depends on ETRAX_RS485 | ||
226 | help | ||
227 | Configure serial port 2 to be a full duplex (four wires) RS-485 port. | ||
228 | endchoice | ||
229 | |||
230 | |||
231 | config ETRAX_SER2_DTR_BIT | ||
232 | string "Ser 2 DTR bit (empty = not used)" | ||
233 | depends on ETRAX_SERIAL_PORT2 | ||
234 | |||
235 | config ETRAX_SER2_RI_BIT | ||
236 | string "Ser 2 RI bit (empty = not used)" | ||
237 | depends on ETRAX_SERIAL_PORT2 | ||
238 | |||
239 | config ETRAX_SER2_DSR_BIT | ||
240 | string "Ser 2 DSR bit (empty = not used)" | ||
241 | depends on ETRAX_SERIAL_PORT2 | ||
242 | |||
243 | config ETRAX_SER2_CD_BIT | ||
244 | string "Ser 2 CD bit (empty = not used)" | ||
245 | depends on ETRAX_SERIAL_PORT2 | ||
246 | |||
247 | config ETRAX_SERIAL_PORT3 | 65 | config ETRAX_SERIAL_PORT3 |
248 | bool "Serial port 3 enabled" | 66 | bool "Serial port 3 enabled" |
249 | depends on ETRAXFS_SERIAL | 67 | depends on ETRAXFS_SERIAL |
250 | help | 68 | help |
251 | Enables the ETRAX FS serial driver for ser3 (ttyS3). | 69 | Enables the ETRAX FS serial driver for ser3 (ttyS3). |
252 | 70 | ||
253 | choice | ||
254 | prompt "Ser3 default port type" | ||
255 | depends on ETRAX_SERIAL_PORT3 | ||
256 | default ETRAX_SERIAL_PORT3_TYPE_232 | ||
257 | help | ||
258 | What DMA channel to use for ser3. | ||
259 | |||
260 | config ETRAX_SERIAL_PORT3_TYPE_232 | ||
261 | bool "Ser3 is a RS-232 port" | ||
262 | help | ||
263 | Configure serial port 3 to be a RS-232 port. | ||
264 | |||
265 | config ETRAX_SERIAL_PORT3_TYPE_485HD | ||
266 | bool "Ser3 is a half duplex RS-485 port" | ||
267 | depends on ETRAX_RS485 | ||
268 | help | ||
269 | Configure serial port 3 to be a half duplex (two wires) RS-485 port. | ||
270 | |||
271 | config ETRAX_SERIAL_PORT3_TYPE_485FD | ||
272 | bool "Ser3 is a full duplex RS-485 port" | ||
273 | depends on ETRAX_RS485 | ||
274 | help | ||
275 | Configure serial port 3 to be a full duplex (four wires) RS-485 port. | ||
276 | endchoice | ||
277 | |||
278 | config ETRAX_SER3_DTR_BIT | ||
279 | string "Ser 3 DTR bit (empty = not used)" | ||
280 | depends on ETRAX_SERIAL_PORT3 | ||
281 | |||
282 | config ETRAX_SER3_RI_BIT | ||
283 | string "Ser 3 RI bit (empty = not used)" | ||
284 | depends on ETRAX_SERIAL_PORT3 | ||
285 | |||
286 | config ETRAX_SER3_DSR_BIT | ||
287 | string "Ser 3 DSR bit (empty = not used)" | ||
288 | depends on ETRAX_SERIAL_PORT3 | ||
289 | |||
290 | config ETRAX_SER3_CD_BIT | ||
291 | string "Ser 3 CD bit (empty = not used)" | ||
292 | depends on ETRAX_SERIAL_PORT3 | ||
293 | |||
294 | config ETRAX_SERIAL_PORT4 | ||
295 | bool "Serial port 4 enabled" | ||
296 | depends on ETRAXFS_SERIAL && CRIS_MACH_ARTPEC3 | ||
297 | help | ||
298 | Enables the ETRAX FS serial driver for ser4 (ttyS4). | ||
299 | |||
300 | choice | ||
301 | prompt "Ser4 default port type" | ||
302 | depends on ETRAX_SERIAL_PORT4 | ||
303 | default ETRAX_SERIAL_PORT4_TYPE_232 | ||
304 | help | ||
305 | What DMA channel to use for ser4. | ||
306 | |||
307 | config ETRAX_SERIAL_PORT4_TYPE_232 | ||
308 | bool "Ser4 is a RS-232 port" | ||
309 | help | ||
310 | Configure serial port 4 to be a RS-232 port. | ||
311 | |||
312 | config ETRAX_SERIAL_PORT4_TYPE_485HD | ||
313 | bool "Ser4 is a half duplex RS-485 port" | ||
314 | depends on ETRAX_RS485 | ||
315 | help | ||
316 | Configure serial port 4 to be a half duplex (two wires) RS-485 port. | ||
317 | |||
318 | config ETRAX_SERIAL_PORT4_TYPE_485FD | ||
319 | bool "Ser4 is a full duplex RS-485 port" | ||
320 | depends on ETRAX_RS485 | ||
321 | help | ||
322 | Configure serial port 4 to be a full duplex (four wires) RS-485 port. | ||
323 | endchoice | ||
324 | |||
325 | choice | ||
326 | prompt "Ser4 DMA in channel " | ||
327 | depends on ETRAX_SERIAL_PORT4 | ||
328 | default ETRAX_SERIAL_PORT4_NO_DMA_IN | ||
329 | help | ||
330 | What DMA channel to use for ser4. | ||
331 | |||
332 | |||
333 | config ETRAX_SERIAL_PORT4_NO_DMA_IN | ||
334 | bool "Ser4 uses no DMA for input" | ||
335 | help | ||
336 | Do not use DMA for ser4 input. | ||
337 | |||
338 | config ETRAX_SERIAL_PORT4_DMA9_IN | ||
339 | bool "Ser4 uses DMA9 for input" | ||
340 | depends on ETRAX_SERIAL_PORT4 | ||
341 | help | ||
342 | Enables the DMA9 input channel for ser4 (ttyS4). | ||
343 | If you do not enable DMA, an interrupt for each character will be | ||
344 | used when receiving data. | ||
345 | Normally you want to use DMA, unless you use the DMA channel for | ||
346 | something else. | ||
347 | |||
348 | endchoice | ||
349 | |||
350 | config ETRAX_SER4_DTR_BIT | ||
351 | string "Ser 4 DTR bit (empty = not used)" | ||
352 | depends on ETRAX_SERIAL_PORT4 | ||
353 | |||
354 | config ETRAX_SER4_RI_BIT | ||
355 | string "Ser 4 RI bit (empty = not used)" | ||
356 | depends on ETRAX_SERIAL_PORT4 | ||
357 | |||
358 | config ETRAX_SER4_DSR_BIT | ||
359 | string "Ser 4 DSR bit (empty = not used)" | ||
360 | depends on ETRAX_SERIAL_PORT4 | ||
361 | |||
362 | config ETRAX_SER4_CD_BIT | ||
363 | string "Ser 4 CD bit (empty = not used)" | ||
364 | depends on ETRAX_SERIAL_PORT4 | ||
365 | |||
366 | config ETRAX_SYNCHRONOUS_SERIAL | 71 | config ETRAX_SYNCHRONOUS_SERIAL |
367 | bool "Synchronous serial-port support" | 72 | bool "Synchronous serial-port support" |
368 | depends on ETRAX_ARCH_V32 | 73 | depends on ETRAX_ARCH_V32 |
@@ -703,32 +408,6 @@ config ETRAX_SPI_SSER0 | |||
703 | want to build it as a module, which will be named spi_crisv32_sser. | 408 | want to build it as a module, which will be named spi_crisv32_sser. |
704 | (You need to select MMC separately.) | 409 | (You need to select MMC separately.) |
705 | 410 | ||
706 | config ETRAX_SPI_SSER0_DMA | ||
707 | bool "DMA for SPI on sser0 enabled" | ||
708 | depends on ETRAX_SPI_SSER0 | ||
709 | depends on !ETRAX_SERIAL_PORT1_DMA4_OUT && !ETRAX_SERIAL_PORT1_DMA5_IN | ||
710 | default y | ||
711 | help | ||
712 | Say Y if using DMA (dma4/dma5) for SPI on synchronous serial port 0. | ||
713 | |||
714 | config ETRAX_SPI_MMC_CD_SSER0_PIN | ||
715 | string "MMC/SD card detect pin for SPI on sser0" | ||
716 | depends on ETRAX_SPI_SSER0 && MMC_SPI | ||
717 | default "pd11" | ||
718 | help | ||
719 | The pin to use for SD/MMC card detect. This pin should be pulled up | ||
720 | and grounded when a card is present. If defined as " " (space), no | ||
721 | pin is selected. A card must then always be inserted for proper | ||
722 | action. | ||
723 | |||
724 | config ETRAX_SPI_MMC_WP_SSER0_PIN | ||
725 | string "MMC/SD card write-protect pin for SPI on sser0" | ||
726 | depends on ETRAX_SPI_SSER0 && MMC_SPI | ||
727 | default "pd10" | ||
728 | help | ||
729 | The pin to use for the SD/MMC write-protect signal for a memory | ||
730 | card. If defined as " " (space), the card is considered writable. | ||
731 | |||
732 | config ETRAX_SPI_SSER1 | 411 | config ETRAX_SPI_SSER1 |
733 | tristate "SPI using synchronous serial port 1 (sser1)" | 412 | tristate "SPI using synchronous serial port 1 (sser1)" |
734 | depends on ETRAX_SPI_MMC | 413 | depends on ETRAX_SPI_MMC |
@@ -742,32 +421,6 @@ config ETRAX_SPI_SSER1 | |||
742 | want to build it as a module, which will be named spi_crisv32_sser. | 421 | want to build it as a module, which will be named spi_crisv32_sser. |
743 | (You need to select MMC separately.) | 422 | (You need to select MMC separately.) |
744 | 423 | ||
745 | config ETRAX_SPI_SSER1_DMA | ||
746 | bool "DMA for SPI on sser1 enabled" | ||
747 | depends on ETRAX_SPI_SSER1 && !ETRAX_ETHERNET_IFACE1 | ||
748 | depends on !ETRAX_SERIAL_PORT0_DMA6_OUT && !ETRAX_SERIAL_PORT0_DMA7_IN | ||
749 | default y | ||
750 | help | ||
751 | Say Y if using DMA (dma6/dma7) for SPI on synchronous serial port 1. | ||
752 | |||
753 | config ETRAX_SPI_MMC_CD_SSER1_PIN | ||
754 | string "MMC/SD card detect pin for SPI on sser1" | ||
755 | depends on ETRAX_SPI_SSER1 && MMC_SPI | ||
756 | default "pd12" | ||
757 | help | ||
758 | The pin to use for SD/MMC card detect. This pin should be pulled up | ||
759 | and grounded when a card is present. If defined as " " (space), no | ||
760 | pin is selected. A card must then always be inserted for proper | ||
761 | action. | ||
762 | |||
763 | config ETRAX_SPI_MMC_WP_SSER1_PIN | ||
764 | string "MMC/SD card write-protect pin for SPI on sser1" | ||
765 | depends on ETRAX_SPI_SSER1 && MMC_SPI | ||
766 | default "pd9" | ||
767 | help | ||
768 | The pin to use for the SD/MMC write-protect signal for a memory | ||
769 | card. If defined as " " (space), the card is considered writable. | ||
770 | |||
771 | config ETRAX_SPI_GPIO | 424 | config ETRAX_SPI_GPIO |
772 | tristate "Bitbanged SPI using gpio pins" | 425 | tristate "Bitbanged SPI using gpio pins" |
773 | depends on ETRAX_SPI_MMC | 426 | depends on ETRAX_SPI_MMC |
@@ -782,51 +435,4 @@ config ETRAX_SPI_GPIO | |||
782 | Say m to build it as a module, which will be called spi_crisv32_gpio. | 435 | Say m to build it as a module, which will be called spi_crisv32_gpio. |
783 | (You need to select MMC separately.) | 436 | (You need to select MMC separately.) |
784 | 437 | ||
785 | # The default match that of sser0, only because that's how it was tested. | ||
786 | config ETRAX_SPI_CS_PIN | ||
787 | string "SPI chip select pin" | ||
788 | depends on ETRAX_SPI_GPIO | ||
789 | default "pc3" | ||
790 | help | ||
791 | The pin to use for SPI chip select. | ||
792 | |||
793 | config ETRAX_SPI_CLK_PIN | ||
794 | string "SPI clock pin" | ||
795 | depends on ETRAX_SPI_GPIO | ||
796 | default "pc1" | ||
797 | help | ||
798 | The pin to use for the SPI clock. | ||
799 | |||
800 | config ETRAX_SPI_DATAIN_PIN | ||
801 | string "SPI MISO (data in) pin" | ||
802 | depends on ETRAX_SPI_GPIO | ||
803 | default "pc16" | ||
804 | help | ||
805 | The pin to use for SPI data in from the device. | ||
806 | |||
807 | config ETRAX_SPI_DATAOUT_PIN | ||
808 | string "SPI MOSI (data out) pin" | ||
809 | depends on ETRAX_SPI_GPIO | ||
810 | default "pc0" | ||
811 | help | ||
812 | The pin to use for SPI data out to the device. | ||
813 | |||
814 | config ETRAX_SPI_MMC_CD_GPIO_PIN | ||
815 | string "MMC/SD card detect pin for SPI using gpio (space for none)" | ||
816 | depends on ETRAX_SPI_GPIO && MMC_SPI | ||
817 | default "pd11" | ||
818 | help | ||
819 | The pin to use for SD/MMC card detect. This pin should be pulled up | ||
820 | and grounded when a card is present. If defined as " " (space), no | ||
821 | pin is selected. A card must then always be inserted for proper | ||
822 | action. | ||
823 | |||
824 | config ETRAX_SPI_MMC_WP_GPIO_PIN | ||
825 | string "MMC/SD card write-protect pin for SPI using gpio (space for none)" | ||
826 | depends on ETRAX_SPI_GPIO && MMC_SPI | ||
827 | default "pd10" | ||
828 | help | ||
829 | The pin to use for the SD/MMC write-protect signal for a memory | ||
830 | card. If defined as " " (space), the card is considered writable. | ||
831 | |||
832 | endif | 438 | endif |
diff --git a/arch/cris/arch-v32/mach-a3/Kconfig b/arch/cris/arch-v32/mach-a3/Kconfig index 7796aafc711e..87547271a595 100644 --- a/arch/cris/arch-v32/mach-a3/Kconfig +++ b/arch/cris/arch-v32/mach-a3/Kconfig | |||
@@ -15,10 +15,6 @@ config ETRAX_SERIAL_PORTS | |||
15 | int | 15 | int |
16 | default 5 | 16 | default 5 |
17 | 17 | ||
18 | config ETRAX_DDR | ||
19 | bool | ||
20 | default y | ||
21 | |||
22 | config ETRAX_DDR2_MRS | 18 | config ETRAX_DDR2_MRS |
23 | hex "DDR2 MRS" | 19 | hex "DDR2 MRS" |
24 | default "0" | 20 | default "0" |
diff --git a/arch/cris/include/asm/processor.h b/arch/cris/include/asm/processor.h index c0a29b96b92b..15b815df29c1 100644 --- a/arch/cris/include/asm/processor.h +++ b/arch/cris/include/asm/processor.h | |||
@@ -47,7 +47,6 @@ struct task_struct; | |||
47 | */ | 47 | */ |
48 | 48 | ||
49 | #define task_pt_regs(task) user_regs(task_thread_info(task)) | 49 | #define task_pt_regs(task) user_regs(task_thread_info(task)) |
50 | #define current_regs() task_pt_regs(current) | ||
51 | 50 | ||
52 | unsigned long get_wchan(struct task_struct *p); | 51 | unsigned long get_wchan(struct task_struct *p); |
53 | 52 | ||
diff --git a/arch/cris/include/uapi/asm/kvm_para.h b/arch/cris/include/uapi/asm/kvm_para.h new file mode 100644 index 000000000000..14fab8f0b957 --- /dev/null +++ b/arch/cris/include/uapi/asm/kvm_para.h | |||
@@ -0,0 +1 @@ | |||
#include <asm-generic/kvm_para.h> | |||