#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#

if ARCH_TRICORE
comment "Tricore Options"

choice
	prompt "Tricore Toolchain Selection"
	default TRICORE_TOOLCHAIN_GNU

config TRICORE_TOOLCHAIN_TASKING
	bool "AURIX Tasking C/C++ toolchain"
	select ARCH_TOOLCHAIN_TASKING

config TRICORE_TOOLCHAIN_GNU
	bool "Generic GNU toolchain"
	select ARCH_TOOLCHAIN_GNU
	---help---
		This option should work for any modern GNU toolchain (GCC 4.5 or newer)

endchoice # Tricore Toolchain Selection

config ARCH_TC3XX
	bool
	select ARCH_HAVE_TESTSET
	select ARCH_HAVE_IRQTRIGGER
	select ARCH_MINIMAL_VECTORTABLE
	select ARCH_MINIMAL_VECTORTABLE_DYNAMIC
	default n

config ARCH_FAMILY
	string
	default "tc3xx"		if ARCH_TC3XX

config ARCH_CHIP
	string
	default "tc397"		if ARCH_CHIP_TC397

config ARCH_CHIP_TC397
	bool "AURIX Family TC397"
	select ARCH_TC3XX
	select ALARM_ARCH
	select ONESHOT
	select ONESHOT_COUNT
	---help---
		AURIX TC39x family: TC397

config ARCH_DCACHE_ADDR
	hex "AURIX Dcache base address"
	default 0x7003C000
	---help---
		AURIX Dcache base address, dcache line clear and invalidate need
		use the address.

config ARCH_MPU_NSETS
	int "Protection sets number"
	default 7
	---help---
		The protection sets count

config ARCH_MPU_DATA_NREGIONS
	int "Data regions number"
	default 23
	---help---
		The data regions count

config ARCH_MPU_CODE_NREGIONS
	int "Code regions variables"
	default 15
	---help---
		The code regions count


if ARCH_TC3XX
source "arch/tricore/src/tc3xx/Kconfig"
endif
if ARCH_TC397
source "arch/tricore/src/tc397/Kconfig"
endif
endif # ARCH_TRICORE
