menu "MX25 Options"
	depends on ARCH_MX25

config MX25_OPTIONS
	bool
	default y
	select CPU_ARM926T
	select GENERIC_GPIO
	select HAVE_GPIO_LIB
	select USB_ARCH_HAS_EHCI

config MACH_ARMADILLO420
	bool "Support Atmark Techno Armadillo-420"
	help
	  Say 'Y' here if you want your kernel to support the
	  Atmark Techno Armadillo-420 board.

config MACH_ARMADILLO440
	bool "Support Atmark Techno Armadillo-440"
	help
	  Say 'Y' here if you want your kernel to support the
	  Atmark Techno Armadillo-440 board.

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

config DISABLE_100M_ETHER_FOR_XIP_KERNEL
	bool "Disable 100Mb ether for xip kernel"
	depends on MACH_ARMADILLO440 && XIP_KERNEL
	default y
	help
	  Say 'Y' here if you want to use network with XIP kernel on
	  Armadillo-440 board. XIP on Nor flash will make the memory bus
	  very busy, which causes FEC transmit underrun and receive overrun
	  if 100M is enabled. This is a workaround to make the network
	  controller work properly, by limiting the speed at 10M.

menu "SDMA options"
	depends on MXC_SDMA_API

config SDMA_IRAM
	bool "Use Internal RAM for SDMA transfer"
	default n
	help
	   Support Internal RAM as SDMA buffer or control structures

config SDMA_IRAM_SIZE
	hex "Reserved bytes of IRAM for SDMA (0x800-0x1000)"
	range 0x800 0x1000
	depends on SDMA_IRAM
	default "0x1000"
	help
	   Set the size of IRAM for SDMA. It must be a multiple of 512bytes.
endmenu

menu "Device options"

config SERIAL_MXC_SELECT1
	bool "Enable UART1 module"
	default y
	depends on SERIAL_IMX
	help
	  Enable MX25 UART1 module.

config SERIAL_MXC_ENABLED1
	int
	default 0 if !SERIAL_MXC_SELECT1
	default 1 if SERIAL_MXC_SELECT1

config SERIAL_MXC_WAKE_SRC_SELECT1
	bool
	default n
	depends on SERIAL_MXC_SELECT1

config SERIAL_MXC_IS_WAKE_SRC1
	int
	default 0 if !SERIAL_MXC_WAKE_SRC_SELECT1
	default 1 if SERIAL_MXC_WAKE_SRC_SELECT1

config SERIAL_MXC_HW_FLOW1
	bool "Enable UART1 HW Flow Control"
	default n
	depends on SERIAL_MXC_SELECT1

config SERIAL_MXC_HW_FLOW_ENABLED1
	int
	default 0 if !SERIAL_MXC_HW_FLOW1
	default 1 if SERIAL_MXC_HW_FLOW1

config SERIAL_MXC_SELECT2
	bool "Enable UART2 module"
	default y
	depends on SERIAL_IMX
	help
	  Enable MX25 UART2 module.

config SERIAL_MXC_ENABLED2
	int
	default 0 if !SERIAL_MXC_SELECT2
	default 1 if SERIAL_MXC_SELECT2

config SERIAL_MXC_WAKE_SRC_SELECT2
	bool
	default n
	depends on SERIAL_MXC_SELECT2

config SERIAL_MXC_IS_WAKE_SRC2
	int
	default 0 if !SERIAL_MXC_WAKE_SRC_SELECT2
	default 1 if SERIAL_MXC_WAKE_SRC_SELECT2

config SERIAL_MXC_HW_FLOW2
	bool "Enable UART2 HW Flow Control"
	default n
	depends on SERIAL_MXC_SELECT2

config SERIAL_MXC_HW_FLOW_ENABLED2
	int
	default 0 if !SERIAL_MXC_HW_FLOW2
	default 1 if SERIAL_MXC_HW_FLOW2

config SERIAL_MXC_SELECT3
	bool "Enable UART3 module"
	default y
	depends on SERIAL_IMX
	help
	  Enable MX25 UART3 module.

config SERIAL_MXC_ENABLED3
	int
	default 0 if !SERIAL_MXC_SELECT3
	default 1 if SERIAL_MXC_SELECT3

config SERIAL_MXC_WAKE_SRC_SELECT3
	bool
	default n
	depends on SERIAL_MXC_SELECT3

config SERIAL_MXC_IS_WAKE_SRC3
	int
	default 0 if !SERIAL_MXC_WAKE_SRC_SELECT3
	default 1 if SERIAL_MXC_WAKE_SRC_SELECT3

config SERIAL_MXC_HW_FLOW3
	bool "Enable UART3 HW Flow Control"
	default n
	depends on SERIAL_MXC_SELECT3

config SERIAL_MXC_HW_FLOW_ENABLED3
	int
	default 0 if !SERIAL_MXC_HW_FLOW3
	default 1 if SERIAL_MXC_HW_FLOW3

