Commit 3e41d652 authored by Mikael Starvik's avatar Mikael Starvik Committed by Linus Torvalds

[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: default avatarMikael Starvik <starvik@axis.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent cb09f540
...@@ -38,4 +38,9 @@ config FRAME_POINTER ...@@ -38,4 +38,9 @@ config FRAME_POINTER
If you don't debug the kernel, you can say N, but we may not be able If you don't debug the kernel, you can say N, but we may not be able
to solve problems without frame pointers. to solve problems without frame pointers.
config DEBUG_NMI_OOPS
bool "NMI causes oops printout"
help
If the system locks up without any debug information you can say Y
here to make it possible to dump an OOPS with an external NMI.
endmenu endmenu
# $Id: Makefile,v 1.23 2004/10/19 13:07:34 starvik Exp $ # $Id: Makefile,v 1.28 2005/03/17 10:44:37 larsv Exp $
# cris/Makefile # cris/Makefile
# #
# This file is included by the global makefile so that you can add your own # This file is included by the global makefile so that you can add your own
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
arch-y := v10 arch-y := v10
arch-$(CONFIG_ETRAX_ARCH_V10) := v10 arch-$(CONFIG_ETRAX_ARCH_V10) := v10
arch-$(CONFIG_ETRAX_ARCH_V32) := v32
# No config avaiable for make clean etc # No config avaiable for make clean etc
ifneq ($(arch-y),) ifneq ($(arch-y),)
...@@ -46,6 +47,21 @@ core-y += arch/$(ARCH)/$(SARCH)/kernel/ arch/$(ARCH)/$(SARCH)/mm/ ...@@ -46,6 +47,21 @@ core-y += arch/$(ARCH)/$(SARCH)/kernel/ arch/$(ARCH)/$(SARCH)/mm/
drivers-y += arch/$(ARCH)/$(SARCH)/drivers/ drivers-y += arch/$(ARCH)/$(SARCH)/drivers/
libs-y += arch/$(ARCH)/$(SARCH)/lib/ $(LIBGCC) libs-y += arch/$(ARCH)/$(SARCH)/lib/ $(LIBGCC)
# cris source path
SRC_ARCH = $(srctree)/arch/$(ARCH)
# cris object files path
OBJ_ARCH = $(objtree)/arch/$(ARCH)
target_boot_arch_dir = $(OBJ_ARCH)/$(SARCH)/boot
target_boot_dir = $(OBJ_ARCH)/boot
src_boot_dir = $(SRC_ARCH)/boot
target_compressed_dir = $(OBJ_ARCH)/boot/compressed
src_compressed_dir = $(SRC_ARCH)/boot/compressed
target_rescue_dir = $(OBJ_ARCH)/boot/rescue
src_rescue_dir = $(SRC_ARCH)/boot/rescue
export target_boot_arch_dir target_boot_dir src_boot_dir target_compressed_dir src_compressed_dir target_rescue_dir src_rescue_dir
vmlinux.bin: vmlinux vmlinux.bin: vmlinux
$(OBJCOPY) $(OBJCOPYFLAGS) vmlinux vmlinux.bin $(OBJCOPY) $(OBJCOPYFLAGS) vmlinux vmlinux.bin
...@@ -65,44 +81,52 @@ cramfs: ...@@ -65,44 +81,52 @@ cramfs:
clinux: vmlinux.bin decompress.bin rescue.bin clinux: vmlinux.bin decompress.bin rescue.bin
decompress.bin: FORCE decompress.bin: $(target_boot_dir)
@make -C arch/$(ARCH)/boot/compressed decompress.bin @$(MAKE) -f $(src_compressed_dir)/Makefile $(target_compressed_dir)/decompress.bin
rescue.bin: FORCE $(target_rescue_dir)/rescue.bin: $(target_boot_dir)
@make -C arch/$(ARCH)/boot/rescue rescue.bin @$(MAKE) -f $(src_rescue_dir)/Makefile $(target_rescue_dir)/rescue.bin
zImage: vmlinux.bin rescue.bin zImage: $(target_boot_dir) vmlinux.bin $(target_rescue_dir)/rescue.bin
## zImage - Compressed kernel (gzip) ## zImage - Compressed kernel (gzip)
@make -C arch/$(ARCH)/boot/ zImage @$(MAKE) -f $(src_boot_dir)/Makefile zImage
$(target_boot_dir): $(target_boot_arch_dir)
ln -sfn $< $@
$(target_boot_arch_dir):
mkdir -p $@
compressed: zImage compressed: zImage
archmrproper: archmrproper:
archclean: archclean:
$(Q)$(MAKE) $(clean)=arch/$(ARCH)/boot @if [ -d arch/$(ARCH)/boot ]; then \
$(MAKE) $(clean)=arch/$(ARCH)/boot ; \
fi
rm -f timage vmlinux.bin decompress.bin rescue.bin cramfs.img rm -f timage vmlinux.bin decompress.bin rescue.bin cramfs.img
rm -rf $(LD_SCRIPT).tmp rm -rf $(LD_SCRIPT).tmp
prepare: arch/$(ARCH)/.links include/asm-$(ARCH)/.arch \ prepare: $(SRC_ARCH)/.links $(srctree)/include/asm-$(ARCH)/.arch \
include/asm-$(ARCH)/$(SARCH)/offset.h include/asm-$(ARCH)/$(SARCH)/offset.h
# Create some links to make all tools happy # Create some links to make all tools happy
arch/$(ARCH)/.links: $(SRC_ARCH)/.links:
@rm -rf arch/$(ARCH)/drivers @rm -rf $(SRC_ARCH)/drivers
@ln -sfn $(SARCH)/drivers arch/$(ARCH)/drivers @ln -sfn $(SRC_ARCH)/$(SARCH)/drivers $(SRC_ARCH)/drivers
@rm -rf arch/$(ARCH)/boot @rm -rf $(SRC_ARCH)/boot
@ln -sfn $(SARCH)/boot arch/$(ARCH)/boot @ln -sfn $(SRC_ARCH)/$(SARCH)/boot $(SRC_ARCH)/boot
@rm -rf arch/$(ARCH)/lib @rm -rf $(SRC_ARCH)/lib
@ln -sfn $(SARCH)/lib arch/$(ARCH)/lib @ln -sfn $(SRC_ARCH)/$(SARCH)/lib $(SRC_ARCH)/lib
@ln -sfn $(SARCH) arch/$(ARCH)/arch @ln -sfn $(SRC_ARCH)/$(SARCH) $(SRC_ARCH)/arch
@ln -sfn ../$(SARCH)/vmlinux.lds.S arch/$(ARCH)/kernel/vmlinux.lds.S @ln -sfn $(SRC_ARCH)/$(SARCH)/vmlinux.lds.S $(SRC_ARCH)/kernel/vmlinux.lds.S
@touch $@ @touch $@
# Create link to sub arch includes # Create link to sub arch includes
include/asm-$(ARCH)/.arch: $(wildcard include/config/arch/*.h) $(srctree)/include/asm-$(ARCH)/.arch: $(wildcard include/config/arch/*.h)
@echo ' Making asm-$(ARCH)/arch -> asm-$(ARCH)/$(SARCH) symlink' @echo ' Making $(srctree)/include/asm-$(ARCH)/arch -> $(srctree)/include/asm-$(ARCH)/$(SARCH) symlink'
@rm -f include/asm-$(ARCH)/arch @rm -f include/asm-$(ARCH)/arch
@ln -sf $(SARCH) include/asm-$(ARCH)/arch @ln -sf $(srctree)/include/asm-$(ARCH)/$(SARCH) $(srctree)/include/asm-$(ARCH)/arch
@touch $@ @touch $@
arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \ arch/$(ARCH)/$(SARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
......
...@@ -259,6 +259,37 @@ config ETRAX_DEBUG_PORT_NULL ...@@ -259,6 +259,37 @@ config ETRAX_DEBUG_PORT_NULL
endchoice endchoice
choice
prompt "Kernel GDB port"
depends on ETRAX_KGDB
default ETRAX_KGDB_PORT0
help
Choose a serial port for kernel debugging. NOTE: This port should
not be enabled under Drivers for built-in interfaces (as it has its
own initialization code) and should not be the same as the debug port.
config ETRAX_KGDB_PORT0
bool "Serial-0"
help
Use serial port 0 for kernel debugging.
config ETRAX_KGDB_PORT1
bool "Serial-1"
help
Use serial port 1 for kernel debugging.
config ETRAX_KGDB_PORT2
bool "Serial-2"
help
Use serial port 2 for kernel debugging.
config ETRAX_KGDB_PORT3
bool "Serial-3"
help
Use serial port 3 for kernel debugging.
endchoice
choice choice
prompt "Product rescue-port" prompt "Product rescue-port"
depends on ETRAX_ARCH_V10 depends on ETRAX_ARCH_V10
......
# #
# arch/cris/boot/Makefile # arch/cris/boot/Makefile
# #
target = $(target_boot_dir)
src = $(src_boot_dir)
zImage: compressed/vmlinuz zImage: compressed/vmlinuz
compressed/vmlinuz: $(TOPDIR)/vmlinux compressed/vmlinuz:
@$(MAKE) -C compressed vmlinuz @$(MAKE) -f $(src)/compressed/Makefile $(target_compressed_dir)/vmlinuz
clean: clean:
rm -f zImage tools/build compressed/vmlinux.out @$(MAKE) -f $(src)/compressed/Makefile clean
@$(MAKE) -C compressed clean
# #
# linux/arch/etrax100/boot/compressed/Makefile # create a compressed vmlinuz image from the binary vmlinux.bin file
#
# create a compressed vmlinux image from the original vmlinux files and romfs
# #
target = $(target_compressed_dir)
src = $(src_compressed_dir)
CC = gcc-cris -melf -I $(TOPDIR)/include CC = gcc-cris -melf $(LINUXINCLUDE)
CFLAGS = -O2 CFLAGS = -O2
LD = ld-cris LD = ld-cris
OBJCOPY = objcopy-cris OBJCOPY = objcopy-cris
OBJCOPYFLAGS = -O binary --remove-section=.bss OBJCOPYFLAGS = -O binary --remove-section=.bss
OBJECTS = head.o misc.o OBJECTS = $(target)/head.o $(target)/misc.o
# files to compress # files to compress
SYSTEM = $(TOPDIR)/vmlinux.bin SYSTEM = $(objtree)/vmlinux.bin
all: vmlinuz all: $(target_compressed_dir)/vmlinuz
decompress.bin: $(OBJECTS) $(target)/decompress.bin: $(OBJECTS)
$(LD) -T decompress.ld -o decompress.o $(OBJECTS) $(LD) -T $(src)/decompress.ld -o $(target)/decompress.o $(OBJECTS)
$(OBJCOPY) $(OBJCOPYFLAGS) decompress.o decompress.bin $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/decompress.o $(target)/decompress.bin
# save it for mkprod in the topdir.
cp decompress.bin $(TOPDIR)
# Create vmlinuz image in top-level build directory
$(target_compressed_dir)/vmlinuz: $(target) piggy.img $(target)/decompress.bin
@echo " COMPR vmlinux.bin --> vmlinuz"
@cat $(target)/decompress.bin piggy.img > $(target_compressed_dir)/vmlinuz
@rm -f piggy.img
vmlinuz: piggy.img decompress.bin $(target)/head.o: $(src)/head.S
cat decompress.bin piggy.img > vmlinuz $(CC) -D__ASSEMBLY__ -traditional -c $< -o $@
rm -f piggy.img
head.o: head.S $(target)/misc.o: $(src)/misc.c
$(CC) -D__ASSEMBLY__ -traditional -c head.S -o head.o $(CC) -D__KERNEL__ -c $< -o $@
# gzip the kernel image # gzip the kernel image
piggy.img: $(SYSTEM) piggy.img: $(SYSTEM)
cat $(SYSTEM) | gzip -f -9 > piggy.img @cat $(SYSTEM) | gzip -f -9 > piggy.img
$(target):
mkdir -p $(target)
clean: clean:
rm -f piggy.img vmlinuz vmlinuz.o rm -f piggy.img $(objtree)/vmlinuz
# #
# Makefile for rescue code # Makefile for rescue code
# #
ifndef TOPDIR target = $(target_rescue_dir)
TOPDIR = ../../../.. src = $(src_rescue_dir)
endif
CC = gcc-cris -mlinux -I $(TOPDIR)/include CC = gcc-cris -mlinux $(LINUXINCLUDE)
CFLAGS = -O2 CFLAGS = -O2
LD = gcc-cris -mlinux -nostdlib LD = gcc-cris -mlinux -nostdlib
OBJCOPY = objcopy-cris OBJCOPY = objcopy-cris
OBJCOPYFLAGS = -O binary --remove-section=.bss OBJCOPYFLAGS = -O binary --remove-section=.bss
all: rescue.bin testrescue.bin kimagerescue.bin all: $(target)/rescue.bin $(target)/testrescue.bin $(target)/kimagerescue.bin
rescue: rescue.bin
# do nothing
rescue.bin: head.o $(target)/rescue.bin: $(target) $(target)/head.o
$(LD) -T rescue.ld -o rescue.o head.o $(LD) -T $(src)/rescue.ld -o $(target)/rescue.o $(target)/head.o
$(OBJCOPY) $(OBJCOPYFLAGS) rescue.o rescue.bin $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/rescue.o $(target)/rescue.bin
cp rescue.bin $(TOPDIR) # Place a copy in top-level build directory
cp -p $(target)/rescue.bin $(objtree)
testrescue.bin: testrescue.o $(target)/testrescue.bin: $(target) $(target)/testrescue.o
$(OBJCOPY) $(OBJCOPYFLAGS) testrescue.o tr.bin $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/testrescue.o tr.bin
# Pad it to 784 bytes # Pad it to 784 bytes
dd if=/dev/zero of=tmp2423 bs=1 count=784 dd if=/dev/zero of=tmp2423 bs=1 count=784
cat tr.bin tmp2423 >testrescue_tmp.bin cat tr.bin tmp2423 >testrescue_tmp.bin
dd if=testrescue_tmp.bin of=testrescue.bin bs=1 count=784 dd if=testrescue_tmp.bin of=$(target)/testrescue.bin bs=1 count=784
rm tr.bin tmp2423 testrescue_tmp.bin rm tr.bin tmp2423 testrescue_tmp.bin
kimagerescue.bin: kimagerescue.o $(target)/kimagerescue.bin: $(target) $(target)/kimagerescue.o
$(OBJCOPY) $(OBJCOPYFLAGS) kimagerescue.o ktr.bin $(OBJCOPY) $(OBJCOPYFLAGS) $(target)/kimagerescue.o ktr.bin
# Pad it to 784 bytes, that's what the rescue loader expects # Pad it to 784 bytes, that's what the rescue loader expects
dd if=/dev/zero of=tmp2423 bs=1 count=784 dd if=/dev/zero of=tmp2423 bs=1 count=784
cat ktr.bin tmp2423 >kimagerescue_tmp.bin cat ktr.bin tmp2423 >kimagerescue_tmp.bin
dd if=kimagerescue_tmp.bin of=kimagerescue.bin bs=1 count=784 dd if=kimagerescue_tmp.bin of=$(target)/kimagerescue.bin bs=1 count=784
rm ktr.bin tmp2423 kimagerescue_tmp.bin rm ktr.bin tmp2423 kimagerescue_tmp.bin
head.o: head.S $(target):
mkdir -p $(target)
$(target)/head.o: $(src)/head.S
$(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o
testrescue.o: testrescue.S $(target)/testrescue.o: $(src)/testrescue.S
$(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o
kimagerescue.o: kimagerescue.S $(target)/kimagerescue.o: $(src)/kimagerescue.S
$(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o $(CC) -D__ASSEMBLY__ -traditional -c $< -o $*.o
clean: clean:
rm -f *.o *.bin rm -f $(target)/*.o $(target)/*.bin
fastdep: fastdep:
......
config ETRAX_ETHERNET config ETRAX_ETHERNET
bool "Ethernet support" bool "Ethernet support"
depends on ETRAX_ARCH_V10 depends on ETRAX_ARCH_V10
select NET_ETHERNET
help help
This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet This option enables the ETRAX 100LX built-in 10/100Mbit Ethernet
controller. controller.
# this is just so that the user does not have to go into the
# normal ethernet driver section just to enable ethernetworking
config NET_ETHERNET
bool
depends on ETRAX_ETHERNET
default y
choice choice
prompt "Network LED behavior" prompt "Network LED behavior"
depends on ETRAX_ETHERNET depends on ETRAX_ETHERNET
...@@ -91,10 +85,10 @@ choice ...@@ -91,10 +85,10 @@ choice
depends on ETRAX_SERIAL_PORT0 depends on ETRAX_SERIAL_PORT0
default ETRAX_SERIAL_PORT0_DMA6_OUT default ETRAX_SERIAL_PORT0_DMA6_OUT
config CONFIG_ETRAX_SERIAL_PORT0_NO_DMA_OUT config ETRAX_SERIAL_PORT0_NO_DMA_OUT
bool "No DMA out" bool "No DMA out"
config CONFIG_ETRAX_SERIAL_PORT0_DMA6_OUT config ETRAX_SERIAL_PORT0_DMA6_OUT
bool "DMA 6" bool "DMA 6"
endchoice endchoice
...@@ -104,10 +98,10 @@ choice ...@@ -104,10 +98,10 @@ choice
depends on ETRAX_SERIAL_PORT0 depends on ETRAX_SERIAL_PORT0
default ETRAX_SERIAL_PORT0_DMA7_IN default ETRAX_SERIAL_PORT0_DMA7_IN
config CONFIG_ETRAX_SERIAL_PORT0_NO_DMA_IN config ETRAX_SERIAL_PORT0_NO_DMA_IN
bool "No DMA in" bool "No DMA in"
config CONFIG_ETRAX_SERIAL_PORT0_DMA7_IN config ETRAX_SERIAL_PORT0_DMA7_IN
bool "DMA 7" bool "DMA 7"
endchoice endchoice
...@@ -205,10 +199,10 @@ choice ...@@ -205,10 +199,10 @@ choice
depends on ETRAX_SERIAL_PORT1 depends on ETRAX_SERIAL_PORT1
default ETRAX_SERIAL_PORT1_DMA8_OUT default ETRAX_SERIAL_PORT1_DMA8_OUT
config CONFIG_ETRAX_SERIAL_PORT1_NO_DMA_OUT config ETRAX_SERIAL_PORT1_NO_DMA_OUT
bool "No DMA out" bool "No DMA out"
config CONFIG_ETRAX_SERIAL_PORT1_DMA8_OUT config ETRAX_SERIAL_PORT1_DMA8_OUT
bool "DMA 8" bool "DMA 8"
endchoice endchoice
...@@ -218,10 +212,10 @@ choice ...@@ -218,10 +212,10 @@ choice
depends on ETRAX_SERIAL_PORT1 depends on ETRAX_SERIAL_PORT1
default ETRAX_SERIAL_PORT1_DMA9_IN default ETRAX_SERIAL_PORT1_DMA9_IN
config CONFIG_ETRAX_SERIAL_PORT1_NO_DMA_IN config ETRAX_SERIAL_PORT1_NO_DMA_IN
bool "No DMA in" bool "No DMA in"
config CONFIG_ETRAX_SERIAL_PORT1_DMA9_IN config ETRAX_SERIAL_PORT1_DMA9_IN
bool "DMA 9" bool "DMA 9"
endchoice endchoice
...@@ -308,7 +302,7 @@ config ETRAX_SER1_CD_ON_PB_BIT ...@@ -308,7 +302,7 @@ config ETRAX_SER1_CD_ON_PB_BIT
Specify the pin of the PB port to carry the CD signal for serial Specify the pin of the PB port to carry the CD signal for serial
port 1. port 1.
comment "Make sure you dont have the same PB bits more than once!" comment "Make sure you do not have the same PB bits more than once!"
depends on ETRAX_SERIAL && ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && ETRAX_SER1_DTR_RI_DSR_CD_ON_PB depends on ETRAX_SERIAL && ETRAX_SER0_DTR_RI_DSR_CD_ON_PB && ETRAX_SER1_DTR_RI_DSR_CD_ON_PB
config ETRAX_SERIAL_PORT2 config ETRAX_SERIAL_PORT2
...@@ -322,10 +316,10 @@ choice ...@@ -322,10 +316,10 @@ choice
depends on ETRAX_SERIAL_PORT2 depends on ETRAX_SERIAL_PORT2
default ETRAX_SERIAL_PORT2_DMA2_OUT default ETRAX_SERIAL_PORT2_DMA2_OUT
config CONFIG_ETRAX_SERIAL_PORT2_NO_DMA_OUT config ETRAX_SERIAL_PORT2_NO_DMA_OUT
bool "No DMA out" bool "No DMA out"
config CONFIG_ETRAX_SERIAL_PORT2_DMA2_OUT config ETRAX_SERIAL_PORT2_DMA2_OUT
bool "DMA 2" bool "DMA 2"
endchoice endchoice
...@@ -335,10 +329,10 @@ choice ...@@ -335,10 +329,10 @@ choice
depends on ETRAX_SERIAL_PORT2 depends on ETRAX_SERIAL_PORT2
default ETRAX_SERIAL_PORT2_DMA3_IN default ETRAX_SERIAL_PORT2_DMA3_IN
config CONFIG_ETRAX_SERIAL_PORT2_NO_DMA_IN config ETRAX_SERIAL_PORT2_NO_DMA_IN
bool "No DMA in" bool "No DMA in"
config CONFIG_ETRAX_SERIAL_PORT2_DMA3_IN config ETRAX_SERIAL_PORT2_DMA3_IN
bool "DMA 3" bool "DMA 3"
endchoice endchoice
...@@ -436,10 +430,10 @@ choice ...@@ -436,10 +430,10 @@ choice
depends on ETRAX_SERIAL_PORT3 depends on ETRAX_SERIAL_PORT3
default ETRAX_SERIAL_PORT3_DMA4_OUT default ETRAX_SERIAL_PORT3_DMA4_OUT
config CONFIG_ETRAX_SERIAL_PORT3_NO_DMA_OUT config ETRAX_SERIAL_PORT3_NO_DMA_OUT
bool "No DMA out" bool "No DMA out"
config CONFIG_ETRAX_SERIAL_PORT3_DMA4_OUT config ETRAX_SERIAL_PORT3_DMA4_OUT
bool "DMA 4" bool "DMA 4"
endchoice endchoice
...@@ -449,10 +443,10 @@ choice ...@@ -449,10 +443,10 @@ choice
depends on ETRAX_SERIAL_PORT3 depends on ETRAX_SERIAL_PORT3
default ETRAX_SERIAL_PORT3_DMA5_IN default ETRAX_SERIAL_PORT3_DMA5_IN
config CONFIG_ETRAX_SERIAL_PORT3_NO_DMA_IN config ETRAX_SERIAL_PORT3_NO_DMA_IN
bool "No DMA in" bool "No DMA in"
config CONFIG_ETRAX_SERIAL_PORT3_DMA5_IN config ETRAX_SERIAL_PORT3_DMA5_IN
bool "DMA 5" bool "DMA 5"
endchoice endchoice
...@@ -554,7 +548,6 @@ config ETRAX_IDE ...@@ -554,7 +548,6 @@ config ETRAX_IDE
select BLK_DEV_IDEDISK select BLK_DEV_IDEDISK
select BLK_DEV_IDECD select BLK_DEV_IDECD
select BLK_DEV_IDEDMA select BLK_DEV_IDEDMA
select DMA_NONPCI
help help
Enable this to get support for ATA/IDE. Enable this to get support for ATA/IDE.
You can't use paralell ports or SCSI ports You can't use paralell ports or SCSI ports
...@@ -588,30 +581,36 @@ endchoice ...@@ -588,30 +581,36 @@ endchoice
config ETRAX_USB_HOST config ETRAX_USB_HOST
bool "USB host" bool "USB host"
select USB
help help
This option enables the host functionality of the ETRAX 100LX This option enables the host functionality of the ETRAX 100LX
built-in USB controller. In host mode the controller is designed built-in USB controller. In host mode the controller is designed
for CTRL and BULK traffic only, INTR traffic may work as well for CTRL and BULK traffic only, INTR traffic may work as well
however (depending on the requirements of timeliness). however (depending on the requirements of timeliness).
config USB
tristate
depends on ETRAX_USB_HOST
default y
config ETRAX_USB_HOST_PORT1 config ETRAX_USB_HOST_PORT1
bool " USB port 1 enabled" bool "USB port 1 enabled"
depends on ETRAX_USB_HOST depends on ETRAX_USB_HOST
default n default n
config ETRAX_USB_HOST_PORT2 config ETRAX_USB_HOST_PORT2
bool " USB port 2 enabled" bool "USB port 2 enabled"
depends on ETRAX_USB_HOST depends on ETRAX_USB_HOST
default n default n
config ETRAX_AXISFLASHMAP config ETRAX_AXISFLASHMAP
bool "Axis flash-map support" bool "Axis flash-map support"
depends on ETRAX_ARCH_V10 depends on ETRAX_ARCH_V10
select MTD
select MTD_CFI
select MTD_CFI_AMDSTD
select MTD_OBSOLETE_CHIPS
select MTD_AMDSTD
select MTD_CHAR
select MTD_BLOCK
select MTD_PARTITIONS
select MTD_CONCAT
select MTD_COMPLEX_MAPPINGS
help help
This option enables MTD mapping of flash devices. Needed to use This option enables MTD mapping of flash devices. Needed to use
flash memories. If unsure, say Y. flash memories. If unsure, say Y.
...@@ -627,119 +626,6 @@ config ETRAX_PTABLE_SECTOR ...@@ -627,119 +626,6 @@ config ETRAX_PTABLE_SECTOR
for changing this is when the flash block size is bigger for changing this is when the flash block size is bigger
than 64kB (e.g. when using two parallel 16 bit flashes). than 64kB (e.g. when using two parallel 16 bit flashes).
# here we define the CONFIG_'s necessary to enable MTD support
# for the flash
config MTD
tristate
depends on ETRAX_AXISFLASHMAP
default y
help
Memory Technology Devices are flash, RAM and similar chips, often
used for solid state file systems on embedded devices. This option
will provide the generic support for MTD drivers to register
themselves with the kernel and for potential users of MTD devices
to enumerate the devices which are present and obtain a handle on
them. It will also allow you to select individual drivers for
particular hardware and users of MTD devices. If unsure, say N.
config MTD_CFI
tristate
depends on ETRAX_AXISFLASHMAP
default y
help
The Common Flash Interface specification was developed by Intel,
AMD and other flash manufactures that provides a universal method
for probing the capabilities of flash devices. If you wish to
support any device that is CFI-compliant, you need to enable this
option. Visit <http://www.amd.com/products/nvd/overview/cfi.html>
for more information on CFI.
config MTD_CFI_AMDSTD
tristate
depends on ETRAX_AXISFLASHMAP
default y
help
The Common Flash Interface defines a number of different command
sets which a CFI-compliant chip may claim to implement. This code
provides support for one of those command sets, used on chips
chips including the AMD Am29LV320.
config MTD_OBSOLETE_CHIPS
bool
depends on ETRAX_AXISFLASHMAP
default y
help
This option does not enable any code directly, but will allow you to
select some other chip drivers which are now considered obsolete,
because the generic CONFIG_JEDEC_PROBE code above should now detect
the chips which are supported by these drivers, and allow the generic
CFI-compatible drivers to drive the chips. Say 'N' here unless you have
already tried the CONFIG_JEDEC_PROBE method and reported its failure
to the MTD mailing list at <linux-mtd@lists.infradead.org>
config MTD_AMDSTD
tristate
depends on ETRAX_AXISFLASHMAP
default y
help
This option enables support for flash chips using AMD-compatible
commands, including some which are not CFI-compatible and hence
cannot be used with the CONFIG_MTD_CFI_AMDSTD option.
It also works on AMD compatible chips that do conform to CFI.
config MTD_CHAR
tristate
depends on ETRAX_AXISFLASHMAP
default y
help
This provides a character device for each MTD device present in
the system, allowing the user to read and write directly to the
memory chips, and also use ioctl() to obtain information about
the device, or to erase parts of it.
config MTD_BLOCK
tristate
depends on ETRAX_AXISFLASHMAP
default y
---help---
Although most flash chips have an erase size too large to be useful
as block devices, it is possible to use MTD devices which are based
on RAM chips in this manner. This block device is a user of MTD
devices performing that function.
At the moment, it is also required for the Journalling Flash File
System(s) to obtain a handle on the MTD device when it's mounted
(although JFFS and JFFS2 don't actually use any of the functionality
of the mtdblock device).
Later, it may be extended to perform read/erase/modify/write cycles
on flash chips to emulate a smaller block size. Needless to say,
this is very unsafe, but could be useful for file systems which are
almost never written to.
You do not need this option for use with the DiskOnChip devices. For
those, enable NFTL support (CONFIG_NFTL) instead.
config MTD_PARTITIONS
tristate
depends on ETRAX_AXISFLASHMAP
default y
help
If you have a device which needs to divide its flash chip(s) up
into multiple 'partitions', each of which appears to the user as
a separate MTD device, you require this option to be enabled. If
unsure, say 'Y'.
Note, however, that you don't need this option for the DiskOnChip
devices. Partitioning on NFTL 'devices' is a different - that's the
'normal' form of partitioning used on a block device.
config MTD_CONCAT
tristate
depends on ETRAX_AXISFLASHMAP
default y
config ETRAX_I2C config ETRAX_I2C
bool "I2C support" bool "I2C support"
depends on ETRAX_ARCH_V10 depends on ETRAX_ARCH_V10
...@@ -959,5 +845,3 @@ config ETRAX_DS1302_TRICKLE_CHARGE ...@@ -959,5 +845,3 @@ config ETRAX_DS1302_TRICKLE_CHARGE
1 = 2kohm, 2 = 4kohm, 3 = 4kohm 1 = 2kohm, 2 = 4kohm, 3 = 4kohm
4 = 1 diode, 8 = 2 diodes 4 = 1 diode, 8 = 2 diodes
Allowed values are (increasing current): 0, 11, 10, 9, 7, 6, 5 Allowed values are (increasing current): 0, 11, 10, 9, 7, 6, 5
This diff is collapsed.
# $Id: Makefile,v 1.10 2004/05/14 10:18:12 starvik Exp $ # $Id: Makefile,v 1.12 2004/10/19 13:07:43 starvik Exp $
# #
# Makefile for the linux kernel. # Makefile for the linux kernel.
# #
...@@ -10,6 +10,7 @@ obj-y := process.o traps.o irq.o ptrace.o setup.o \ ...@@ -10,6 +10,7 @@ obj-y := process.o traps.o irq.o ptrace.o setup.o \
obj-$(CONFIG_MODULES) += crisksyms.o obj-$(CONFIG_MODULES) += crisksyms.o
obj-$(CONFIG_MODULES) += module.o obj-$(CONFIG_MODULES) += module.o
obj-$(CONFIG_SYSTEM_PROFILER) += profile.o
clean: clean:
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment