#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

# for kernel
config DDR3G_3D
	bool
	depends on BP3
	select SYSTEM_DETECT
	default n

config DDR3G_2D_CAR
	bool
	depends on BP3
	select SYSTEM_DETECT
	default y

config DDR3G_2D_CAR_P2
	bool
	depends on BP3
	select SYSTEM_DETECT
	default n

config DDR2G_2D
	bool
	depends on BP3
	select SYSTEM_DETECT
	select FREE_UNUSED_MEMMAP
	default n

config ENABLE_COMPCACHE
	bool
	default n
	select SWAP
	select LZO_COMPRESS
	select LZO_DECOMPRESS

config CALIBRATE_DELAY
	bool
	default y

config PREEMPT_BKL
	bool
	default y

config FORCE_MAX_ZONEORDER
	int
	default "10"

config JFFS2_ZLIB
	bool
	default y

config DISABLE_MODULE_PARM
	bool
	default y

# for fs/jffs2
config JFFS2_FS
	tristate
	select CRC32
	select ZLIB_INFLATE
	select ZLIB_DEFLATE
	default y

config JFFS2_FS_DEBUG
	int
	default "0"

config JFFS2_FS_NAND
	bool
	depends on !USE_NOR_FLASH
	default y

config JFFS2_RTIME
	bool
	default y

# for drivers/_scc_
config CAR_DTV
	bool
	default n

config USE_AMD_FLASH
	bool
	default y

config USE_INTEL_FLASH
	bool
	default y

config USE_NON_CFI_FLASH
	bool
	default n

config MEI_NANDBOOT
	bool
	default y

config NAND_POWER_PROTECT
	bool
	default n

config BOOTFILETOP	
	hex
	default "0x40014000" if (MEI_NANDBOOT && PRO3)
	default "0x40008000" if (MEI_NANDBOOT && PRO2)
	default "0x40020000"

config BOOTTEXT
	hex
	default "0x40000000"

config USE_JP_BOOTLOADER
	bool
	default y

config MEI_PLAYER
	bool "Player system"
	default y

config MEM_LAYOUT_6GBIT
	bool
	depends on PRO3
	default y

config SS_SC
	bool
	#select USB_PANASONIC_SINGLE_HOST
	default y

config PRO3
	bool
	default y

config PRO2
	bool
	depends on !PRO3 || SS_SC
	default y

config BP3
	bool
	default y

config BP2
	bool
	default y

config BP1
	bool
	depends on (MEI_PLAYER && PRO2)
	default y

config USE_NAND_FLASH
	bool
	depends on !USE_NOR_FLASH
	default y

config USE_NAND_CACHE
	bool
	depends on !USE_NOR_FLASH
	default y

config USE_NOR_FLASH
	bool
	default y

config USE_NOR_PAGE_MODE
	bool
	depends on USE_NOR_FLASH
	default y


config USE_NOR_FLASH_NUMONYX
	bool
	depends on USE_NOR_FLASH
	default y

# for lzo
config CRAMFS_LZO
	bool "CRAMFS LZO compression support"
	select LZO_DECOMPRESS
	default y

#serial
config ENABLE_115K_UART0
	bool
	default y

config SERIAL_B57600_TO_B57870
	bool
	default y

config USE_SERIAL0_ON_BOARD
	bool
	default n

config SERIAL1_OVERRUN
	bool
	default y

config USE_DMA2_FOR_FAST_SERIAL2
	bool
	default n

#usb
config USB_DEVICEFS
	bool
	depends on USB
	default y

config USB_STORAGE
	tristate
	depends on USB
	default y

config USB_PANASONIC_LIMITDEV
	bool "Panasonic Host Limit Device"
	depends on (USB && BP3)
	default y

config USB_PANASONIC_LIMITDEV_HOST
	int "Number of support host(1-4)"
	depends on USB_PANASONIC_LIMITDEV
	default "2"