config SERIAL_MXC_SELECT4
	bool "Enable UART4 module"
	default y
	depends on SERIAL_IMX
	help
	  Enable MX25 UART4 module.

config SERIAL_MXC_ENABLED4
	int
	default 0 if !SERIAL_MXC_SELECT4
	default 1 if SERIAL_MXC_SELECT4

config SERIAL_MXC_WAKE_SRC_SELECT4
	bool
	default n
	depends on SERIAL_MXC_SELECT4

config SERIAL_MXC_IS_WAKE_SRC4
	int
	default 0 if !SERIAL_MXC_WAKE_SRC_SELECT4
	default 1 if SERIAL_MXC_WAKE_SRC_SELECT4

config SERIAL_MXC_HW_FLOW4
	bool "Enable UART4 HW Flow Control"
	default n
	depends on SERIAL_MXC_SELECT4

config SERIAL_MXC_HW_FLOW_ENABLED4
	int
	default 0 if !SERIAL_MXC_HW_FLOW4
	default 1 if SERIAL_MXC_HW_FLOW4

config SERIAL_MXC_SELECT5
	bool "Enable UART5 module"
	default y
	depends on SERIAL_IMX
	help
	  Enable MX25 UART5 module.

config SERIAL_MXC_ENABLED5
	int
	default 0 if !SERIAL_MXC_SELECT5
	default 1 if SERIAL_MXC_SELECT5

config SERIAL_MXC_WAKE_SRC_SELECT5
	bool
	default n
	depends on SERIAL_MXC_SELECT5

config SERIAL_MXC_IS_WAKE_SRC5
	int
	default 0 if !SERIAL_MXC_WAKE_SRC_SELECT5
	default 1 if SERIAL_MXC_WAKE_SRC_SELECT5

config SERIAL_MXC_HW_FLOW5
	bool "Enable UART5 HW Flow Control"
	default n
	depends on SERIAL_MXC_SELECT5

config SERIAL_MXC_HW_FLOW_ENABLED5
	int
	default 0 if !SERIAL_MXC_HW_FLOW5
	default 1 if SERIAL_MXC_HW_FLOW5

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

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

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

config MMC_MXC_SELECT1
	bool "Enable eSDHC1"
        depends on MMC_IMX_ESDHCI
	default y
	help
	  Enable MX25 eSDHC1 module.

config MMC_MXC_SELECT2
	bool "Enable eSDHC2"
        depends on MMC_IMX_ESDHCI
	default n
	help
	  Enable MX25 eSDHC2 module.

config MXC_PWM_SELECT1
       bool "Enable PWM1"
       depends on MXC_PWM
       default n
       help
         Enable MX25 PWM1 module.

config MXC_PWM_SELECT2
       bool "Enable PWM2"
       depends on MXC_PWM
       default n
       help
         Enable MX25 PWM2 module.

config MXC_PWM_SELECT3
       bool "Enable PWM3"
       depends on MXC_PWM
       default n
       help
         Enable MX25 PWM3 module.

config MXC_PWM_SELECT4
       bool "Enable PWM4"
       depends on MXC_PWM
       default n
       help
         Enable MX25 PWM4 module.

config SPI_MXC_SELECT1
	bool "Enable SPI1 module"
	default n
	depends on SPI_MXC
	help
	  Enable MX25 SPI1 module.

config SPI_MXC_SELECT2
	bool "Enable SPI2 module"
	default n
	depends on SPI_MXC
	help
	  Enable MX25 SPI2 module.

config SPI_MXC_SELECT3
	bool "Enable SPI3 module"
	default n
	depends on SPI_MXC
	help
	  Enable MX25 SPI3 module.

config FLEXCAN_SELECT1
	bool "Enable FlexCAN1 module"
	default n
	depends on CAN_FLEXCAN
	help
	  Enable MX25 FlexCAN1 module.

config FLEXCAN_SELECT2
	bool "Enable FlexCAN2 module"
	default n
	depends on CAN_FLEXCAN
	help
	  Enable MX25 FlexCAN2 module.

config MXC_AUDMUX_SELECT5
	bool
	default y

config MXC_AUDMUX_SELECT6
	bool
	default n

endmenu

menu "Armadillo-400 Board options"
	depends on MACH_ARMADILLO420 || MACH_ARMADILLO440

config ARMADILLO400_UART3_CON9
	bool "Enable UART3 at CON9"
	default y
	help
	  Enable UART3 at CON9

	  CON9_3: UART3_RXD
	  CON9_5: UART3_TXD
	select ARMADILLO400_CON9_3_UART3_RXD
	select ARMADILLO400_CON9_5_UART3_TXD
	select SERIAL_MXC_SELECT3

config ARMADILLO400_UART3_HW_FLOW_CON9
	bool "Enable UART3 HW flow control at CON9"
	default n
	depends on ARMADILLO400_UART3_CON9
	help
	  Enable UART3 HW flow control at CON9

	  CON9_11: UART3_RTS
	  CON9_13: UART3_CTS
	select ARMADILLO400_CON9_11_UART3_RTS
	select ARMADILLO400_CON9_13_UART3_CTS
	select SERIAL_MXC_HW_FLOW3

config ARMADILLO400_UART3_CON11
	bool "Enable UART3 at CON11"
	default n
	depends on !ARMADILLO400_UART3_CON9 && !ARMADILLO400_KEYPAD_ROW0_CON11_40 && !ARMADILLO400_KEYPAD_ROW1_CON11_41
	help
	  Enable UART3 at CON11

	  CON11_40: UART3_RXD
	  CON11_41: UART3_TXD
	select ARMADILLO400_CON11_40_UART3_RXD
	select ARMADILLO400_CON11_41_UART3_TXD
	select SERIAL_MXC_SELECT3

config ARMADILLO400_UART3_HW_FLOW_CON11
	bool "Enable UART3 HW flow control at CON11"
	default n
	depends on ARMADILLO400_UART3_CON11 && !ARMADILLO400_KEYPAD_ROW2_CON11_42 && !ARMADILLO400_KEYPAD_ROW3_CON11_43
	help
	  Enable Enable UART3 HW flow control at CON11

	  CON11_42: UART3_RTS
	  CON11_43: UART3_CTS
	select ARMADILLO400_CON11_42_UART3_RTS
	select ARMADILLO400_CON11_43_UART3_CTS
	select SERIAL_MXC_HW_FLOW3

config ARMADILLO400_UART4_CON11
	bool "Enable UART4 at CON11"
	default n
	depends on !ARMADILLO400_KEYPAD_COL0_CON11_44 && !ARMADILLO400_KEYPAD_COL1_CON11_45
	help
	  Enable UART4 at CON11

	  CON11_44: UART4_RXD
	  CON11_45: UART4_TXD
	select ARMADILLO400_CON11_44_UART4_RXD
	select ARMADILLO400_CON11_45_UART4_TXD
	select SERIAL_MXC_SELECT4

config ARMADILLO400_UART4_HW_FLOW_CON11
	bool "Enable UART4 HW flow control at CON11"
	default n
	depends on ARMADILLO400_UART4_CON11 && !ARMADILLO400_KEYPAD_COL2_CON11_46 && !ARMADILLO400_KEYPAD_COL3_CON11_47
	help
	  Enable UART4 HW flow control at CON11

	  CON11_46: UART4_RTS
	  CON11_47: UART4_CTS
	select ARMADILLO400_CON11_46_UART4_RTS
	select ARMADILLO400_CON11_47_UART4_CTS
	select SERIAL_MXC_HW_FLOW4

config ARMADILLO400_UART5_CON9
	bool "Enable UART5 at CON9"
	default y
	help
	  Enable UART5 at CON9

	  CON9_4: UART5_RXD
	  CON9_6: UART5_TXD
	select ARMADILLO400_CON9_4_UART5_RXD
	select ARMADILLO400_CON9_6_UART5_TXD
	select SERIAL_MXC_SELECT5

config ARMADILLO400_UART5_HW_FLOW_CON9
	bool "Enable UART5 HW flow control at CON9"
	default n
	depends on ARMADILLO400_UART5_CON9
	help
	  Enable UART5 HW flow control at CON9

	  CON9_12: UART5_RTS
	  CON9_14: UART5_CTS
	select ARMADILLO400_CON9_12_UART5_RTS
	select ARMADILLO400_CON9_14_UART5_CTS
	select SERIAL_MXC_HW_FLOW5

config ARMADILLO400_I2C2_CON14
	bool "Enable I2C2 at CON14"
	default y
	help
	  Enable I2C2 at CON14

	  CON14_3: I2C2_SCL
	  CON14_4: I2C2_SDA
	select ARMADILLO400_CON14_3_I2C2_SCL
	select ARMADILLO400_CON14_4_I2C2_SDA
	select I2C_MXC_SELECT2

config ARMADILLO400_I2C3_CON11
	bool "Enable I2C3 at CON11"
	default y
	depends on !ARMADILLO400_KEYPAD_ROW4_CON11_48 && !ARMADILLO400_KEYPAD_ROW5_CON11_49
	help
	  Enable I2C3 at CON11

	  CON11_48: I2C3_SCL
	  CON11_49: I2C3_SDA
	select ARMADILLO400_CON11_48_I2C3_SCL
	select ARMADILLO400_CON11_49_I2C3_SDA
	select I2C_MXC_SELECT3

config ARMADILLO400_SPI1_CON9
	bool "Enable SPI1 at CON9"
	default n
	depends on !ARMADILLO400_UART3_CON9 && !ARMADILLO400_UART3_HW_FLOW_CON9
	help
	  Enable SPI1 at CON9

	  CON9_3: CSPI1_MOSI
	  CON9_5: CSPI1_MISO
	  CON9_13: CSPI1_SCLK
	  CON9_26: CSPI1_RDY
	select ARMADILLO400_CON9_3_CSPI1_MOSI
	select ARMADILLO400_CON9_5_CSPI1_MISO
	select ARMADILLO400_CON9_13_CSPI1_SCLK
	select ARMADILLO400_CON9_26_CSPI1_RDY
	select SPI_MXC_SELECT1

config ARMADILLO400_SPI1_SS0_CON9_25
	bool "Enable SPI1_SS0 at CON9_25"
	default y
	depends on ARMADILLO400_SPI1_CON9
	help
	  Enable SPI1_SS0 at CON9_25
	select ARMADILLO400_CON9_25_CSPI1_SS0

config ARMADILLO400_SPI1_SS1_CON9_11
	bool "Enable SPI1_SS1 at CON9_11"
	default y
	depends on ARMADILLO400_SPI1_CON9
	help
	  Enable SPI1_SS1 at CON9_11
	select ARMADILLO400_CON9_11_CSPI1_SS1

config ARMADILLO400_SPI3_CON9
	bool "Enable SPI3 at CON9"
	default n
	depends on !ARMADILLO400_UART5_CON9 && !ARMADILLO400_UART5_HW_FLOW_CON9
	help
	  Enable SPI3 at CON9

	  CON9_4: CSPI3_MOSI
	  CON9_6: CSPI3_MISO
	  CON9_12: CSPI3_SCLK
	  CON9_14: CSPI3_RDY
	select ARMADILLO400_CON9_4_CSPI3_MOSI
	select ARMADILLO400_CON9_6_CSPI3_MISO
	select ARMADILLO400_CON9_12_CSPI3_SCLK
	select ARMADILLO400_CON9_14_CSPI3_RDY
	select SPI_MXC_SELECT3

config ARMADILLO400_SPI3_SS0_CON9_16
	bool "Enable SPI3_SS0 at CON9_16"
	default y
	depends on ARMADILLO400_SPI3_CON9
	help
	  Enable SPI3_SS0 at CON9_16
	select ARMADILLO400_CON9_16_CSPI3_SS0

config ARMADILLO400_SPI3_SS1_CON9_18
	bool "Enable SPI3_SS1 at CON9_18"
	default y
	depends on ARMADILLO400_SPI3_CON9
	help
	  Enable SPI3_SS1 at CON9_18
	select ARMADILLO400_CON9_18_CSPI3_SS1

config ARMADILLO400_SPI3_SS2_CON9_15
	bool "Enable SPI3_SS2 at CON9_15"
	default y
	depends on ARMADILLO400_SPI3_CON9
	help
	  Enable SPI3_SS2 at CON9_15
	select ARMADILLO400_CON9_15_CSPI3_SS2

config ARMADILLO400_SPI3_SS3_CON9_17
	bool "Enable SPI3_SS3 at CON9_17"
	default y
	depends on ARMADILLO400_SPI3_CON9
	help
	  Enable SPI3_SS3 at CON9_17
	select ARMADILLO400_CON9_17_CSPI3_SS3

config ARMADILLO400_W1_CON9_2
	bool "Enable one wire at CON9_2"
	default n
	select ARMADILLO400_CON9_2_W1

config ARMADILLO400_W1_CON9_26
	bool "Enable one wire at CON9_26"
	default n
	depends on !ARMADILLO400_SPI1_CON9
	select ARMADILLO400_CON9_26_W1

config ARMADILLO400_CAN2_CON14
	bool "Enable CAN2 at CON14"
	default n
	depends on !ARMADILLO400_I2C2_CON14
	help
	  Enable CAN2 at CON14

	  CON14_3: CAN2_TXCAN
	  CON14_4: CAN2_RXCAN
	select ARMADILLO400_CON14_3_CAN2_TXCAN
	select ARMADILLO400_CON14_4_CAN2_RXCAN
	select FLEXCAN_SELECT2

config ARMADILLO400_PWM2_CON9_25
	bool "Enable PWM2 at CON9_25"
	default n
	depends on !ARMADILLO400_SPI1_SS0_CON9_25
        select ARMADILLO400_CON9_25_PWMO2
	select MXC_PWM_SELECT2

config ARMADILLO400_PWM4_CON14_3
	bool "Enable PWM4 at CON14_3"
	default n
	depends on !ARMADILLO400_I2C2_CON14 && !ARMADILLO400_CAN2_CON14
        select ARMADILLO400_CON14_3_PWMO4
	select MXC_PWM_SELECT4

config ARMADILLO400_SDHC2_CON9
	bool "Enable SDHC2 at CON9"
	default n
	depends on !ARMADILLO400_SPI3_SS0_CON9_16 && !ARMADILLO400_SPI3_SS1_CON9_18 && !ARMADILLO400_SPI3_SS2_CON9_15 && !ARMADILLO400_SPI3_SS3_CON9_17
	help
	  Enable SDHC2 at CON9

	  CON9_15: SDHC2_WP
	  CON9_16: SDHC2_CMD
	  CON9_17: SDHC2_CD
	  CON9_18: SDHC2_CLK
	  CON9_21: SDHC2_DATA0
	  CON9_22: SDHC2_DATA1
	  CON9_23: SDHC2_DATA2
	  CON9_24: SDHC2_DATA3
	select ARMADILLO400_CON9_15_SDHC2_WP
	select ARMADILLO400_CON9_16_SDHC2_CMD
	select ARMADILLO400_CON9_17_SDHC2_CD
	select ARMADILLO400_CON9_18_SDHC2_CLK
	select ARMADILLO400_CON9_21_SDHC2_DATA0
	select ARMADILLO400_CON9_22_SDHC2_DATA1
	select ARMADILLO400_CON9_23_SDHC2_DATA2
	select ARMADILLO400_CON9_24_SDHC2_DATA3
	select MMC_MXC_SELECT2

config ARMADILLO400_AUD5_CON11
	bool "Enable AUD5 at CON11"
	default y
	depends on !ARMADILLO400_KEYPAD_ROW2_CON11_42 && !ARMADILLO400_KEYPAD_ROW3_CON11_43 && !ARMADILLO400_KEYPAD_COL0_CON11_44 && !ARMADILLO400_KEYPAD_COL1_CON11_45 && !ARMADILLO400_KEYPAD_COL2_CON11_46 && !ARMADILLO400_KEYPAD_COL3_CON11_47
	depends on !ARMADILLO400_UART3_HW_FLOW_CON11 && !ARMADILLO400_UART4_CON11 && !ARMADILLO400_UART4_HW_FLOW_CON11
	help
	  Enable AUDMUX5 at CON11

	  CON11_42: AUD5_RXC
	  CON11_43: AUD5_RXFS
	  CON11_44: AUD5_TXD
	  CON11_45: AUD5_RXD
	  CON11_46: AUD5_TXC
	  CON11_47: AUD5_TXFS
	select ARMADILLO400_CON11_42_AUD5_RXC
	select ARMADILLO400_CON11_43_AUD5_RXFS
	select ARMADILLO400_CON11_44_AUD5_TXD
	select ARMADILLO400_CON11_45_AUD5_RXD
	select ARMADILLO400_CON11_46_AUD5_TXC
	select ARMADILLO400_CON11_47_AUD5_TXFS
	select MXC_AUDMUX_SELECT5

config ARMADILLO400_AUD6_CON9
	bool "Enable AUD6 at CON9"
	default n
	depends on !ARMADILLO400_SPI3_SS2_CON9_15 && !ARMADILLO400_SPI3_SS3_CON9_17 && !ARMADILLO400_SDHC2_CON9 && !ARMADILLO400_AUD5_CON11
	help
	  Enable AUDMUX6 at CON9

	  CON9_15: AUD6_RXC
	  CON9_17: AUD6_RXFS
	  CON9_21: AUD6_TXD
	  CON9_22: AUD6_RXD
	  CON9_23: AUD6_TXC
	  CON9_24: AUD6_TXFS
	select ARMADILLO400_CON9_15_AUD6_RXC
	select ARMADILLO400_CON9_17_AUD6_RXFS
	select ARMADILLO400_CON9_21_AUD6_TXD
	select ARMADILLO400_CON9_22_AUD6_RXD
	select ARMADILLO400_CON9_23_AUD6_TXC
	select ARMADILLO400_CON9_24_AUD6_TXFS
	select MXC_AUDMUX_SELECT6

config ARMADILLO400_KEYPAD_CON11
	bool "Enable Keypad at CON11"
	default n

config ARMADILLO400_KEYPAD_ROW0_CON11_40
	bool "Enable Keypad ROW0 at CON11_40"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_40_KPP_ROW0

config ARMADILLO400_KEYPAD_ROW1_CON11_41
	bool "Enable Keypad ROW1 at CON11_41"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_41_KPP_ROW1

config ARMADILLO400_KEYPAD_ROW2_CON11_42
	bool "Enable Keypad ROW2 at CON11_42"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_42_KPP_ROW2

config ARMADILLO400_KEYPAD_ROW3_CON11_43
	bool "Enable Keypad ROW3 at CON11_43"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_43_KPP_ROW3

config ARMADILLO400_KEYPAD_COL0_CON11_44
	bool "Enable Keypad COL0 at CON11_44"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_44_KPP_COL0

config ARMADILLO400_KEYPAD_COL1_CON11_45
	bool "Enable Keypad COL1 at CON11_45"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_45_KPP_COL1

config ARMADILLO400_KEYPAD_COL2_CON11_46
	bool "Enable Keypad COL2 at CON11_46"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_46_KPP_COL2

config ARMADILLO400_KEYPAD_COL3_CON11_47
	bool "Enable Keypad COL3 at CON11_47"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_47_KPP_COL3

config ARMADILLO400_KEYPAD_ROW4_CON11_48
	bool "Enable Keypad ROW4 at CON11_48"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_48_KPP_ROW4

config ARMADILLO400_KEYPAD_ROW5_CON11_49
	bool "Enable Keypad ROW5 at CON11_49"
	default y
	depends on ARMADILLO400_KEYPAD_CON11
	select ARMADILLO400_CON11_49_KPP_ROW5

config ARMADILLO400_CON9_1_GPIO3_17
	bool
	default y

config ARMADILLO400_CON9_2_GPIO3_14
	bool
	default y if !ARMADILLO400_CON9_2_W1

config ARMADILLO400_CON9_2_W1
	bool
	default n

config ARMADILLO400_CON9_3_GPIO1_14
	bool
	default y if !ARMADILLO400_CON9_3_UART3_RXD && !ARMADILLO400_CON9_3_CSPI1_MOSI

config ARMADILLO400_CON9_3_UART3_RXD
	bool
	default n

config ARMADILLO400_CON9_3_CSPI1_MOSI
	bool
	default n

config ARMADILLO400_CON9_4_GPIO1_27
	bool
	default y if !ARMADILLO400_CON9_4_UART5_RXD && !ARMADILLO400_CON9_4_CSPI3_MOSI

config ARMADILLO400_CON9_4_UART5_RXD
	bool
	default n

config ARMADILLO400_CON9_4_CSPI3_MOSI
	bool
	default n

config ARMADILLO400_CON9_5_GPIO1_15
	bool
	default y if !ARMADILLO400_CON9_5_UART3_TXD && !ARMADILLO400_CON9_5_CSPI1_MISO

config ARMADILLO400_CON9_5_UART3_TXD
	bool
	default n

config ARMADILLO400_CON9_5_CSPI1_MISO
	bool
	default n

config ARMADILLO400_CON9_6_GPIO1_28
	bool
	default y if !ARMADILLO400_CON9_6_UART5_TXD && !ARMADILLO400_CON9_6_CSPI3_MISO

config ARMADILLO400_CON9_6_UART5_TXD
	bool
	default n

config ARMADILLO400_CON9_6_CSPI3_MISO
	bool
	default n

config ARMADILLO400_CON9_11_GPIO1_17
	bool
	default y if !ARMADILLO400_CON9_11_UART3_RTS && !ARMADILLO400_CON9_11_CSPI1_SS1

config ARMADILLO400_CON9_11_UART3_RTS
	bool
	default n

config ARMADILLO400_CON9_11_CSPI1_SS1
	bool
	default n

config ARMADILLO400_CON9_12_GPIO1_29
	bool
	default y if !ARMADILLO400_CON9_12_UART5_RTS && !ARMADILLO400_CON9_12_CSPI3_SCLK

config ARMADILLO400_CON9_12_UART5_RTS
	bool
	default n

config ARMADILLO400_CON9_12_CSPI3_SCLK
	bool
	default n

config ARMADILLO400_CON9_13_GPIO1_18
	bool
	default y if !ARMADILLO400_CON9_13_UART3_CTS && !ARMADILLO400_CON9_13_CSPI1_SCLK

config ARMADILLO400_CON9_13_UART3_CTS
	bool
	default n

config ARMADILLO400_CON9_13_CSPI1_SCLK
	bool
	default n

config ARMADILLO400_CON9_14_GPIO1_30
	bool
	default y if !ARMADILLO400_CON9_14_UART5_CTS && !ARMADILLO400_CON9_14_CSPI3_RDY

config ARMADILLO400_CON9_14_UART5_CTS
	bool
	default n

config ARMADILLO400_CON9_14_CSPI3_RDY
	bool
	default n

config ARMADILLO400_CON9_15_GPIO1_7
	bool
	default y if !ARMADILLO400_CON9_15_SDHC2_WP && !ARMADILLO400_CON9_15_AUD6_RXC && !ARMADILLO400_CON9_15_CSPI3_SS2

config ARMADILLO400_CON9_15_SDHC2_WP
	bool
	default n

config ARMADILLO400_CON9_15_AUD6_RXC
	bool
	default n

config ARMADILLO400_CON9_15_CSPI3_SS2
	bool
	default n

config ARMADILLO400_CON9_16_GPIO1_31
	bool
	default y if !ARMADILLO400_CON9_16_SDHC2_CMD && !ARMADILLO400_CON9_16_CSPI3_SS0

config ARMADILLO400_CON9_16_SDHC2_CMD
	bool
	default n

config ARMADILLO400_CON9_16_CSPI3_SS0
	bool
	default n

config ARMADILLO400_CON9_17_GPIO4_21
	bool
	default y if !ARMADILLO400_CON9_17_SDHC2_CD && !ARMADILLO400_CON9_17_AUD6_RXFS && !ARMADILLO400_CON9_17_CSPI3_SS3

config ARMADILLO400_CON9_17_SDHC2_CD
	bool
	default n

config ARMADILLO400_CON9_17_AUD6_RXFS
	bool
	default n

config ARMADILLO400_CON9_17_CSPI3_SS3
	bool
	default n

config ARMADILLO400_CON9_18_GPIO1_6
	bool
	default y if !ARMADILLO400_CON9_18_SDHC2_CLK && !ARMADILLO400_CON9_18_CSPI3_SS1

config ARMADILLO400_CON9_18_SDHC2_CLK
	bool
	default n

config ARMADILLO400_CON9_18_CSPI3_SS1
	bool
	default n

config ARMADILLO400_CON9_21_GPIO1_8
	bool
	default y if !ARMADILLO400_CON9_21_SDHC2_DATA0 && !ARMADILLO400_CON9_21_AUD6_TXD

config ARMADILLO400_CON9_21_SDHC2_DATA0
	bool
	default n

config ARMADILLO400_CON9_21_AUD6_TXD
	bool
	default n

config ARMADILLO400_CON9_22_GPIO1_9
	bool
	default y if !ARMADILLO400_CON9_22_SDHC2_DATA1 && !ARMADILLO400_CON9_22_AUD6_RXD

config ARMADILLO400_CON9_22_SDHC2_DATA1
	bool
	default n

config ARMADILLO400_CON9_22_AUD6_RXD
	bool
	default n

config ARMADILLO400_CON9_23_GPIO1_10
	bool
	default y if !ARMADILLO400_CON9_23_SDHC2_DATA2 && !ARMADILLO400_CON9_23_AUD6_TXC

config ARMADILLO400_CON9_23_SDHC2_DATA2
	bool
	default n

config ARMADILLO400_CON9_23_AUD6_TXC
	bool
	default n

config ARMADILLO400_CON9_24_GPIO1_11
	bool
	default y if !ARMADILLO400_CON9_24_SDHC2_DATA3 && !ARMADILLO400_CON9_24_AUD6_TXFS

config ARMADILLO400_CON9_24_SDHC2_DATA3
	bool
	default n

config ARMADILLO400_CON9_24_AUD6_TXFS
	bool
	default n

config ARMADILLO400_CON9_25_GPIO1_16
	bool
	default y if !ARMADILLO400_CON9_25_PWMO2 && !ARMADILLO400_CON9_25_CSPI1_SS0

config ARMADILLO400_CON9_25_PWMO2
	bool
	default n

config ARMADILLO400_CON9_25_CSPI1_SS0
	bool
	default n

config ARMADILLO400_CON9_26_GPIO
	bool
	default y if !ARMADILLO400_CON9_26_W1 && !ARMADILLO400_CON9_26_CSPI1_RDY

config ARMADILLO400_CON9_26_W1
	bool
	default n

config ARMADILLO400_CON9_26_CSPI1_RDY
	bool
	default n

config ARMADILLO400_CON9_27_GPIO2_21
	bool
	default y

config ARMADILLO400_CON9_28_GPIO3_15
	bool
	default y

config ARMADILLO400_CON11_40_GPIO_2_29
	bool
	default y if !ARMADILLO400_CON11_40_UART3_RXD && !ARMADILLO400_CON11_40_KPP_ROW0

config ARMADILLO400_CON11_40_UART3_RXD
	bool
	default n

config ARMADILLO400_CON11_40_KPP_ROW0
	bool
	default n

config ARMADILLO400_CON11_41_GPIO_2_30
	bool
	default y if !ARMADILLO400_CON11_41_UART3_TXD && !ARMADILLO400_CON11_41_KPP_ROW1

config ARMADILLO400_CON11_41_UART3_TXD
	bool
	default n

config ARMADILLO400_CON11_41_KPP_ROW1
	bool
	default n

config ARMADILLO400_CON11_42_AUD5_RXC
	bool
	default n

config ARMADILLO400_CON11_42_UART3_RTS
	bool
	default n

config ARMADILLO400_CON11_42_KPP_ROW2
	bool
	default n

config ARMADILLO400_CON11_43_AUD5_RXFS
	bool
	default n

config ARMADILLO400_CON11_43_UART3_CTS
	bool
	default n

config ARMADILLO400_CON11_43_KPP_ROW3
	bool
	default n

config ARMADILLO400_CON11_44_AUD5_TXD
	bool
	default n

config ARMADILLO400_CON11_44_UART4_RXD
	bool
	default n

config ARMADILLO400_CON11_44_KPP_COL0
	bool
	default n

config ARMADILLO400_CON11_45_AUD5_RXD
	bool
	default n

config ARMADILLO400_CON11_45_UART4_TXD
	bool
	default n

config ARMADILLO400_CON11_45_KPP_COL1
	bool
	default n

config ARMADILLO400_CON11_46_AUD5_TXC
	bool
	default n

config ARMADILLO400_CON11_46_UART4_RTS
	bool
	default n

config ARMADILLO400_CON11_46_KPP_COL2
	bool
	default n

