162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci
362306a36Sopenharmony_cimenuconfig ARCH_DAVINCI
462306a36Sopenharmony_ci	bool "TI DaVinci"
562306a36Sopenharmony_ci	depends on ARCH_MULTI_V5
662306a36Sopenharmony_ci	depends on CPU_LITTLE_ENDIAN
762306a36Sopenharmony_ci	select CPU_ARM926T
862306a36Sopenharmony_ci	select DAVINCI_TIMER
962306a36Sopenharmony_ci	select ZONE_DMA
1062306a36Sopenharmony_ci	select PM_GENERIC_DOMAINS if PM
1162306a36Sopenharmony_ci	select PM_GENERIC_DOMAINS_OF if PM && OF
1262306a36Sopenharmony_ci	select REGMAP_MMIO
1362306a36Sopenharmony_ci	select RESET_CONTROLLER
1462306a36Sopenharmony_ci	select PINCTRL
1562306a36Sopenharmony_ci	select PINCTRL_SINGLE
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciif ARCH_DAVINCI
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_cicomment "DaVinci Core Type"
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ciconfig ARCH_DAVINCI_DA830
2262306a36Sopenharmony_ci	bool "DA830/OMAP-L137/AM17x based system"
2362306a36Sopenharmony_ci	select ARCH_DAVINCI_DA8XX
2462306a36Sopenharmony_ci	# needed on silicon revs 1.0, 1.1:
2562306a36Sopenharmony_ci	select CPU_DCACHE_WRITETHROUGH if !CPU_DCACHE_DISABLE
2662306a36Sopenharmony_ci	select DAVINCI_CP_INTC
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciconfig ARCH_DAVINCI_DA850
2962306a36Sopenharmony_ci	bool "DA850/OMAP-L138/AM18x based system"
3062306a36Sopenharmony_ci	select DAVINCI_CP_INTC
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciconfig ARCH_DAVINCI_DA8XX
3362306a36Sopenharmony_ci	bool
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciconfig DAVINCI_MUX
3662306a36Sopenharmony_ci	bool "DAVINCI multiplexing support"
3762306a36Sopenharmony_ci	depends on ARCH_DAVINCI
3862306a36Sopenharmony_ci	default y
3962306a36Sopenharmony_ci	help
4062306a36Sopenharmony_ci	  Pin multiplexing support for DAVINCI boards. If your bootloader
4162306a36Sopenharmony_ci	  sets the multiplexing correctly, say N. Otherwise, or if unsure,
4262306a36Sopenharmony_ci	  say Y.
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciconfig DAVINCI_MUX_DEBUG
4562306a36Sopenharmony_ci	bool "Multiplexing debug output"
4662306a36Sopenharmony_ci	depends on DAVINCI_MUX
4762306a36Sopenharmony_ci	help
4862306a36Sopenharmony_ci	  Makes the multiplexing functions print out a lot of debug info.
4962306a36Sopenharmony_ci	  This is useful if you want to find out the correct values of the
5062306a36Sopenharmony_ci	  multiplexing registers.
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ciconfig DAVINCI_MUX_WARNINGS
5362306a36Sopenharmony_ci	bool "Warn about pins the bootloader didn't set up"
5462306a36Sopenharmony_ci	depends on DAVINCI_MUX
5562306a36Sopenharmony_ci	help
5662306a36Sopenharmony_ci	  Choose Y here to warn whenever driver initialization logic needs
5762306a36Sopenharmony_ci	  to change the pin multiplexing setup. When there are no warnings
5862306a36Sopenharmony_ci	  printed, it's safe to deselect DAVINCI_MUX for your product.
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ciendif
61