config USB_PANASONIC_LIMITDEV_NUM
	int "Number of support device(1-20)"
	depends on USB_PANASONIC_LIMITDEV
	default "20"


#TI Wi-Fi
config USE_TI_WIFI
	bool "TI_Wi-Fi support"
	default n

config HOTPLUG
	bool
	depends on !USE_TI_WIFI
	default n

config WIRELESS
	bool
	depends on USE_TI_WIFI
	default y

config WIRELESS_EXT
	bool
	depends on USE_TI_WIFI
	default y

config WIRELESS_EXT_SYSFS
	bool
	depends on USE_TI_WIFI
	default y

config FW_LOADER
	tristate
	depends on USE_TI_WIFI
	default m

config MMC
	tristate
	depends on USE_TI_WIFI
	default m

config MMC_BLOCK
	tristate
	depends on USE_TI_WIFI
	default m

config MMC_BLOCK_BOUNCE
	bool
	depends on USE_TI_WIFI
	default y

config MMC_MN2WS0210_SDIO
	tristate
	depends on USE_TI_WIFI
	default m

config CRYPTO
	tristate
	depends on USE_TI_WIFI
	default m

config CRC16
	tristate
	depends on USE_TI_WIFI
	default m

config CRC7
	tristate
	depends on USE_TI_WIFI
	default m

config CRYPTO_AES
	tristate
	depends on USE_TI_WIFI
	default m

config CRYPTO_ARC4
	tristate
	depends on USE_TI_WIFI
	default m

config CRYPTO_ALGAPI
	tristate
	depends on USE_TI_WIFI
	default m

config CRYPTO_ALGAPI2
	tristate
	depends on USE_TI_WIFI
	default m


#USB Mass Storage
config USB_PANASONIC_SINGLE_HOST
	bool
	default y

config USB_GADGET
	tristate
	default m

config USB_GADGET_VBUS_DRAW
	int
	default 2

config USB_GADGET_PANASONIC
	bool
	default y

config USB_FILE_STORAGE
	tristate
	default m

config USB_SELECTABLE_FS
	bool
	default y

config USB_RESET_DRIVE
	bool
	default y

config USB_COMPLIANCE_TEST
	bool
	default y#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.txt.
#

mainmenu "Linux Kernel Configuration"

config MN10300
	def_bool y
	select HAVE_OPROFILE
	select HAVE_ARCH_TRACEHOOK

config AM33_2
	def_bool n

config AM33_3
	def_bool n

config AM34_2
	def_bool n

config MMU
	def_bool y

config ZONE_DMA
	def_bool y

config HIGHMEM
	def_bool n

config NUMA
	def_bool n

config UID16
	def_bool y

config RWSEM_GENERIC_SPINLOCK
	def_bool y

config RWSEM_XCHGADD_ALGORITHM
	bool

config GENERIC_HARDIRQS_NO__DO_IRQ
	def_bool y

config GENERIC_CALIBRATE_DELAY
	def_bool y

config GENERIC_FIND_NEXT_BIT
	def_bool y

config GENERIC_HWEIGHT
	def_bool y

config GENERIC_TIME
	def_bool y

config GENERIC_CLOCKEVENTS
	bool
	default y if LOCAL_TIMERS
	default y if !SMP

config GENERIC_CLOCKEVENTS_BROADCAST
	bool

config CEVT_MN10300
	def_bool y
	depends on GENERIC_CLOCKEVENTS

config CSRC_MN10300
	def_bool y
	depends on GENERIC_TIME

config GENERIC_BUG
	def_bool y

config QUICKLIST
	def_bool y

config ARCH_HAS_ILOG2_U32
	def_bool y

config ARCH_HAS_CACHE_LINE_SIZE
	def_bool y

# Use the generic interrupt handling code in kernel/irq/
config GENERIC_HARDIRQS
	def_bool y

config OPROFILE
	tristate
	default n
	
config TRACE_IRQFLAGS_SUPPORT
	bool
	default y

config STACKTRACE_SUPPORT
	bool
	default y

config HOTPLUG_CPU
	def_bool n

mainmenu "Panasonic MN10300/AM33 Kernel Configuration"

source "init/Kconfig"

source "kernel/Kconfig.freezer"


menu "Panasonic MN10300 system setup"



config MN10300_UNIT_SSBP2
	bool "SSBP2"
	depends on BP2 && ! BP3
	default y

config MN10300_UNIT_SSBP3
	bool "SSBP3"
	depends on BP2 && BP3
	default y



config MN10300_PROC_MN2WS0150
	bool "MN2WS0150"
	select AM34_2
	depends on MN10300_UNIT_SSBP2
	select MN10300_PROC_HAS_TTYSM0
#	select MN10300_PROC_HAS_TTYSM1
#	select MN10300_PROC_HAS_TTYSM2
	select PROC_HAS_MN10300_L2CA
	default y

config MN10300_PROC_MN2WS0210
	bool "MN2WS0210"
	select AM34_2
	depends on MN10300_UNIT_SSBP3
	select MN10300_PROC_HAS_TTYSM0
#	select MN10300_PROC_HAS_TTYSM1
#	select MN10300_PROC_HAS_TTYSM2
	select PROC_HAS_MN10300_L2CA
	default y


config GENERIC_ISA_DMA
	bool
	default y
	depends on AM34_2

config AM34_HAS_BSET_MOV_BUG
	bool
	default y
	depends on MN10300_PROC_MN2WS0150 || MN10300_PROC_MN2WS0210

config AM34_HAS_ATOMIC_REG
	bool
	default y
	depends on AM34_2

choice
	prompt "Atomic Register mapping address"
	default AM34_MMAP_AARU_ADDR2
	depends on AM34_HAS_ATOMIC_REG
	help

config AM34_MMAP_AARU_ADDR1
	bool "RedHat mapping address (0x70000a00)"
	depends on !MN10300_MEM_LAYOUT

config AM34_MMAP_AARU_ADDR2
	bool "Panasonic mapping address (0x00001a00)"

endchoice

config AM34_HAS_ATOMIC_REG_MOV_BUG
	bool
	default y
	depends on AM34_2 && SMP

config AM34_HAS_CACHE_SNOOP
	default y
	bool "CPU Cache Snoop present"
	depends on AM34_2

config FPU
	bool "FPU present"
	default y
	depends on MN10300_PROC_MN103E010 || MN10300_PROC_MN2WS0150 || \
		MN10300_PROC_MN2WS0210

config PROC_HAS_MN10300_L2CA
	bool
	default n

choice
	prompt "CPU Caching mode"
	default MN10300_CACHE_WBACK
	help
	  This option determines the caching mode for the kernel.

	  Write-Back caching mode involves the all reads and writes causing
	  the affected cacheline to be read into the cache first before being
	  operated upon. Memory is not then updated by a write until the cache
	  is filled and a cacheline needs to be displaced from the cache to
	  make room. Only at that point is it written back.

	  Write-Through caching only fetches cachelines from memory on a
	  read. Writes always get written directly to memory. If the affected
	  cacheline is also in cache, it will be updated too.

	  The final option is to turn of caching entirely.

config MN10300_CACHE_WBACK
	bool "Write-Back"

config MN10300_CACHE_WTHRU
	bool "Write-Through"

config MN10300_CACHE_DISABLED
	bool "Disabled"

endchoice

menu "MN10300 L2CA options"
	depends on PROC_HAS_MN10300_L2CA

config MN10300_L2CA_ON
	bool "Use L2CA (L2 cache)"
	default y
	depends on PROC_HAS_MN10300_L2CA

config MN10300_L2CA_WA
	bool "Write allocate for WB"
	depends on MN10300_L2CA_ON
	default n

config MN10300_L2CA_PRD
	bool "Hardware prefetch"
	depends on MN10300_L2CA_ON
	default n

config MN10300_L2CA_WTG
	bool "Write gathering for WT"
	depends on MN10300_L2CA_ON
	default n

config MN10300_L2CA_BST
	bool "Burst read for UCWG"
	depends on MN10300_L2CA_ON
	default n

endmenu

config MN10300_USE_PIDR
	bool
	default y

config MN10300_ALIGNMENT_FIXUP
	bool "Fixup misalignment exceptions in kernel mode"
	default y
	help
	  MN10300 processors can not load/store information which is not
	  naturally aligned on the bus, i.e., a 4 byte load must start at an
	  address divisible by 4. These non-aligned load/store instructions
	  will be emulated in software if you say here, which has a severe
	  performance impact. This is necessary for correct operation of
	  some network protocols. With an IP-only configuration it is safe
	  to say N, otherwise say Y. It is executed only in kernel mode.

menu "Memory layout options"

config KERNEL_RAM_BASE_ADDRESS
	hex
	default "0x86E80000" if DDR2G_2D
	default "0x8CA00000" if DDR3G_3D
	default "0x88000000" if DDR3G_2D_CAR
	default "0x88E00000" if DDR3G_2D_CAR_P2
	default "0x87000000" if BP3
	default "0x88000000" if BP2
	default "0x88400000"

config INTERRUPT_VECTOR_BASE
	hex "Base address of vector table"
	default "0x90000000"
	help
	  The base address of the vector table will be programmed into
          the TBR register. It must be on 16MiB address boundary.

config KERNEL_TEXT_ADDRESS
	hex "Base address of kernel"
	default "0x90030000"

config KERNEL_ZIMAGE_BASE_ADDRESS
	hex "Base address of compressed vmlinux image"
	default "0x53700000"

config ZONE_NORMAL_ADDRESS
	hex "Base address of ZONE_NORMAL"
	default "0x87D60000" if DDR2G_2D
	default "0x8D880000" if DDR3G_3D
	default "0x8FC00000" if DDR3G_2D_CAR
	default "0x8FC00000" if DDR3G_2D_CAR_P2
	default "0x8CC00000" if BP3
	default "0x8CE00000"

config BOOT_STACK_OFFSET
	hex
	default	"0xF00"	if SMP
	default	"0xFF0" if !SMP

config BOOT_STACK_SIZE
	hex
	depends on SMP
	default	"0x100"

config MN10300_MEM_LAYOUT
	bool
	default y
endmenu

config MN10300_6GBIT_RAM
	bool
	depends on MN10300_PROC_MN2WS0150 || MN10300_PROC_MN2WS0210
	default y

config MN10300_EXMEM
	bool
	depends on MN10300
	default y

config SMP
	bool "Symmetric multi-processing support"
	default y
	depends on MN10300_PROC_MN2WS0150 || MN10300_PROC_MN2WS0210
	---help---
	  This enables support for systems with more than one CPU. If you have
	  a system with only one CPU, like most personal computers, say N. If
	  you have a system with more than one CPU, say Y.

	  If you say N here, the kernel will run on single and multiprocessor
	  machines, but will use only one CPU of a multiprocessor machine. If
	  you say Y here, the kernel will run on many, but not all,
	  singleprocessor machines. On a singleprocessor machine, the kernel
	  will run faster if you say N here.

	  See also <file:Documentation/i386/IO-APIC.txt>,
	  <file:Documentation/nmi_watchdog.txt> and the SMP-HOWTO available at
	  <http://www.tldp.org/docs.html#howto>.

	  If you don't know what to do here, say N.

config NR_CPUS
	int
	depends on SMP
	default "2"

config USE_GENERIC_SMP_HELPERS
	bool
	depends on SMP
	default y

source "kernel/Kconfig.preempt"

config MN10300_CURRENT_IN_E2
	bool "Hold current task address in E2 register"
	depends on !SMP
	default y
	help
	  This option removes the E2/R2 register from the set available to gcc
	  for normal use and instead uses it to store the address of the
	  current process's task_struct whilst in the kernel.

	  This means the kernel doesn't need to calculate the address each time
	  "current" is used (take SP, AND with mask and dereference pointer
	  just to get the address), and instead can just use E2+offset
	  addressing each time.

	  This has no effect on userspace.

config MN10300_USING_JTAG
	bool "Using JTAG to debug kernel"
	default y
	help
	  This options indicates that JTAG will be used to debug the kernel. It
	  suppresses the use of certain hardware debugging features, such as
	  single-stepping, which are taken over completely by the JTAG unit.

config MN10300_EXPORT_RIM_DBGINFO
	bool "Export RIM debugging information"
	default y
	help
	  This option exports the information for RIM debugging.

menu "MN10300 trace options"

config MN10300_TRACE_RT3
	bool "Use mn10300 trace (real-time task trace)"
	default y
	help
	  This option enables mn10300 trace.

config MN10300_TRACE_DO_ENABLE
	bool "Enable mn10300 trace at start time"
	depends on MN10300_TRACE_RT3
	default y
	help
	  This option enables mn10300 trace at start time.

config MN10300_TRACE_LOG_ON_MEM
	bool "Trace log on mem"
	depends on MN10300_TRACE_RT3
	default n
	help
	  This option enables trace log on memory.

config MN10300_TRACE_BUFF_SIZE
	int "Trace log buffer size in KB (256 - 8192)"
	depends on MN10300_TRACE_LOG_ON_MEM
	default 1024
	range 256 8192

config MN10300_LOG_ISR
	bool "Log interrupt service routine"
	depends on MN10300_TRACE_RT3
	default n

#config MN10300_LOG_LINUX_SYSCALL
#	bool "Log linux syscall (id: 252, 253)"
#	depends on MN10300_TRACE_RT3
#	default n
#
#config MN10300_LOG_EXP
#	bool "Log experimental data (id: ---)"
#	depends on MN10300_TRACE_RT3
#	default n

endmenu

menu "Hybrid module options"

config HYBRID
	bool "Use hybrid module"
	depends on MN10300
	default y
	help
	  This option enables hybrid module.

config HYBRID_MAX_GUEST_COUNT
	int
	depends on HYBRID
	default 1

config HYBRID_LINUX_SYSCALL_ERRCHK
#	bool "Check illegal linux syscall on the hybrid system"
	bool
	depends on HYBRID
#	default y
	default n
	help
	  Illegal use of linux syscall is blocked with error return.

choice
	prompt "Linux syscall error check mode"
	depends on HYBRID_LINUX_SYSCALL_ERRCHK
	default HYBRID_LINUX_SYSCALL_ERRCHK_USE_ERRRTN
	help
	  This option specifies the kernel behavior when illegal
	  linux syscall detected.

config HYBRID_LINUX_SYSCALL_ERRCHK_USE_ERRRTN
	bool "Error return"

config HYBRID_LINUX_SYSCALL_ERRCHK_USE_LOOP
	bool "Use endless loop"

config HYBRID_LINUX_SYSCALL_ERRCHK_USE_BREAK
	bool "Use break instruction"

endchoice

config HYBRID_GUEST_THRESHOLD_PRIO
#	int "guest threshold priority"
	int
	depends on HYBRID
	range 1 80
#	default 71
	default 1
	help
	  This option specifies the highest priority of BRIDGE TASK
	  in the guest OS world.
	  The priority HYBRID_GUEST_THRESHOLD_PRIO in the guest OS
	  is transformed into the priority HYBRID_HOST_THRESHOLD_PRIO
	  in the host OS.

config HYBRID_HOST_THRESHOLD_PRIO
#	int "host threshold priority (guest threshold priority + 1)"
	int
	depends on HYBRID
	range 0 80