config ARMADILLO400_CON11_47_AUD5_TXFS
	bool
	default n

config ARMADILLO400_CON11_47_UART4_CTS
	bool
	default n

config ARMADILLO400_CON11_47_KPP_COL3
	bool
	default n

config ARMADILLO400_CON11_48_GPIO1_0
	bool
	default n

config ARMADILLO400_CON11_48_I2C3_SCL
	bool
	default n

config ARMADILLO400_CON11_48_KPP_ROW4
	bool
	default n

config ARMADILLO400_CON11_49_GPIO1_1
	bool
	default n

config ARMADILLO400_CON11_49_I2C3_SDA
	bool
	default n

config ARMADILLO400_CON11_49_KPP_ROW5
	bool
	default n

config ARMADILLO400_CON14_3_GPIO1_2
	bool
	default y if !ARMADILLO400_CON14_3_I2C2_SCL && !ARMADILLO400_CON14_3_PWMO4 && !ARMADILLO400_CON14_3_CAN2_TXCAN

config ARMADILLO400_CON14_3_I2C2_SCL
	bool
	default n

config ARMADILLO400_CON14_3_PWMO4
	bool
	default n

config ARMADILLO400_CON14_3_CAN2_TXCAN
	bool
	default n

config ARMADILLO400_CON14_4_GPIO1_3
	bool
	default y if !ARMADILLO400_CON14_4_I2C2_SDA && !ARMADILLO400_CON14_4_CAN2_RXCAN

config ARMADILLO400_CON14_4_I2C2_SDA
	bool
	default n

config ARMADILLO400_CON14_4_CAN2_RXCAN
	bool
	default n

config ARMADILLO400_GPIO_A_B_GPIO
	bool
	depends on !ARMADILLO400_GPIO_A_B_I2C

config ARMADILLO400_GPIO_A_B_I2C
	bool
	depends on !ARMADILLO400_GPIO_A_B_GPIO
	select ARMADILLO400_I2C3_CON11

config ARMADILLO400_GPIO_C_D_GPIO
	bool
	depends on !ARMADILLO400_GPIO_C_D_I2C

config ARMADILLO400_GPIO_C_D_I2C
	bool
	depends on !ARMADILLO400_GPIO_C_D_GPIO
	select ARMADILLO400_I2C2_CON14

config ARMADILLO400_CON9_15_CON9_24_GPIO
	bool
	depends on !ARMADILLO400_CON9_15_CON9_24_SDHC2

config ARMADILLO400_CON9_15_CON9_24_SDHC2
	bool
	depends on !ARMADILLO400_CON9_15_CON9_24_GPIO
	select ARMADILLO400_SDHC2_CON9

comment "Select wakeup source"

config ARMADILLO400_UART1_WAKE_SRC_SELECT
	bool "Select UART1 for wakeup source"
	default y
	depends on SERIAL_MXC_SELECT1
	select SERIAL_MXC_WAKE_SRC_SELECT1

config ARMADILLO400_UART2_WAKE_SRC_SELECT
	bool "Select UART2 for wakeup source"
	default y
	depends on SERIAL_MXC_SELECT2
	select SERIAL_MXC_WAKE_SRC_SELECT2

config ARMADILLO400_UART3_WAKE_SRC_SELECT
	bool "Select UART3 for wakeup source"
	default y
	depends on SERIAL_MXC_SELECT3
	select SERIAL_MXC_WAKE_SRC_SELECT3

config ARMADILLO400_UART4_WAKE_SRC_SELECT
	bool "Select UART4 for wakeup source"
	default y
	depends on SERIAL_MXC_SELECT4
	select SERIAL_MXC_WAKE_SRC_SELECT4

config ARMADILLO400_UART5_WAKE_SRC_SELECT
	bool "Select UART5 for wakeup source"
	default y
	depends on SERIAL_MXC_SELECT5
	select SERIAL_MXC_WAKE_SRC_SELECT5

config ARMADILLO400_TOUCHSCREEN_WAKE_SRC_SELECT
	bool "Select touchscreen for wakeup source"
        default y
        depends on TOUCHSCREEN_IMX_ADC

config ARMADILLO400_TOUCHSCREEN_IS_WAKE_SRC
	int
        default 0 if !ARMADILLO400_TOUCHSCREEN_WAKE_SRC_SELECT
        default 1 if ARMADILLO400_TOUCHSCREEN_WAKE_SRC_SELECT

config ARMADILLO400_GPIO_KEYS_WAKE_SRC_SELECT
	bool "Select GPIO Keys for wakeup source"
        default y
        depends on KEYBOARD_GPIO

config ARMADILLO400_GPIO_KEYS_IS_WAKE_SRC
	int
        default 0 if !ARMADILLO400_GPIO_KEYS_WAKE_SRC_SELECT
        default 1 if ARMADILLO400_GPIO_KEYS_WAKE_SRC_SELECT

endmenu

endmenu
