diff options
author | Mikael Starvik <mikael.starvik@axis.com> | 2005-07-27 14:44:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:25:59 -0400 |
commit | 3e41d6522a6922a95f9d953f4171b45b82b3d6f4 (patch) | |
tree | 61f406f442ec3db540322c802d06a67f8dbd8eb7 /arch/cris/arch-v10 | |
parent | cb09f540a1c5e6c5beb6e82f554d51a1f2c87e67 (diff) |
[PATCH] CRIS update: configuration and build
Changes to configuration and build system.
* Added v32 sub architecture.
* Use generic hard IRQ.
* Added SMP options.
* Added options to OOPS at NMI and reboot at OOM.
* Made it possible to set objtree.
* Added option to select Kernel GDB serial port.
* Corrected Kconfig usage.
* Added system profiler.
Signed-off-by: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/cris/arch-v10')
-rw-r--r-- | arch/cris/arch-v10/Kconfig | 31 | ||||
-rw-r--r-- | arch/cris/arch-v10/boot/Makefile | 9 | ||||
-rw-r--r-- | arch/cris/arch-v10/boot/compressed/Makefile | 43 | ||||
-rw-r--r-- | arch/cris/arch-v10/boot/rescue/Makefile | 45 | ||||
-rw-r--r-- | arch/cris/arch-v10/drivers/Kconfig | 250 |
5 files changed, 150 insertions, 228 deletions
diff --git a/arch/cris/arch-v10/Kconfig b/arch/cris/arch-v10/Kconfig index 2ca64cc40c63..44eb1b9accb3 100644 --- a/arch/cris/arch-v10/Kconfig +++ b/arch/cris/arch-v10/Kconfig | |||
@@ -260,6 +260,37 @@ config ETRAX_DEBUG_PORT_NULL | |||
260 | endchoice | 260 | endchoice |
261 | 261 | ||
262 | choice | 262 | choice |
263 | prompt "Kernel GDB port" | ||
264 | depends on ETRAX_KGDB | ||
265 | default ETRAX_KGDB_PORT0 | ||
266 | help | ||
267 | Choose a serial port for kernel debugging. NOTE: This port should | ||
268 | not be enabled under Drivers for built-in interfaces (as it has its | ||
269 | own initialization code) and should not be the same as the debug port. | ||
270 | |||
271 | config ETRAX_KGDB_PORT0 | ||
272 | bool "Serial-0" | ||
273 | help | ||
274 | Use serial port 0 for kernel debugging. | ||
275 | |||
276 | config ETRAX_KGDB_PORT1 | ||
277 | bool "Serial-1" | ||
278 | help | ||
279 | Use serial port 1 for kernel debugging. | ||
280 | |||
281 | config ETRAX_KGDB_PORT2 | ||
282 | bool "Serial-2" | ||
283 | help | ||
284 | Use serial port 2 for kernel debugging. | ||
285 | |||
286 | config ETRAX_KGDB_PORT3 | ||
287 | bool "Serial-3" | ||
288 | help | ||
289 | Use serial port 3 for kernel debugging. | ||
290 | |||
291 | endchoice | ||
292 | |||
293 | choice | ||
263 | prompt "Product rescue-port" | 294 | prompt "Product rescue-port" |
264 | depends on ETRAX_ARCH_V10 | 295 | depends on ETRAX_ARCH_V10 |
265 | default ETRAX_RESCUE_SER0 | 296 | default ETRAX_RESCUE_SER0 |
diff --git a/arch/cris/arch-v10/boot/Makefile b/arch/cris/arch-v10/boot/Makefile index fe6650368e6a..e5b105851108 100644 --- a/arch/cris/arch-v10/boot/Makefile +++ b/arch/cris/arch-v10/boot/Makefile | |||
@@ -1,12 +1,13 @@ | |||
1 | # | 1 | # |
2 | # arch/cris/boot/Makefile | 2 | # arch/cris/boot/Makefile |
3 | # | 3 | # |
4 | target = $(target_boot_dir) | ||
5 | src = $(src_boot_dir) | ||
4 | 6 | ||
5 | zImage: compressed/vmlinuz | 7 | zImage: compressed/vmlinuz |
6 | 8 | ||
7 | compressed/vmlinuz: $(TOPDIR)/vmlinux | 9 | compressed/vmlinuz: |
8 | @$(MAKE) -C compressed vmlinuz | 10 | @$(MAKE) -f $(src)/compressed/Makefile $(target_compressed_dir)/vmlinuz |
9 | 11 | ||
10 | clean: | 12 | clean: |
11 | rm -f zImage tools/build compressed/vmlinux.out | 13 | @$(MAKE) -f $(src)/compressed/Makefile clean |
12 | @$(MAKE) -C compressed clean | ||
diff --git a/arch/cris/arch-v10/boot/compressed/Makefile b/arch/cris/arch-v10/boot/compressed/Makefile index 5f71c2c819e6..6584a44820f4 100644 --- a/arch/cris/arch-v10/boot/compressed/Makefile +++ b/arch/cris/arch-v10/boot/compressed/Makefile | |||
@@ -1,40 +1,45 @@ | |||
1 | # | 1 | # |
2 | # linux/arch/etrax100/boot/compressed/Makefile | 2 | # create a compressed vmlinuz image from the binary vmlinux.bin file |
3 | # | ||
4 | # create a compressed vmlinux image from the original vmlinux files and romfs | ||
5 | # | 3 | # |
4 | target = $(target_compressed_dir) | ||
5 | src = $(src_compressed_dir) | ||
6 | 6 | ||
7 | CC = gcc-cris -melf -I $(TOPDIR)/include | 7 | CC = gcc-cris -melf $(LINUXINCLUDE) |
8 | CFLAGS = -O2 | 8 | CFLAGS = -O2 |
9 | LD = ld-cris | 9 | LD = ld-cris |
10 | OBJCOPY = objcopy-cris | 10 | OBJCOPY = objcopy-cris |
11 | OBJCOPYFLAGS = -O binary --remove-section=.bss | 11 | OBJCOPYFLAGS = -O binary --remove-section=.bss |
12 | OBJECTS = head.o misc.o | 12 | OBJECTS = $(target)/head.o $(target)/misc.o |
13 | 13 | ||
14 | # files to compress | 14 | # files to compress |
15 | SYSTEM = $(TOPDIR)/vmlinux.bin | 15 | SYSTEM = $(objtree)/vmlinux.bin |
16 | 16 | ||
17 | all: vmlinuz | 17 | all: $(target_compressed_dir)/vmlinuz |
18 | 18 | ||
19 | decompress.bin: $(OBJECTS) | 19 | $(target)/decompress.bin: $(OBJECTS) |
20 | $(LD) -T decompress.ld -o decompress.o $(OBJECTS) | 20 | $(LD) -T $(src)/decompress.ld -o $(target)/decompress.o $(OBJECTS) |
21 | $(OBJCOPY) $(OBJCOPYFLAGS) decompress.o decompress.bin | 21 | $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/decompress.o $(target)/decompress.bin |
22 | # save it for mkprod in the topdir. | ||
23 | cp decompress.bin $(TOPDIR) | ||
24 | 22 | ||
23 | # Create vmlinuz image in top-level build directory | ||
24 | $(target_compressed_dir)/vmlinuz: $(target) piggy.img $(target)/decompress.bin | ||
25 | @echo " COMPR vmlinux.bin --> vmlinuz" | ||
26 | @cat $(target)/decompress.bin piggy.img > $(target_compressed_dir)/vmlinuz | ||
27 | @rm -f piggy.img | ||
25 | 28 | ||
26 | vmlinuz: piggy.img decompress.bin | 29 | $(target)/head.o: $(src)/head.S |
27 | cat decompress.bin piggy.img > vmlinuz | 30 | $(CC) -D__ASSEMBLY__ -traditional -c $< -o $@ |
28 | rm -f piggy.img | ||
29 | 31 | ||
30 | head.o: head.S | 32 | $(target)/misc.o: $(src)/misc.c |
31 | $(CC) -D__ASSEMBLY__ -traditional -c head.S -o head.o | 33 | $(CC) -D__KERNEL__ -c $< -o $@ |
32 | 34 | ||
33 | # gzip the kernel image | 35 | # gzip the kernel image |
34 | 36 | ||
35 | piggy.img: $(SYSTEM) | 37 | piggy.img: $(SYSTEM) |
36 | cat $(SYSTEM) | gzip -f -9 > piggy.img | 38 | @cat $(SYSTEM) | gzip -f -9 > piggy.img |
39 | |||
40 | $(target): | ||
41 | mkdir -p $(target) | ||
37 | 42 | ||
38 | clean: | 43 | clean: |
39 | rm -f piggy.img vmlinuz vmlinuz.o | 44 | rm -f piggy.img $(objtree)/vmlinuz |
40 | 45 | ||
diff --git a/arch/cris/arch-v10/boot/rescue/Makefile b/arch/cris/arch-v10/boot/rescue/Makefile index e9f2ba2ad02c..8be9b3130312 100644 --- a/arch/cris/arch-v10/boot/rescue/Makefile +++ b/arch/cris/arch-v10/boot/rescue/Makefile | |||
@@ -1,52 +1,53 @@ | |||
1 | # | 1 | # |
2 | # Makefile for rescue code | 2 | # Makefile for rescue code |
3 | # | 3 | # |
4 | ifndef TOPDIR | 4 | target = $(target_rescue_dir) |
5 | TOPDIR = ../../../.. | 5 | src = $(src_rescue_dir) |
6 | endif | 6 | |
7 | CC = gcc-cris -mlinux -I $(TOPDIR)/include | 7 | CC = gcc-cris -mlinux $(LINUXINCLUDE) |
8 | CFLAGS = -O2 | 8 | CFLAGS = -O2 |
9 | LD = gcc-cris -mlinux -nostdlib | 9 | LD = gcc-cris -mlinux -nostdlib |
10 | OBJCOPY = objcopy-cris | 10 | OBJCOPY = objcopy-cris |
11 | OBJCOPYFLAGS = -O binary --remove-section=.bss | 11 | OBJCOPYFLAGS = -O binary --remove-section=.bss |
12 | 12 | ||
13 | all: rescue.bin testrescue.bin kimagerescue.bin | 13 | all: $(target)/rescue.bin $(target)/testrescue.bin $(target)/kimagerescue.bin |
14 | |||
15 | rescue: rescue.bin | ||
16 | # do nothing | ||
17 | 14 | ||
18 | rescue.bin: head.o | 15 | $(target)/rescue.bin: $(target) $(target)/head.o |
19 | $(LD) -T rescue.ld -o rescue.o head.o | 16 | $(LD) -T $(src)/rescue.ld -o $(target)/rescue.o $(target)/head.o |
20 | $(OBJCOPY) $(OBJCOPYFLAGS) rescue.o rescue.bin | 17 | $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/rescue.o $(target)/rescue.bin |
21 | cp rescue.bin $(TOPDIR) | 18 | # Place a copy in top-level build directory |
19 | cp -p $(target)/rescue.bin $(objtree) | ||
22 | 20 | ||
23 | testrescue.bin: testrescue.o | 21 | $(target)/testrescue.bin: $(target) $(target)/testrescue.o |
24 | $(OBJCOPY) $(OBJCOPYFLAGS) testrescue.o tr.bin | 22 | $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/testrescue.o tr.bin |
25 | # Pad it to 784 bytes | 23 | # Pad it to 784 bytes |
26 | dd if=/dev/zero of=tmp2423 bs=1 count=784 | 24 | dd if=/dev/zero of=tmp2423 bs=1 count=784 |
27 | cat tr.bin tmp2423 >testrescue_tmp.bin | 25 | cat tr.bin tmp2423 >testrescue_tmp.bin |
28 | dd if=testrescue_tmp.bin of=testrescue.bin bs=1 count=784 | 26 | dd if=testrescue_tmp.bin of=$(target)/testrescue.bin bs=1 count=784 |
29 | rm tr.bin tmp2423 testrescue_tmp.bin | 27 | rm tr.bin tmp2423 testrescue_tmp.bin |
30 | 28 | ||
31 | kimagerescue.bin: kimagerescue.o | 29 | $(target)/kimagerescue.bin: $(target) $(target)/kimagerescue.o |
32 | $(OBJCOPY) $(OBJCOPYFLAGS) kimagerescue.o ktr.bin | 30 | $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/kimagerescue.o ktr.bin |
33 | # Pad it to 784 bytes, that's what the rescue loader expects | 31 | # Pad it to 784 bytes, that's what the rescue loader expects |
34 | dd if=/dev/zero of=tmp2423 bs=1 count=784 | 32 | dd if=/dev/zero of=tmp2423 bs=1 count=784 |
35 | cat ktr.bin tmp2423 >kimagerescue_tmp.bin | 33 | cat ktr.bin tmp2423 >kimagerescue_tmp.bin |
36 | dd if=kimagerescue_tmp.bin of=kimagerescue.bin bs=1 count=784 | 34 | dd if=kimagerescue_tmp.bin of=$(target)/kimagerescue.bin bs=1 count=784 |
37 | rm ktr.bin tmp2423 kimagerescue_tmp.bin | 35 | rm ktr.bin tmp2423 kimagerescue_tmp.bin |
38 | 36 | ||
39 | head.o: head.S | 37 | $(target): |
38 | mkdir -p $(target) | ||
39 | |||
40 | $(target)/head.o: $(src)/head.S | ||
40 | $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o | 41 | $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o |
41 | 42 | ||
42 | testrescue.o: testrescue.S | 43 | $(target)/testrescue.o: $(src)/testrescue.S |
43 | $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o | 44 | $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o |
44 | 45 | ||
45 | kimagerescue.o: kimagerescue.S | 46 | $(target)/kimagerescue.o: $(src)/kimagerescue.S |
46 | $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o | 47 | $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o |
47 | 48 | ||
48 | clean: | 49 | clean: |
49 | rm -f *.o *.bin | 50 | rm -f $(target)/*.o $(target)/*.bin |
50 | 51 | ||
51 | fastdep: | 52 | fastdep: |
52 | 53 | ||
diff --git a/arch/cris/arch-v10/drivers/Kconfig b/arch/cris/arch-v10/drivers/Kconfig index 748374f25b87..8b50e8402954 100644 --- a/arch/cris/arch-v10/drivers/Kconfig +++ b/arch/cris/arch-v10/drivers/Kconfig | |||
@@ -1,17 +1,11 @@ | |||
1 | config ETRAX_ETHERNET | 1 | config ETRAX_ETHERNET |
2 | bool "Ethernet support" | 2 | bool "Ethernet support" |
3 | depends on ETRAX_ARCH_V10 | 3 | depends on ETRAX_ARCH_V10 |
4 | select NET_ETHERNET | ||
4 | help | 5 | help |
5 | This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet | 6 | This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet |
6 | controller. | 7 | controller. |
7 | 8 | ||
8 | # this is just so that the user does not have to go into the | ||
9 | # normal ethernet driver section just to enable ethernetworking | ||
10 | config NET_ETHERNET | ||
11 | bool | ||
12 | depends on ETRAX_ETHERNET | ||
13 | default y | ||
14 | |||
15 | choice | 9 | choice |
16 | prompt "Network LED behavior" | 10 | prompt "Network LED behavior" |
17 | depends on ETRAX_ETHERNET | 11 | depends on ETRAX_ETHERNET |
@@ -20,26 +14,26 @@ choice | |||
20 | config ETRAX_NETWORK_LED_ON_WHEN_LINK | 14 | config ETRAX_NETWORK_LED_ON_WHEN_LINK |
21 | bool "LED_on_when_link" | 15 | bool "LED_on_when_link" |
22 | help | 16 | help |
23 | Selecting LED_on_when_link will light the LED when there is a | 17 | Selecting LED_on_when_link will light the LED when there is a |
24 | connection and will flash off when there is activity. | 18 | connection and will flash off when there is activity. |
25 | 19 | ||
26 | Selecting LED_on_when_activity will light the LED only when | 20 | Selecting LED_on_when_activity will light the LED only when |
27 | there is activity. | 21 | there is activity. |
28 | 22 | ||
29 | This setting will also affect the behaviour of other activity LEDs | 23 | This setting will also affect the behaviour of other activity LEDs |
30 | e.g. Bluetooth. | 24 | e.g. Bluetooth. |
31 | 25 | ||
32 | config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY | 26 | config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY |
33 | bool "LED_on_when_activity" | 27 | bool "LED_on_when_activity" |
34 | help | 28 | help |
35 | Selecting LED_on_when_link will light the LED when there is a | 29 | Selecting LED_on_when_link will light the LED when there is a |
36 | connection and will flash off when there is activity. | 30 | connection and will flash off when there is activity. |
37 | 31 | ||
38 | Selecting LED_on_when_activity will light the LED only when | 32 | Selecting LED_on_when_activity will light the LED only when |
39 | there is activity. | 33 | there is activity. |
40 | 34 | ||
41 | This setting will also affect the behaviour of other activity LEDs | 35 | This setting will also affect the behaviour of other activity LEDs |
42 | e.g. Bluetooth. | 36 | e.g. Bluetooth. |
43 | 37 | ||
44 | endchoice | 38 | endchoice |
45 | 39 | ||
@@ -91,11 +85,11 @@ choice | |||
91 | depends on ETRAX_SERIAL_PORT0 | 85 | depends on ETRAX_SERIAL_PORT0 |
92 | default ETRAX_SERIAL_PORT0_DMA6_OUT | 86 | default ETRAX_SERIAL_PORT0_DMA6_OUT |
93 | 87 | ||
94 | config CONFIG_ETRAX_SERIAL_PORT0_NO_DMA_OUT | 88 | config ETRAX_SERIAL_PORT0_NO_DMA_OUT |
95 | bool "No DMA out" | 89 | bool "No DMA out" |
96 | 90 | ||
97 | config CONFIG_ETRAX_SERIAL_PORT0_DMA6_OUT | 91 | config ETRAX_SERIAL_PORT0_DMA6_OUT |
98 | bool "DMA 6" | 92 | bool "DMA 6" |
99 | 93 | ||
100 | endchoice | 94 | endchoice |
101 | 95 | ||
@@ -104,11 +98,11 @@ choice | |||
104 | depends on ETRAX_SERIAL_PORT0 | 98 | depends on ETRAX_SERIAL_PORT0 |
105 | default ETRAX_SERIAL_PORT0_DMA7_IN | 99 | default ETRAX_SERIAL_PORT0_DMA7_IN |
106 | 100 | ||
107 | config CONFIG_ETRAX_SERIAL_PORT0_NO_DMA_IN | 101 | config ETRAX_SERIAL_PORT0_NO_DMA_IN |
108 | bool "No DMA in" | 102 | bool "No DMA in" |
109 | 103 | ||
110 | config CONFIG_ETRAX_SERIAL_PORT0_DMA7_IN | 104 | config ETRAX_SERIAL_PORT0_DMA7_IN |
111 | bool "DMA 7" | 105 | bool "DMA 7" |
112 | 106 | ||
113 | endchoice | 107 | endchoice |
114 | 108 | ||
@@ -205,11 +199,11 @@ choice | |||
205 | depends on ETRAX_SERIAL_PORT1 | 199 | depends on ETRAX_SERIAL_PORT1 |
206 | default ETRAX_SERIAL_PORT1_DMA8_OUT | 200 | default ETRAX_SERIAL_PORT1_DMA8_OUT |
207 | 201 | ||
208 | config CONFIG_ETRAX_SERIAL_PORT1_NO_DMA_OUT | 202 | config ETRAX_SERIAL_PORT1_NO_DMA_OUT |
209 | bool "No DMA out" | 203 | bool "No DMA out" |
210 | 204 | ||
211 | config CONFIG_ETRAX_SERIAL_PORT1_DMA8_OUT | 205 | config ETRAX_SERIAL_PORT1_DMA8_OUT |
212 | bool "DMA 8" | 206 | bool "DMA 8" |
213 | 207 | ||
214 | endchoice | 208 | endchoice |
215 | 209 | ||
@@ -218,11 +212,11 @@ choice | |||
218 | depends on ETRAX_SERIAL_PORT1 | 212 | depends on ETRAX_SERIAL_PORT1 |
219 | default ETRAX_SERIAL_PORT1_DMA9_IN | 213 | default ETRAX_SERIAL_PORT1_DMA9_IN |
220 | 214 | ||
221 | config CONFIG_ETRAX_SERIAL_PORT1_NO_DMA_IN | 215 | config ETRAX_SERIAL_PORT1_NO_DMA_IN |
222 | bool "No DMA in" | 216 | bool "No DMA in" |
223 | 217 | ||
224 | config CONFIG_ETRAX_SERIAL_PORT1_DMA9_IN | 218 | config ETRAX_SERIAL_PORT1_DMA9_IN |
225 | bool "DMA 9" | 219 | bool "DMA 9" |
226 | 220 | ||
227 | endchoice | 221 | endchoice |
228 | 222 | ||
@@ -308,7 +302,7 @@ config ETRAX_SER1_CD_ON_PB_BIT | |||
308 | Specify the pin of the PB port to carry the CD signal for serial | 302 | Specify the pin of the PB port to carry the CD signal for serial |
309 | port 1. | 303 | port 1. |
310 | 304 | ||
311 | comment "Make sure you dont have the same PB bits more than once!" | 305 | comment "Make sure you do not have the same PB bits more than once!" |
312 | depends on ETRAX_SERIAL && ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && ETRAX_SER1_DTR_RI_DSR_CD_ON_PB | 306 | depends on ETRAX_SERIAL && ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && ETRAX_SER1_DTR_RI_DSR_CD_ON_PB |
313 | 307 | ||
314 | config ETRAX_SERIAL_PORT2 | 308 | config ETRAX_SERIAL_PORT2 |
@@ -322,11 +316,11 @@ choice | |||
322 | depends on ETRAX_SERIAL_PORT2 | 316 | depends on ETRAX_SERIAL_PORT2 |
323 | default ETRAX_SERIAL_PORT2_DMA2_OUT | 317 | default ETRAX_SERIAL_PORT2_DMA2_OUT |
324 | 318 | ||
325 | config CONFIG_ETRAX_SERIAL_PORT2_NO_DMA_OUT | 319 | config ETRAX_SERIAL_PORT2_NO_DMA_OUT |
326 | bool "No DMA out" | 320 | bool "No DMA out" |
327 | 321 | ||
328 | config CONFIG_ETRAX_SERIAL_PORT2_DMA2_OUT | 322 | config ETRAX_SERIAL_PORT2_DMA2_OUT |
329 | bool "DMA 2" | 323 | bool "DMA 2" |
330 | 324 | ||
331 | endchoice | 325 | endchoice |
332 | 326 | ||
@@ -335,11 +329,11 @@ choice | |||
335 | depends on ETRAX_SERIAL_PORT2 | 329 | depends on ETRAX_SERIAL_PORT2 |
336 | default ETRAX_SERIAL_PORT2_DMA3_IN | 330 | default ETRAX_SERIAL_PORT2_DMA3_IN |
337 | 331 | ||
338 | config CONFIG_ETRAX_SERIAL_PORT2_NO_DMA_IN | 332 | config ETRAX_SERIAL_PORT2_NO_DMA_IN |
339 | bool "No DMA in" | 333 | bool "No DMA in" |
340 | 334 | ||
341 | config CONFIG_ETRAX_SERIAL_PORT2_DMA3_IN | 335 | config ETRAX_SERIAL_PORT2_DMA3_IN |
342 | bool "DMA 3" | 336 | bool "DMA 3" |
343 | 337 | ||
344 | endchoice | 338 | endchoice |
345 | 339 | ||
@@ -436,11 +430,11 @@ choice | |||
436 | depends on ETRAX_SERIAL_PORT3 | 430 | depends on ETRAX_SERIAL_PORT3 |
437 | default ETRAX_SERIAL_PORT3_DMA4_OUT | 431 | default ETRAX_SERIAL_PORT3_DMA4_OUT |
438 | 432 | ||
439 | config CONFIG_ETRAX_SERIAL_PORT3_NO_DMA_OUT | 433 | config ETRAX_SERIAL_PORT3_NO_DMA_OUT |
440 | bool "No DMA out" | 434 | bool "No DMA out" |
441 | 435 | ||
442 | config CONFIG_ETRAX_SERIAL_PORT3_DMA4_OUT | 436 | config ETRAX_SERIAL_PORT3_DMA4_OUT |
443 | bool "DMA 4" | 437 | bool "DMA 4" |
444 | 438 | ||
445 | endchoice | 439 | endchoice |
446 | 440 | ||
@@ -449,11 +443,11 @@ choice | |||
449 | depends on ETRAX_SERIAL_PORT3 | 443 | depends on ETRAX_SERIAL_PORT3 |
450 | default ETRAX_SERIAL_PORT3_DMA5_IN | 444 | default ETRAX_SERIAL_PORT3_DMA5_IN |
451 | 445 | ||
452 | config CONFIG_ETRAX_SERIAL_PORT3_NO_DMA_IN | 446 | config ETRAX_SERIAL_PORT3_NO_DMA_IN |
453 | bool "No DMA in" | 447 | bool "No DMA in" |
454 | 448 | ||
455 | config CONFIG_ETRAX_SERIAL_PORT3_DMA5_IN | 449 | config ETRAX_SERIAL_PORT3_DMA5_IN |
456 | bool "DMA 5" | 450 | bool "DMA 5" |
457 | 451 | ||
458 | endchoice | 452 | endchoice |
459 | 453 | ||
@@ -554,7 +548,6 @@ config ETRAX_IDE | |||
554 | select BLK_DEV_IDEDISK | 548 | select BLK_DEV_IDEDISK |
555 | select BLK_DEV_IDECD | 549 | select BLK_DEV_IDECD |
556 | select BLK_DEV_IDEDMA | 550 | select BLK_DEV_IDEDMA |
557 | select DMA_NONPCI | ||
558 | help | 551 | help |
559 | Enable this to get support for ATA/IDE. | 552 | Enable this to get support for ATA/IDE. |
560 | You can't use paralell ports or SCSI ports | 553 | You can't use paralell ports or SCSI ports |
@@ -579,7 +572,7 @@ config ETRAX_IDE_PB7_RESET | |||
579 | IDE reset on pin 7 on port B | 572 | IDE reset on pin 7 on port B |
580 | 573 | ||
581 | config ETRAX_IDE_G27_RESET | 574 | config ETRAX_IDE_G27_RESET |
582 | bool "Port_G_Bit_27" | 575 | bool "Port_G_Bit_27" |
583 | help | 576 | help |
584 | IDE reset on pin 27 on port G | 577 | IDE reset on pin 27 on port G |
585 | 578 | ||
@@ -588,30 +581,36 @@ endchoice | |||
588 | 581 | ||
589 | config ETRAX_USB_HOST | 582 | config ETRAX_USB_HOST |
590 | bool "USB host" | 583 | bool "USB host" |
584 | select USB | ||
591 | help | 585 | help |
592 | This option enables the host functionality of the ETRAX 100LX | 586 | This option enables the host functionality of the ETRAX 100LX |
593 | built-in USB controller. In host mode the controller is designed | 587 | built-in USB controller. In host mode the controller is designed |
594 | for CTRL and BULK traffic only, INTR traffic may work as well | 588 | for CTRL and BULK traffic only, INTR traffic may work as well |
595 | however (depending on the requirements of timeliness). | 589 | however (depending on the requirements of timeliness). |
596 | 590 | ||
597 | config USB | ||
598 | tristate | ||
599 | depends on ETRAX_USB_HOST | ||
600 | default y | ||
601 | |||
602 | config ETRAX_USB_HOST_PORT1 | 591 | config ETRAX_USB_HOST_PORT1 |
603 | bool " USB port 1 enabled" | 592 | bool "USB port 1 enabled" |
604 | depends on ETRAX_USB_HOST | 593 | depends on ETRAX_USB_HOST |
605 | default n | 594 | default n |
606 | 595 | ||
607 | config ETRAX_USB_HOST_PORT2 | 596 | config ETRAX_USB_HOST_PORT2 |
608 | bool " USB port 2 enabled" | 597 | bool "USB port 2 enabled" |
609 | depends on ETRAX_USB_HOST | 598 | depends on ETRAX_USB_HOST |
610 | default n | 599 | default n |
611 | 600 | ||
612 | config ETRAX_AXISFLASHMAP | 601 | config ETRAX_AXISFLASHMAP |
613 | bool "Axis flash-map support" | 602 | bool "Axis flash-map support" |
614 | depends on ETRAX_ARCH_V10 | 603 | depends on ETRAX_ARCH_V10 |
604 | select MTD | ||
605 | select MTD_CFI | ||
606 | select MTD_CFI_AMDSTD | ||
607 | select MTD_OBSOLETE_CHIPS | ||
608 | select MTD_AMDSTD | ||
609 | select MTD_CHAR | ||
610 | select MTD_BLOCK | ||
611 | select MTD_PARTITIONS | ||
612 | select MTD_CONCAT | ||
613 | select MTD_COMPLEX_MAPPINGS | ||
615 | help | 614 | help |
616 | This option enables MTD mapping of flash devices. Needed to use | 615 | This option enables MTD mapping of flash devices. Needed to use |
617 | flash memories. If unsure, say Y. | 616 | flash memories. If unsure, say Y. |
@@ -627,119 +626,6 @@ config ETRAX_PTABLE_SECTOR | |||
627 | for changing this is when the flash block size is bigger | 626 | for changing this is when the flash block size is bigger |
628 | than 64kB (e.g. when using two parallel 16 bit flashes). | 627 | than 64kB (e.g. when using two parallel 16 bit flashes). |
629 | 628 | ||
630 | # here we define the CONFIG_'s necessary to enable MTD support | ||
631 | # for the flash | ||
632 | config MTD | ||
633 | tristate | ||
634 | depends on ETRAX_AXISFLASHMAP | ||
635 | default y | ||
636 | help | ||
637 | Memory Technology Devices are flash, RAM and similar chips, often | ||
638 | used for solid state file systems on embedded devices. This option | ||
639 | will provide the generic support for MTD drivers to register | ||
640 | themselves with the kernel and for potential users of MTD devices | ||
641 | to enumerate the devices which are present and obtain a handle on | ||
642 | them. It will also allow you to select individual drivers for | ||
643 | particular hardware and users of MTD devices. If unsure, say N. | ||
644 | |||
645 | config MTD_CFI | ||
646 | tristate | ||
647 | depends on ETRAX_AXISFLASHMAP | ||
648 | default y | ||
649 | help | ||
650 | The Common Flash Interface specification was developed by Intel, | ||
651 | AMD and other flash manufactures that provides a universal method | ||
652 | for probing the capabilities of flash devices. If you wish to | ||
653 | support any device that is CFI-compliant, you need to enable this | ||
654 | option. Visit <http://www.amd.com/products/nvd/overview/cfi.html> | ||
655 | for more information on CFI. | ||
656 | |||
657 | config MTD_CFI_AMDSTD | ||
658 | tristate | ||
659 | depends on ETRAX_AXISFLASHMAP | ||
660 | default y | ||
661 | help | ||
662 | The Common Flash Interface defines a number of different command | ||
663 | sets which a CFI-compliant chip may claim to implement. This code | ||
664 | provides support for one of those command sets, used on chips | ||
665 | chips including the AMD Am29LV320. | ||
666 | |||
667 | config MTD_OBSOLETE_CHIPS | ||
668 | bool | ||
669 | depends on ETRAX_AXISFLASHMAP | ||
670 | default y | ||
671 | help | ||
672 | This option does not enable any code directly, but will allow you to | ||
673 | select some other chip drivers which are now considered obsolete, | ||
674 | because the generic CONFIG_JEDEC_PROBE code above should now detect | ||
675 | the chips which are supported by these drivers, and allow the generic | ||
676 | CFI-compatible drivers to drive the chips. Say 'N' here unless you have | ||
677 | already tried the CONFIG_JEDEC_PROBE method and reported its failure | ||
678 | to the MTD mailing list at <linux-mtd@lists.infradead.org> | ||
679 | |||
680 | config MTD_AMDSTD | ||
681 | tristate | ||
682 | depends on ETRAX_AXISFLASHMAP | ||
683 | default y | ||
684 | help | ||
685 | This option enables support for flash chips using AMD-compatible | ||
686 | commands, including some which are not CFI-compatible and hence | ||
687 | cannot be used with the CONFIG_MTD_CFI_AMDSTD option. | ||
688 | |||
689 | It also works on AMD compatible chips that do conform to CFI. | ||
690 | |||
691 | config MTD_CHAR | ||
692 | tristate | ||
693 | depends on ETRAX_AXISFLASHMAP | ||
694 | default y | ||
695 | help | ||
696 | This provides a character device for each MTD device present in | ||
697 | the system, allowing the user to read and write directly to the | ||
698 | memory chips, and also use ioctl() to obtain information about | ||
699 | the device, or to erase parts of it. | ||
700 | |||
701 | config MTD_BLOCK | ||
702 | tristate | ||
703 | depends on ETRAX_AXISFLASHMAP | ||
704 | default y | ||
705 | ---help--- | ||
706 | Although most flash chips have an erase size too large to be useful | ||
707 | as block devices, it is possible to use MTD devices which are based | ||
708 | on RAM chips in this manner. This block device is a user of MTD | ||
709 | devices performing that function. | ||
710 | |||
711 | At the moment, it is also required for the Journalling Flash File | ||
712 | System(s) to obtain a handle on the MTD device when it's mounted | ||
713 | (although JFFS and JFFS2 don't actually use any of the functionality | ||
714 | of the mtdblock device). | ||
715 | |||
716 | Later, it may be extended to perform read/erase/modify/write cycles | ||
717 | on flash chips to emulate a smaller block size. Needless to say, | ||
718 | this is very unsafe, but could be useful for file systems which are | ||
719 | almost never written to. | ||
720 | |||
721 | You do not need this option for use with the DiskOnChip devices. For | ||
722 | those, enable NFTL support (CONFIG_NFTL) instead. | ||
723 | |||
724 | config MTD_PARTITIONS | ||
725 | tristate | ||
726 | depends on ETRAX_AXISFLASHMAP | ||
727 | default y | ||
728 | help | ||
729 | If you have a device which needs to divide its flash chip(s) up | ||
730 | into multiple 'partitions', each of which appears to the user as | ||
731 | a separate MTD device, you require this option to be enabled. If | ||
732 | unsure, say 'Y'. | ||
733 | |||
734 | Note, however, that you don't need this option for the DiskOnChip | ||
735 | devices. Partitioning on NFTL 'devices' is a different - that's the | ||
736 | 'normal' form of partitioning used on a block device. | ||
737 | |||
738 | config MTD_CONCAT | ||
739 | tristate | ||
740 | depends on ETRAX_AXISFLASHMAP | ||
741 | default y | ||
742 | |||
743 | config ETRAX_I2C | 629 | config ETRAX_I2C |
744 | bool "I2C support" | 630 | bool "I2C support" |
745 | depends on ETRAX_ARCH_V10 | 631 | depends on ETRAX_ARCH_V10 |
@@ -752,7 +638,7 @@ config ETRAX_I2C | |||
752 | val = ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_READREG), i2c_arg); | 638 | val = ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_READREG), i2c_arg); |
753 | 639 | ||
754 | # this is true for most products since PB-I2C seems to be somewhat | 640 | # this is true for most products since PB-I2C seems to be somewhat |
755 | # flawed.. | 641 | # flawed.. |
756 | config ETRAX_I2C_USES_PB_NOT_PB_I2C | 642 | config ETRAX_I2C_USES_PB_NOT_PB_I2C |
757 | bool "I2C uses PB not PB-I2C" | 643 | bool "I2C uses PB not PB-I2C" |
758 | depends on ETRAX_I2C | 644 | depends on ETRAX_I2C |
@@ -886,7 +772,7 @@ config ETRAX_RTC | |||
886 | bool "Real Time Clock support" | 772 | bool "Real Time Clock support" |
887 | depends on ETRAX_ARCH_V10 | 773 | depends on ETRAX_ARCH_V10 |
888 | help | 774 | help |
889 | Enables drivers for the Real-Time Clock battery-backed chips on | 775 | Enables drivers for the Real-Time Clock battery-backed chips on |
890 | some products. The kernel reads the time when booting, and | 776 | some products. The kernel reads the time when booting, and |
891 | the date can be set using ioctl(fd, RTC_SET_TIME, &rt) with rt a | 777 | the date can be set using ioctl(fd, RTC_SET_TIME, &rt) with rt a |
892 | rtc_time struct (see <file:include/asm-cris/rtc.h>) on the /dev/rtc | 778 | rtc_time struct (see <file:include/asm-cris/rtc.h>) on the /dev/rtc |
@@ -903,13 +789,13 @@ config ETRAX_DS1302 | |||
903 | bool "DS1302" | 789 | bool "DS1302" |
904 | help | 790 | help |
905 | Enables the driver for the DS1302 Real-Time Clock battery-backed | 791 | Enables the driver for the DS1302 Real-Time Clock battery-backed |
906 | chip on some products. | 792 | chip on some products. |
907 | 793 | ||
908 | config ETRAX_PCF8563 | 794 | config ETRAX_PCF8563 |
909 | bool "PCF8563" | 795 | bool "PCF8563" |
910 | help | 796 | help |
911 | Enables the driver for the PCF8563 Real-Time Clock battery-backed | 797 | Enables the driver for the PCF8563 Real-Time Clock battery-backed |
912 | chip on some products. | 798 | chip on some products. |
913 | 799 | ||
914 | endchoice | 800 | endchoice |
915 | 801 | ||
@@ -954,10 +840,8 @@ config ETRAX_DS1302_TRICKLE_CHARGE | |||
954 | help | 840 | help |
955 | This controls the initial value of the trickle charge register. | 841 | This controls the initial value of the trickle charge register. |
956 | 0 = disabled (use this if you are unsure or have a non rechargable battery) | 842 | 0 = disabled (use this if you are unsure or have a non rechargable battery) |
957 | Otherwise the following values can be OR:ed together to control the | 843 | Otherwise the following values can be OR:ed together to control the |
958 | charge current: | 844 | charge current: |
959 | 1 = 2kohm, 2 = 4kohm, 3 = 4kohm | 845 | 1 = 2kohm, 2 = 4kohm, 3 = 4kohm |
960 | 4 = 1 diode, 8 = 2 diodes | 846 | 4 = 1 diode, 8 = 2 diodes |
961 | Allowed values are (increasing current): 0, 11, 10, 9, 7, 6, 5 | 847 | Allowed values are (increasing current): 0, 11, 10, 9, 7, 6, 5 |
962 | |||
963 | |||