if ARCH_MX5

config ARCH_MX51
	bool "MX51"

config ARCH_MX53
	bool "MX53"

config FORCE_MAX_ZONEORDER
    int "MAX_ORDER"
    default "13"

config MX5_OPTIONS
	bool
	default y
	select CPU_V7
	select USB_ARCH_HAS_EHCI
	select MXC_TZIC

config MX5_MULTI_ARCH
	bool
	default y
	select RUNTIME_PHYS_OFFSET
	depends on ARCH_MX51 && ARCH_MX53

config MACH_MX51_3DS
	bool "Support MX51 3-Stack platform"
	select ARCH_MX51
	help
	  Include support for MX51 3-Stack platform. This includes specific
	  configurations for the board and its peripherals.

config MACH_MX51_BABBAGE
	bool "Support MX51 BABBAGE platform"
	select ARCH_MX51
	help
	  Include support for MX51 Babbage platform. This includes specific
	  configurations for the board and its peripherals.

config MACH_MX53_EVK
	bool "Support MX53 EVK platform"
	select ARCH_MX53
	help
	  Include support for MX53 EVK platform. This includes specific
	  configurations for the board and its peripherals.

config MODULE_CCXMX51
	bool

config MACH_CCWMX51JS
	bool "Support for the ConnectCore Wi-i.MX51 module, on the JSK base board"
	select MODULE_CCXMX51
	help
	  Include support for the Digi ConnectCore Wi-i.MX51 Embedded Module, on the
	  JumpStart Kit base board. This includes specific configurations for the
	  peripherals on that base board.

config MACH_CCWMX51
	bool "Support for the ConnectCore Wi-i.MX51 module"
	select MODULE_CCXMX51
	help
	  Include support for the Digi ConnectCore Wi-i.MX51 Embedded Module, on a
	  custom board. The machine file should be modified to include support for
	  the interfaces available in that board.

comment "MX5x Options:"

config MXC_SDMA_API
        bool "Use SDMA API"
        default y
        help
           This selects the Freescale MXC SDMA API.
           If unsure, say N.

config ARCH_MXC_HAS_NFC_V3
        bool "MXC NFC Hardware Version 3"
        depends on ARCH_MX5
        default y
        help
           This selects the Freescale MXC Nand Flash Controller Hardware Version 3
           If unsure, say N.

config ARCH_MXC_HAS_NFC_V3_2
        bool "MXC NFC Hardware Version 3.2"
        depends on ARCH_MXC_HAS_NFC_V3
        default y
        help
           This selects the Freescale MXC Nand Flash Controller Hardware Version 3.1
           If unsure, say N.

config SDMA_IRAM
	bool "Use Internal RAM for SDMA transfer"
	depends on MXC_SDMA_API
	help
	  Support Internal RAM as SDMA buffer or control structures

endif

menu "Serial Port Options"
config UART1_ENABLED
	bool "Enable UART1"
	default y
	depends on SERIAL_MXC && MACH_CCWMX51JS
	help
	  Enable the MX51 UART1 interface

config UART2_ENABLED
	bool "Enable UART2"
	default y
	depends on SERIAL_MXC && MACH_CCWMX51JS
	help
	  Enable the MX51 UART2 interface

config UART3_ENABLED
	bool "Enable UART3"
	default y
	depends on SERIAL_MXC && MACH_CCWMX51JS
	help
	  Enable the MX51 UART3 interface
endmenu

menu "SPI Interface Options"
config SPI_MXC_SELECT1
	bool "Enable CSPI1"
	depends on SPI_MXC && MACH_CCWMX51JS
	default y
	help
	  Enable the CSPI1 interface

config SPI_MXC_SELECT1_SS1
	bool "Enable SS1 line for CSPI1"
	depends on SPI_MXC_SELECT1 && MACH_CCWMX51JS
	default y
	help
          Enable SS1 (slave select 1) line, used on ConnectCore Wi-i.MX51 base board SPI connector

config SPI_MXC_SELECT2
	bool "Enable CSPI2"
	depends on SPI_MXC && MACH_CCWMX51JS
	default n
	help
	  Enable the CSPI2 interface

config SPI_MXC_SELECT3
	bool "Enable CSPI3"
	depends on SPI_MXC && MACH_CCWMX51JS
	default n
	help
	  Enable the CSPI3 interface
endmenu

menu "I2C Interface options"

config I2C_MXC_SELECT1
	bool "Enable I2C1 module"
	default y
	depends on I2C_MXC
	help
	  Enable MX51 I2C1 module.

config I2C_MXC_SELECT2
	bool "Enable I2C2 module"
	default n
	depends on I2C_MXC
	help
	  Enable MX51 I2C2 module.

config I2C_MXC_SELECT3
	bool "Enable I2C3 module"
	default n
	depends on I2C_MXC
	help
	  Enable MX51 I2C3 module.

endmenu

source "arch/arm/mach-mx5/displays/Kconfig"