#	default 72
	default 2
	help
	  This option specifies the highest priority of BRIDGE TASK
	  in the host OS world.
	  The priority HYBRID_GUEST_THRESHOLD_PRIO in the guest OS
	  is transformed into the priority HYBRID_HOST_THRESHOLD_PRIO
	  in the host OS.
	  As of now, you must set HYBRID_GUEST_THRESHOLD_PRIO + 1
	  in this configuration.

config HYBRID_INTR_LEVEL_MIN
#	int "hybrid interrupt minimum level"
#	depends on HYBRID
#	range 1 1 if LINUX_CLI_LEVEL = 2
#	range 1 2 if LINUX_CLI_LEVEL = 3
#	range 1 3 if LINUX_CLI_LEVEL = 4
#	range 1 4 if LINUX_CLI_LEVEL = 5
#	range 1 5 if LINUX_CLI_LEVEL = 6
#	default 1
	int
	depends on HYBRID
	default 1

config HYBRID_INTR_LEVEL_MAX
#	int "hybrid interrupt maximum level"
#	depends on HYBRID
#	range 1 1 if LINUX_CLI_LEVEL = 2
#	range 1 2 if LINUX_CLI_LEVEL = 3
#	range 1 3 if LINUX_CLI_LEVEL = 4
#	range 1 4 if LINUX_CLI_LEVEL = 5
#	range 1 5 if LINUX_CLI_LEVEL = 6
#	default 4
	int
	depends on HYBRID
	default 1

endmenu

config MN10300_DF_DEBUG_PATCH
	bool "Enable patch for DebugFactory Builder enhanced debug"
	default n

config LOCAL_TIMERS
	bool "Use local timer interrupts"
	depends on SMP
	default y
	help
	  Enable support for local timers on SMP platforms, rather than the
	  legacy IPI broadcast method.  Local timers allows the system
	  accounting to be spread across the timer interval, preventing a
	  "thundering herd" at every timer tick.

source "kernel/Kconfig.hz"

source "kernel/time/Kconfig"

config MN10300_RTC
	bool "Using MN10300 RTC"
	depends on MN10300_PROC_MN103E010
	default n
	help

	  This option enables support for the RTC, thus enabling time to be
	  tracked, even when system is powered down. This is available on-chip
	  on the MN103E010.

config MN10300_WD_TIMER
	bool "Using MN10300 watchdog timer"
	default y
	help
	  This options indicates that the watchdog timer will be used.

config PCI
	bool "Use PCI"
	depends on MN10300_UNIT_ASB2305
	default y
	help
	  Some systems (such as the ASB2305) have PCI onboard. If you have one
	  of these boards and you wish to use the PCI facilities, say Y here.

	  The PCI-HOWTO, available from
	  <http://www.tldp.org/docs.html#howto>, contains valuable
	  information about which PCI hardware does work under Linux and which
	  doesn't.

source "drivers/pci/Kconfig"

source "drivers/pcmcia/Kconfig"

menu "MN10300 internal serial options"

config MN10300_PROC_HAS_TTYSM0
	bool
	default n

config MN10300_PROC_HAS_TTYSM1
	bool
	default n

config MN10300_PROC_HAS_TTYSM2
	bool
	default n

config MN10300_TTYSM
	bool "Support for ttySM serial ports"
	depends on MN10300
	default y
	select SERIAL_CORE
	help
	  This option enables support for the on-chip serial ports that the
	  MN10300 has available.

config MN10300_TTYSM_CONSOLE
	bool "Support for console on ttySM serial ports"
	depends on MN10300_TTYSM
	select SERIAL_CORE_CONSOLE
	help
	  This option enables support for a console on the on-chip serial ports
	  that the MN10300 has available.

#
# /dev/ttySM0
#
config MN10300_TTYSM0
	bool "Enable SIF0 (/dev/ttySM0)"
	depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM0
	help
	  Enable access to SIF0 through /dev/ttySM0 or gdb-stub

