if ARCH_EMXX

menu "EMMA Mobile series Implementations"

choice
	prompt "EMMA Mobile System Type"
	default MACH_EMEV

config MACH_EMEV
	bool "EMMA Mobile EV"
	select CPU_V7

config MACH_EVSY
	bool "Sony EMEV SY control board"
	select CPU_V7
	select SNSC_EMXX_PLATFORM

endchoice

source "arch/arm/mach-emxx/evsy/Kconfig"

config EMXX_QR
	bool "Enable QR"
	default y

config EMXX_L310
	bool "ARM L2 cache Enable"
	default y
	select CACHE_L2X0

config EMXX_L310_WT
	bool "ARM L2 cache WriteThrough"
	depends on EMXX_L310
	default n

choice
    prompt "L2 cache way-size"
	depends on EMXX_L310
	default EMXX_L310_8WAY

config EMXX_L310_8WAY
    bool "8way 32KByte"

config EMXX_L310_16WAY
    bool "16way 16KByte"

endchoice

choice
    prompt "Target board System clock(PLL3)"
    default EMXX_PLL3_230MHZ

config EMXX_PLL3_230MHZ
    bool "230MHZ"

config EMXX_PLL3_238MHZ
    bool "238MHZ"

endchoice

config EMXX_ANDROID
	bool "Use Android setting"

config EMXX_SPI
	tristate "SPI0 Driver support"
	default y

config EMXX_PWM
	tristate "PWM Driver support"

config EMXX_DTV
	tristate "DTV Interface support"

config EMXX_DTV_BUFFERSIZE
        int "DMA buffer size (752-)[byte]"
        depends on EMXX_DTV
        default "8192"

config EMXX_PWC
	bool "Dialog DA9502 power controller (EMEV)"
	depends on EMXX_SPI0
	default y

config EMXX_EXTIO
	bool
	depends on MACH_EMEV && I2C
	default y

config EMXX_LED
	bool
	depends on MACH_EMEV && EMXX_PWC
	default y

config EMXX_DMA_LCH0
	int "P2M/M2P DMA LCH0 device"
	default 4
	help
	   0:MMM    1:MSP_GDF  2:MSP_PB  3:CRP    4:SDC    5:CFI
	   6:UART0  7:UART1    8:UART2   9:UART3 10:SIO0  11:SIO1 
	   12:SIO2 13:SIO3    14:SIO4   15:SIO5

config EMXX_DMA_LCH1
	int "P2M/M2P DMA LCH1 device"
	default 7
	help
	   0:MMM    1:MSP_GDF  2:MSP_PB  3:CRP    4:SDC    5:CFI
	   6:UART0  7:UART1    8:UART2   9:UART3 10:SIO0  11:SIO1 
	   12:SIO2 13:SIO3    14:SIO4   15:SIO5

config EMXX_DMA_LCH2
	int "P2M/M2P DMA LCH2 device"
	default 11
	help
	   0:MMM    1:MSP_GDF  2:MSP_PB  3:CRP    4:SDC    5:CFI
	   6:UART0  7:UART1    8:UART2   9:UART3 10:SIO0  11:SIO1 
	   12:SIO2 13:SIO3    14:SIO4   15:SIO5

config EMXX_DMA_LCH3
	int "P2M/M2P DMA LCH3 device"
	default 12
	help
	   0:MMM    1:MSP_GDF  2:MSP_PB  3:CRP    4:SDC    5:CFI
	   6:UART0  7:UART1    8:UART2   9:UART3 10:SIO0  11:SIO1 
	   12:SIO2 13:SIO3    14:SIO4   15:SIO5

config EMXX_DMA_LCH4
	int "P2M/M2P DMA LCH4 device"
	default 13
	help
	   0:MMM    1:MSP_GDF  2:MSP_PB  3:CRP    4:SDC    5:CFI
	   6:UART0  7:UART1    8:UART2   9:UART3 10:SIO0  11:SIO1 
	   12:SIO2 13:SIO3    14:SIO4   15:SIO5

config EMXX_DMA_LCH5
	int "P2M/M2P DMA LCH5 device"
	default 14
	help
	   0:MMM    1:MSP_GDF  2:MSP_PB  3:CRP    4:SDC    5:CFI
	   6:UART0  7:UART1    8:UART2   9:UART3 10:SIO0  11:SIO1 
	   12:SIO2 13:SIO3    14:SIO4   15:SIO5

config EMXX_DMA_LCH6
	int "P2M/M2P DMA LCH6 device"
	default 15
	help
	   0:MMM    1:MSP_GDF  2:MSP_PB  3:CRP    4:SDC    5:CFI
	   6:UART0  7:UART1    8:UART2   9:UART3 10:SIO0  11:SIO1 
	   12:SIO2 13:SIO3    14:SIO4   15:SIO5

config EMXX_DMA_LCH7
	int "P2M/M2P DMA LCH7 device"
	default 2
	help
	   0:MMM    1:MSP_GDF  2:MSP_PB  3:CRP    4:SDC    5:CFI
	   6:UART0  7:UART1    8:UART2   9:UART3 10:SIO0  11:SIO1 
	   12:SIO2 13:SIO3    14:SIO4   15:SIO5

config SNSC_EMXX_PLATFORM
	bool "Enable EMXX Platform"
	depends on SNSC
	default n

config EMXX_USE_TIMER_TI1_FOR_SCHED_CLOCK
	bool "Enable sched_clock() using TI1 timer"
	default y
	help
	   Use TI1 timer counter for sched_clock().

config EMXX_EMIF
	tristate "emif controler support"
	default y
	help
	"emif controler include emif_datalink."

if EMMX_FDX_SPI0 && EMMX_FDX_SPI1

config EMXX_CSI
	tristate "csi controler support"
	default y
	help
	"csi controler include csi_datalink."
	
endif	
	
config EMXX_PHYADR
	tristate "Physical address support"
	default y
	
config EMXX_VUP_CPLD
	tristate "CPLD version up"
	default y
	
config EMXX_VUP_PWRCTRL
	tristate "PWRCTRL version up"
	default y
	
config EMXX_VUP_SWITCH
	tristate "SWITCH version up"
	default y

config EMXX_LCTTY_DRV
	tristate "Emma LCtty driver for pppd"
	default m

config EMXX_SSBOOT_ADJUST_SCHED_CLOCK
	bool "Enable adjust sched_clock() value after Snapshot Boot"
	depends on SNSC_SSBOOT
	depends on EMXX_USE_TIMER_TI1_FOR_SCHED_CLOCK
	default y
	help
	   To avoid jiffies dates back, adjust the sched_clock() as follows.
	   Nromal boot : raw sched_clock()
	   Resumed     : raw sched_clock() + adjust value

config EMXX_USE_ST_TIMER_FOR_CLOCKSOURCE
	bool "Enable sched_clock() using ST timer"
	default n
	help
	   Use ST timer for clocksource.

config EMXX_USE_TG_TIMER_FOR_CLOCKSOURCE
	bool "Use TG[0-5] timer for clocksource"
	default y
	help
	   EMXX has timer module(TIM) which support 15 separate
	   timers [TI0-TI3, TW0-TW4, TG0-TG5].
	   TG[0-5] is used for clocksource.

config EMXX_CLOCKSOURCE_TG_TIMER
	int "Use TG[0-5] any timer counter for clocksource"
	depends on EMXX_USE_TG_TIMER_FOR_CLOCKSOURCE
	default 0
	help
	   EMXX timer module(TIM), have [TG0-TG5].
	   TG[0-5] is configured to be driven by DIV_TIM_CLK (PLL3).

config OOM_CALLBACK
	bool "Enable CALLBACKs if OOM Kill happens"
	default y
	help
	  Print something useful during OOM,
	  and then send SEGV to fall into EM.

config OVERCOMMIT_ALWAYS
	bool "Always overcommit memory"
	default y

endmenu

endif
