menu "Panasonic platform type"
	depends on ARCH_UNIPHIER

choice
	prompt "Unit type"
	default MACH_MN2WS0220_REF
	help
	  This option specifies board for which the kernel will be
	  compiled. It affects the external peripherals catered for.

config MACH_MN2WS0220_REF
	bool "MN2WS0220 reference board"

endchoice

choice
	prompt "Unit option"
	default USE_BOARD_OPTION_A
	help
	  This option specifies board option

config USE_BOARD_OPTION_A
	bool "A"

config USE_BOARD_OPTION_B
	bool "B"

config USE_BOARD_OPTION_C
	bool "C"

endchoice

choice
	prompt "Processor support"
	default PROC_MN2WS0220
	help
	  This option specifies the processor for which the kernel will be
	  compiled. It affects the on-chip peripherals catered for.

config PROC_MN2WS0220
	bool "MN2WS0220"
	depends on MACH_MN2WS0220_REF
	select ARM_GIC
	select CPU_V7
	select UNIPHIER_HAS_L2CA
	select HAVE_ARM_TWD
	select UNIPHIER_GLOBAL_TIMERS
	select ARM_ERRATA_754322
	select ARM_ERRATA_764369

endchoice

choice
	prompt "ARM clock setting"
	depends on PROC_MN2WS0220
	default USE_ARM_CLOCK_1GHZX2

config USE_ARM_CLOCK_1GHZX2
	bool "1GHz x 2"

config USE_ARM_CLOCK_600MHZX2
	bool "600MHz x 2"
endchoice

config MN2WS0220_ES1
	bool	"MN2WS0220 ES1"
	depends on PROC_MN2WS0220
	default n

choice
	prompt "Memory layout"
	depends on PROC_MN2WS0220
	default USE_MEM_LAYOUT_10GBIT

config USE_MEM_LAYOUT_10GBIT
	bool "10Gbit [CH0(2+2) CH1(2+2) CH2(2)]"

config USE_MEM_LAYOUT_7GBIT
	bool "7Gbit [CH0(2+2) CH1(2) CH2(1)]"
endchoice

menu "Memory layout options"

config KERNEL_RAM_BASE_ADDRESS
	hex "Base address of (1st) kernel RAM (physical address)"
	default "0x84000000"

config KERNEL_RAM_END_ADDRESS0
	hex "End address of 1st kernel RAM"
	depends on SPARSEMEM
	default "0xa0000000"

config KERNEL_RAM_BASE_ADDRESS1
	hex "Base address of 2nd kernel RAM (physical address)"
	depends on SPARSEMEM
	default "0xc0000000"

config ZONE_NORMAL_ADDRESS
	hex "Base address of ZONE_NORMAL (physical address)"
	depends on ZONE_DMA
	default "0xa0000000"

config MODULES_HIGH_VADDR
	bool
	depends on !XIP_KERNEL
	default n

config STACK_LOW_ADDR
	bool
	default y

config GET_UNMAPPED_AREA_TOPDOWN
	bool
	depends on !CPU_V6
	default n

endmenu

config ARCH_HAS_CACHE_LINE_SIZE
	bool
	default n

config UNIPHIER_HAS_L2CA
	bool
	default n
	select OUTER_CACHE
	select OUTER_CACHE_SYNC
	select ARCH_HAS_CACHE_LINE_SIZE

config UNIPHIER_L2CACHE_ENABLE
	bool "Use L2CA (L2 Cache)"
	depends on UNIPHIER_HAS_L2CA
	default y

menu "UART"

config UNIPHIER_UART4
	bool "Support UART4 on SoC"
	depends on PROC_MN2WS0220
	default n

config UNIPHIER_UART5
	bool "Support UART5 on SoC"
	depends on PROC_MN2WS0220
	default n

config UNIPHIER_UART6
	bool "Support UART6 on SoC"
	depends on PROC_MN2WS0220
	default n

config UNIPHIER_UART
	bool
	depends on UNIPHIER_UART4 || UNIPHIER_UART5 || UNIPHIER_UART6
	default y
	select SERIAL_8250

endmenu

config UNIPHIER_GLOBAL_TIMERS
	bool
	default n

config MN2WS_EXMEM
	bool
	default y

config MN2WS_EXSVC
	bool
	default y

menu "RT3 trace options"
config MN_EXPORT_RIM_DBGINFO
	bool
	default y
	depends on RT3_TRACE
	help
	  This option exports the information for RIM debugging.

config RT3_TRACE
	bool "Use real time task trace (real-time task trace)"
	default n
	help
	  This option enables rt3 trace.

config RT3_TRACE_DO_ENABLE
	bool "Enable real time task trace at start time"
	depends on RT3_TRACE
	default y
	help
	  This option enables real time trace at start time.

config RT3_TRACE_LOG_ON_MEM
	bool
	default y
	depends on RT3_TRACE
	help
	  This option enables trace log on memory.

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

config RT3_LOG_ISR
	bool "Log interrupt service routine"
	depends on RT3_TRACE
	default y

config RT3_LOG_EXIT_TRACE_LOG
	bool "Log exit process"
	depends on RT3_TRACE
	default y

config RT3_EXIT_TRACE_LOG_MAX_NUM
	int "Trace process exit log number (32 - 32768)"
	depends on RT3_LOG_EXIT_TRACE_LOG
	default 4096
	range 32 32768

#config RT3_LOG_LINUX_SYSCALL
#	bool "Log linux syscall (id: 252, 253)"
#	depends on RT3_TRACE
#	default n
#
#config RT3_LOG_EXP
#	bool "Log experimental data (id: ---)"
#	depends on RT3_TRACE
#	default n

endmenu

config USPIN
	bool "Kernel <-> User mutex support."
	depends on MN2WS_EXSVC
	default y
	help
	  This option enables 'uspin'. 
	  This is mutual exclusion mechanism 
	  between kernel space and user space.

endmenu