choice
	prompt "Select the timer to supply the clock for SIF0"
	default MN10300_TTYSM0_TIMER8
	depends on MN10300_TTYSM0

config MN10300_TTYSM0_TIMER8
	bool "Use timer 8 (16-bit)"

config MN10300_TTYSM0_TIMER0
	bool "Use timer 0 (8-bit)"

config MN10300_TTYSM0_TIMER2
	bool "Use timer 2 (8-bit)"

endchoice

#
# /dev/ttySM1
#
config MN10300_TTYSM1
	bool "Enable SIF1 (/dev/ttySM1)"
	depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM1
	help
	  Enable access to SIF1 through /dev/ttySM1 or gdb-stub

choice
	prompt "Select the timer to supply the clock for SIF1"
	default MN10300_TTYSM1_TIMER12 \
		if !(AM33_2 || AM33_3)
	default MN10300_TTYSM1_TIMER9 \
		if AM33_2 || AM33_3
	depends on MN10300_TTYSM1

config MN10300_TTYSM1_TIMER12
	bool "Use timer 12 (16-bit)"
	depends on !(AM33_2 || AM33_3)

config MN10300_TTYSM1_TIMER9
	bool "Use timer 9 (16-bit)"
	depends on AM33_2 || AM33_3

config MN10300_TTYSM1_TIMER3
	bool "Use timer 3 (8-bit)"
	depends on AM33_2 || AM33_3

endchoice

#
# /dev/ttySM2
#
config MN10300_TTYSM2
	bool "Enable SIF2 (/dev/ttySM2)"
	depends on MN10300_TTYSM && MN10300_PROC_HAS_TTYSM2
	help
	  Enable access to SIF2 through /dev/ttySM2 or gdb-stub

choice
	prompt "Select the timer to supply the clock for SIF2"
	default MN10300_TTYSM2_TIMER3 \
		if !(AM33_2 || AM33_3)
	default MN10300_TTYSM2_TIMER10 \
		if AM33_2 || AM33_3
	depends on MN10300_TTYSM2

config MN10300_TTYSM2_TIMER9
	bool "Use timer 9 (16-bit)"
	depends on !(AM33_2 || AM33_3)

config MN10300_TTYSM2_TIMER1
	bool "Use timer 1 (8-bit)"
	depends on !(AM33_2 || AM33_3)

config MN10300_TTYSM2_TIMER3
	bool "Use timer 3 (8-bit)"
	depends on !(AM33_2 || AM33_3)

config MN10300_TTYSM2_TIMER10
	bool "Use timer 10 (16-bit)"
	depends on AM33_2 || AM33_3

endchoice

config MN10300_TTYSM2_CTS
	bool "Enable the use of the CTS line /dev/ttySM2"
	depends on MN10300_TTYSM2 && AM33_2

endmenu

menu "Interrupt request level options"
config GDBSTUB_IRQ_LEVEL
	int "GDBSTUB"
	depends on GDBSTUB
	range 0 1 if LINUX_CLI_LEVEL = 2
	range 0 2 if LINUX_CLI_LEVEL = 3
	range 0 3 if LINUX_CLI_LEVEL = 4
	range 0 4 if LINUX_CLI_LEVEL = 5
	range 0 5 if LINUX_CLI_LEVEL = 6
	default 0

comment "The above must be set to a higher level than IRQ DISABLE and MN10300 SERIAL"

config MN10300_SERIAL_IRQ_LEVEL
	int "MN10300 SERIAL"
	depends on MN10300_TTYSM
	range 1 1 if LINUX_CLI_LEVEL = 2
	range 1 2 if LINUX_CLI_LEVEL = 3
	range 1 3 if LINUX_CLI_LEVEL = 4
	range 1 4 if LINUX_CLI_LEVEL = 5
	range 1 5 if LINUX_CLI_LEVEL = 6
	default 5

comment "The above must be set to a higher level than IRQ DISABLE"

