config ARM
	bool
	select HAS_KALLSYMS
	select HAS_MODULES
	select HAVE_CONFIGURABLE_TEXT_BASE
	select HAVE_PBL_IMAGE
	select HAVE_IMAGE_COMPRESSION
	default y

config ARM_LINUX
	bool
	default y
	depends on CMD_BOOTZ || CMD_BOOTU || BOOTM

config HAVE_MACH_ARM_HEAD
	bool

menu "System Type"

config BUILTIN_DTB
	bool "link a DTB into the barebox image"
	depends on OFTREE

config BUILTIN_DTB_NAME
	string "DTB to build into the barebox image"
	depends on BUILTIN_DTB

choice
	prompt "ARM system type"

config ARCH_AT91
	bool "Atmel AT91"
	select GPIOLIB
	select CLKDEV_LOOKUP
	select HAS_DEBUG_LL
	select HAVE_MACH_ARM_HEAD
	select HAVE_CLK

config ARCH_BCM2835
	bool "Broadcom BCM2835 boards"
	select GPIOLIB
	select CPU_ARM1176
	select CLKDEV_LOOKUP
	select COMMON_CLK
	select CLOCKSOURCE_BCM2835
	select ARM_AMBA

config ARCH_CLPS711X
	bool "Cirrus Logic EP711x/EP721x/EP731x"
	select CLKDEV_LOOKUP
	select CLOCKSOURCE_CLPS711X
	select COMMON_CLK
	select CPU_32v4T
	select GPIOLIB
	select MFD_SYSCON

config ARCH_DAVINCI
	bool "TI Davinci"
	select CPU_ARM926T
	select HAS_DEBUG_LL
	select GPIOLIB

config ARCH_EP93XX
	bool "Cirrus Logic EP93xx"
	select CPU_ARM920T
	select GENERIC_GPIO

config ARCH_HIGHBANK
	bool "Calxeda Highbank"
	select HAS_DEBUG_LL
	select HAS_POWEROFF
	select ARCH_HAS_L2X0
	select CPU_V7
	select ARM_AMBA
	select AMBA_SP804
	select CLKDEV_LOOKUP
	select COMMON_CLK
	select GPIOLIB

config ARCH_IMX
	bool "Freescale iMX-based"
	select GPIOLIB
	select COMMON_CLK
	select CLKDEV_LOOKUP
	select WATCHDOG_IMX_RESET_SOURCE
	select HAS_DEBUG_LL

config ARCH_MVEBU
	bool "Marvell EBU platforms"
	select COMMON_CLK
	select COMMON_CLK_OF_PROVIDER
	select CLKDEV_LOOKUP
	select GPIOLIB
	select HAS_DEBUG_LL
	select HAVE_PBL_MULTI_IMAGES
	select MVEBU_MBUS
	select OFTREE
	select OF_ADDRESS_PCI

config ARCH_MXS
	bool "Freescale i.MX23/28 (mxs) based"
	select GENERIC_GPIO
	select COMMON_CLK
	select CLKDEV_LOOKUP
	select HAS_DEBUG_LL

config ARCH_NETX
	bool "Hilscher NetX based"
	select CPU_ARM926T

config ARCH_NOMADIK
	bool "STMicroelectronics Nomadik"
	select CPU_ARM926T
	select CLOCKSOURCE_NOMADIK
	select HAVE_CLK
	help
	  Support for the Nomadik platform by ST-Ericsson

config ARCH_OMAP
	bool "TI OMAP"
	select HAS_DEBUG_LL
	select GPIOLIB

config ARCH_PXA
	bool "Intel/Marvell PXA based"
	select GENERIC_GPIO
	select HAS_POWEROFF

config ARCH_ROCKCHIP
	bool "Rockchip RX3xxx"
	select CPU_V7
	select ARM_SMP_TWD
	select COMMON_CLK
	select CLKDEV_LOOKUP
	select COMMON_CLK_OF_PROVIDER
	select GPIOLIB
	select PINCTRL_ROCKCHIP
	select HAVE_PBL_MULTI_IMAGES

config ARCH_SOCFPGA
	bool "Altera SOCFPGA cyclone5"
	select HAS_DEBUG_LL
	select ARM_SMP_TWD
	select CPU_V7
	select COMMON_CLK
	select CLKDEV_LOOKUP
	select GPIOLIB
	select HAVE_PBL_MULTI_IMAGES

config ARCH_S3C24xx
	bool "Samsung S3C2410, S3C2440"
	select ARCH_SAMSUNG
	select CPU_ARM920T
	select GENERIC_GPIO

config ARCH_S5PCxx
	bool "Samsung S5PC110, S5PV210"
	select ARCH_SAMSUNG
	select CPU_V7
	select GENERIC_GPIO

config ARCH_S3C64xx
	bool "Samsung S3C64xx"
	select ARCH_SAMSUNG
	select CPU_V6
	select GENERIC_GPIO

config ARCH_VERSATILE
	bool "ARM Versatile boards (ARM926EJ-S)"
	select CPU_ARM926T
	select GPIOLIB
	select HAVE_CLK

config ARCH_VEXPRESS
	bool "ARM Vexpres boards"
	select HAS_DEBUG_LL
	select CPU_V7
	select ARM_AMBA
	select AMBA_SP804
	select CLKDEV_LOOKUP
	select COMMON_CLK

config ARCH_TEGRA
	bool "NVIDIA Tegra"
	select CPU_V7
	select HAS_DEBUG_LL
	select COMMON_CLK
	select COMMON_CLK_OF_PROVIDER
	select CLKDEV_LOOKUP
	select GPIOLIB
	select GPIO_TEGRA
	select HAVE_DEFAULT_ENVIRONMENT_NEW
	select HAVE_PBL_MULTI_IMAGES
	select OFDEVICE
	select OFTREE
	select RELOCATABLE
	select RESET_CONTROLLER

config ARCH_UEMD
	bool "RC Module UEMD Platform"
	select CPU_ARM1176
	select COMMON_CLK
	select COMMON_CLK_OF_PROVIDER
	select CLKDEV_LOOKUP
	select OFDEVICE
	select OFTREE
	select CLOCKSOURCE_UEMD
	select HAS_DEBUG_LL

config ARCH_ZYNQ
	bool "Xilinx Zynq-based boards"
	select HAS_DEBUG_LL

endchoice

source arch/arm/cpu/Kconfig
source arch/arm/mach-at91/Kconfig
source arch/arm/mach-bcm2835/Kconfig
source arch/arm/mach-clps711x/Kconfig
source arch/arm/mach-davinci/Kconfig
source arch/arm/mach-ep93xx/Kconfig
source arch/arm/mach-highbank/Kconfig
source arch/arm/mach-imx/Kconfig
source arch/arm/mach-mxs/Kconfig
source arch/arm/mach-mvebu/Kconfig
source arch/arm/mach-netx/Kconfig
source arch/arm/mach-nomadik/Kconfig
source arch/arm/mach-omap/Kconfig
source arch/arm/mach-pxa/Kconfig
source arch/arm/mach-rockchip/Kconfig
source arch/arm/mach-samsung/Kconfig
source arch/arm/mach-socfpga/Kconfig
source arch/arm/mach-versatile/Kconfig
source arch/arm/mach-vexpress/Kconfig
source arch/arm/mach-tegra/Kconfig
source arch/arm/mach-uemd/Kconfig
source arch/arm/mach-zynq/Kconfig

config ARM_ASM_UNIFIED
	bool

config AEABI
	bool "Use the ARM EABI to compile barebox"
	help
	  This option allows for barebox to be compiled using the latest
	  ARM ABI (aka EABI).

	  To use this you need GCC version 4.0.0 or later.

config THUMB2_BAREBOX
	select ARM_ASM_UNIFIED
	select AEABI
	depends on CPU_V7 && !CPU_32v4T && !CPU_32v5 && !CPU_32v6
	bool "Compile barebox in thumb-2 mode (read help)"
	help
	  This enables compilation of barebox in thumb-2 mode which generates
	  ~25% smaller binaries. ARM assembly code needs some fixups to be able
	  to work correctly in thumb-2 mode. the barebox core should have these
	  fixups since most assembly code is derived from the Kernel. However,
	  your board lowlevel init code may break in thumb-2 mode. You have been
	  warned.

config ARM_BOARD_APPEND_ATAG
	bool "Let board specific code to add ATAGs to be passed to the kernel"
	depends on ARM_LINUX
	help
	  This option is purely to start some vendor provided kernels.
	  ** DO NOT USE FOR YOUR OWN DESIGNS! **

endmenu

menu "ARM specific settings"

config CPU_V7_DCACHE_SKIP
	bool "Skip DCache Invalidate"
	depends on CPU_V7
	default n
	help
	  If your architecture configuration uses some other method of disabling caches, enable this
	  So that the D-Cache invalidation logic is skipped

config ARM_OPTIMZED_STRING_FUNCTIONS
	bool "use assembler optimized string functions"
	help
	  Say yes here to use assembler optimized memcpy / memset functions.
	  These functions work much faster than the normal versions but
	  increase your binary size.

config ARM_EXCEPTIONS
	bool "enable arm exception handling support"
	default y

config ARM_UNWIND
	bool "enable stack unwinding support"
	depends on AEABI
	depends on ARM_EXCEPTIONS
	help
	  This option enables stack unwinding support in barebox
	  using the information automatically generated by the
	  compiler. The resulting kernel image is slightly bigger but
	  the performance is not affected. Currently, this feature
	  only works with EABI compilers. If unsure say Y.

endmenu

source common/Kconfig
source commands/Kconfig
source net/Kconfig
source drivers/Kconfig
source fs/Kconfig
source lib/Kconfig
source crypto/Kconfig