config LINUX_CLI_LEVEL
#	int "IRQ DISABLE (2-6)"
#	range 2 6
#	default 6
	int
	default 3

comment "The below must be set to a equal to or lower than IRQ DISABLE"

config TIMER_IRQ_LEVEL
	int "KERNEL TIMER"
	range 2 6 if LINUX_CLI_LEVEL = 2
	range 3 6 if LINUX_CLI_LEVEL = 3
	range 4 6 if LINUX_CLI_LEVEL = 4
	range 5 6 if LINUX_CLI_LEVEL = 5
	range 6 6 if LINUX_CLI_LEVEL = 6
	default 6

config PCI_IRQ_LEVEL
	int "PCI"
	depends on PCI
	range 2 6 if LINUX_CLI_LEVEL = 2
	range 3 6 if LINUX_CLI_LEVEL = 3
	range 4 6 if LINUX_CLI_LEVEL = 4
	range 5 6 if LINUX_CLI_LEVEL = 5
	range 6 6 if LINUX_CLI_LEVEL = 6
	default 6

config ETHERNET_IRQ_LEVEL
	int "ETHERNET"
	depends on SMC91X || SMC911X || SMSC911X
	range 2 6 if LINUX_CLI_LEVEL = 2
	range 3 6 if LINUX_CLI_LEVEL = 3
	range 4 6 if LINUX_CLI_LEVEL = 4
	range 5 6 if LINUX_CLI_LEVEL = 5
	range 6 6 if LINUX_CLI_LEVEL = 6
	default 6

config EXT_SERIAL_IRQ_LEVEL
	int "EXTERNAL SERIAL"
	depends on SERIAL_8250
	range 2 6 if LINUX_CLI_LEVEL = 2
	range 3 6 if LINUX_CLI_LEVEL = 3
	range 4 6 if LINUX_CLI_LEVEL = 4
	range 5 6 if LINUX_CLI_LEVEL = 5
	range 6 6 if LINUX_CLI_LEVEL = 6
	default 6

endmenu

source "mm/Kconfig"

config FREE_UNUSED_MEMMAP
       bool "Free unused memmap page" 
       depends on MN10300 
       default n

config SYSTEM_DETECT
       bool "System detect"
       default n

config DETECT_LOW_MEMORY
       bool "Detect low memory"
       default y
       depends on SYSTEM_DETECT 

config DETECT_LOW_MEMORY_LIMIT
       int "Detect low memory limit value (Mbytes)"
       range 0 100
       default 10
       depends on DETECT_LOW_MEMORY


menu "Power management options"
source kernel/power/Kconfig
endmenu

endmenu


menu "Executable formats"

source "fs/Kconfig.binfmt"

endmenu

config WIRELESS
	bool
	default n

source "net/Kconfig"

config USB
	tristate
	select USB_PANASONIC_OC_DETECT
	select USB_PANASONIC_PORT_CONTROL
	depends on BP1
	default m

config USB_EHCI_HCD
	tristate
	depends on USB
	default m

config USB_PANASONIC_HOST
	bool "Panasonic USB Host support"
	depends on (USB && BP1)
	default y

source "drivers/Kconfig"

source "fs/Kconfig"

source "arch/mn10300/Kconfig.debug"

source "security/Kconfig"

source "crypto/Kconfig"

source "lib/Kconfig"

config CAP_OVERCOMMIT
	bool
	default y

config CAP_OVERCOMMIT_OOM_DISABLE
	bool
	depends on CAP_OVERCOMMIT
	default y

config CAP_OVERCOMMIT_SEGV_REBOOT
	bool
	depends on CAP_OVERCOMMIT
	default n

config SYS_GETTIMEOFDAY2_ENABLE
	bool
	default y

config MN10300_DTVDEV_EXIT
	bool
	default y

config BLK_DEV_SD
	tristate
	depends on SCSI
	default y

config SCSI_MULTI_LUN
	tristate
	depends on SCSI
	default y

