162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
262306a36Sopenharmony_ciif ARCH_TEGRA
362306a36Sopenharmony_ci
462306a36Sopenharmony_ci# 32-bit ARM SoCs
562306a36Sopenharmony_ciif ARM
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciconfig ARCH_TEGRA_2x_SOC
862306a36Sopenharmony_ci	bool "Enable support for Tegra20 family"
962306a36Sopenharmony_ci	select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
1062306a36Sopenharmony_ci	select ARM_ERRATA_720789
1162306a36Sopenharmony_ci	select ARM_ERRATA_754327 if SMP
1262306a36Sopenharmony_ci	select ARM_ERRATA_764369 if SMP
1362306a36Sopenharmony_ci	select PINCTRL_TEGRA20
1462306a36Sopenharmony_ci	select PL310_ERRATA_727915 if CACHE_L2X0
1562306a36Sopenharmony_ci	select PL310_ERRATA_769419 if CACHE_L2X0
1662306a36Sopenharmony_ci	select SOC_TEGRA_FLOWCTRL
1762306a36Sopenharmony_ci	select SOC_TEGRA_PMC
1862306a36Sopenharmony_ci	select SOC_TEGRA20_VOLTAGE_COUPLER if REGULATOR
1962306a36Sopenharmony_ci	select TEGRA_TIMER
2062306a36Sopenharmony_ci	help
2162306a36Sopenharmony_ci	  Support for NVIDIA Tegra AP20 and T20 processors, based on the
2262306a36Sopenharmony_ci	  ARM CortexA9MP CPU and the ARM PL310 L2 cache controller
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ciconfig ARCH_TEGRA_3x_SOC
2562306a36Sopenharmony_ci	bool "Enable support for Tegra30 family"
2662306a36Sopenharmony_ci	select ARM_ERRATA_754322
2762306a36Sopenharmony_ci	select ARM_ERRATA_764369 if SMP
2862306a36Sopenharmony_ci	select PINCTRL_TEGRA30
2962306a36Sopenharmony_ci	select PL310_ERRATA_769419 if CACHE_L2X0
3062306a36Sopenharmony_ci	select SOC_TEGRA_FLOWCTRL
3162306a36Sopenharmony_ci	select SOC_TEGRA_PMC
3262306a36Sopenharmony_ci	select SOC_TEGRA30_VOLTAGE_COUPLER if REGULATOR
3362306a36Sopenharmony_ci	select TEGRA_TIMER
3462306a36Sopenharmony_ci	help
3562306a36Sopenharmony_ci	  Support for NVIDIA Tegra T30 processor family, based on the
3662306a36Sopenharmony_ci	  ARM CortexA9MP CPU and the ARM PL310 L2 cache controller
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciconfig ARCH_TEGRA_114_SOC
3962306a36Sopenharmony_ci	bool "Enable support for Tegra114 family"
4062306a36Sopenharmony_ci	select ARM_ERRATA_798181 if SMP
4162306a36Sopenharmony_ci	select HAVE_ARM_ARCH_TIMER
4262306a36Sopenharmony_ci	select PINCTRL_TEGRA114
4362306a36Sopenharmony_ci	select SOC_TEGRA_FLOWCTRL
4462306a36Sopenharmony_ci	select SOC_TEGRA_PMC
4562306a36Sopenharmony_ci	select TEGRA_TIMER
4662306a36Sopenharmony_ci	help
4762306a36Sopenharmony_ci	  Support for NVIDIA Tegra T114 processor family, based on the
4862306a36Sopenharmony_ci	  ARM CortexA15MP CPU
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ciconfig ARCH_TEGRA_124_SOC
5162306a36Sopenharmony_ci	bool "Enable support for Tegra124 family"
5262306a36Sopenharmony_ci	select HAVE_ARM_ARCH_TIMER
5362306a36Sopenharmony_ci	select PINCTRL_TEGRA124
5462306a36Sopenharmony_ci	select SOC_TEGRA_FLOWCTRL
5562306a36Sopenharmony_ci	select SOC_TEGRA_PMC
5662306a36Sopenharmony_ci	select TEGRA_TIMER
5762306a36Sopenharmony_ci	help
5862306a36Sopenharmony_ci	  Support for NVIDIA Tegra T124 processor family, based on the
5962306a36Sopenharmony_ci	  ARM CortexA15MP CPU
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ciendif
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ci# 64-bit ARM SoCs
6462306a36Sopenharmony_ciif ARM64
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ciconfig ARCH_TEGRA_132_SOC
6762306a36Sopenharmony_ci	bool "NVIDIA Tegra132 SoC"
6862306a36Sopenharmony_ci	select PINCTRL_TEGRA124
6962306a36Sopenharmony_ci	select SOC_TEGRA_FLOWCTRL
7062306a36Sopenharmony_ci	select SOC_TEGRA_PMC
7162306a36Sopenharmony_ci	help
7262306a36Sopenharmony_ci	  Enable support for NVIDIA Tegra132 SoC, based on the Denver
7362306a36Sopenharmony_ci	  ARMv8 CPU.  The Tegra132 SoC is similar to the Tegra124 SoC,
7462306a36Sopenharmony_ci	  but contains an NVIDIA Denver CPU complex in place of
7562306a36Sopenharmony_ci	  Tegra124's "4+1" Cortex-A15 CPU complex.
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ciconfig ARCH_TEGRA_210_SOC
7862306a36Sopenharmony_ci	bool "NVIDIA Tegra210 SoC"
7962306a36Sopenharmony_ci	select PINCTRL_TEGRA210
8062306a36Sopenharmony_ci	select SOC_TEGRA_FLOWCTRL
8162306a36Sopenharmony_ci	select SOC_TEGRA_PMC
8262306a36Sopenharmony_ci	select TEGRA_TIMER
8362306a36Sopenharmony_ci	help
8462306a36Sopenharmony_ci	  Enable support for the NVIDIA Tegra210 SoC. Also known as Tegra X1,
8562306a36Sopenharmony_ci	  the Tegra210 has four Cortex-A57 cores paired with four Cortex-A53
8662306a36Sopenharmony_ci	  cores in a switched configuration. It features a GPU of the Maxwell
8762306a36Sopenharmony_ci	  architecture with support for DX11, SM4, OpenGL 4.5, OpenGL ES 3.1
8862306a36Sopenharmony_ci	  and providing 256 CUDA cores. It supports hardware-accelerated en-
8962306a36Sopenharmony_ci	  and decoding of various video standards including H.265, H.264 and
9062306a36Sopenharmony_ci	  VP8 at 4K resolution and up to 60 fps.
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ci	  Besides the multimedia features it also comes with a variety of I/O
9362306a36Sopenharmony_ci	  controllers, such as GPIO, I2C, SPI, SDHCI, PCIe, SATA and XHCI, to
9462306a36Sopenharmony_ci	  name only a few.
9562306a36Sopenharmony_ci
9662306a36Sopenharmony_ciconfig ARCH_TEGRA_186_SOC
9762306a36Sopenharmony_ci	bool "NVIDIA Tegra186 SoC"
9862306a36Sopenharmony_ci	depends on !CPU_BIG_ENDIAN
9962306a36Sopenharmony_ci	select MAILBOX
10062306a36Sopenharmony_ci	select TEGRA_BPMP
10162306a36Sopenharmony_ci	select TEGRA_HSP_MBOX
10262306a36Sopenharmony_ci	select TEGRA_IVC
10362306a36Sopenharmony_ci	select SOC_TEGRA_PMC
10462306a36Sopenharmony_ci	help
10562306a36Sopenharmony_ci	  Enable support for the NVIDIA Tegar186 SoC. The Tegra186 features a
10662306a36Sopenharmony_ci	  combination of Denver and Cortex-A57 CPU cores and a GPU based on
10762306a36Sopenharmony_ci	  the Pascal architecture. It contains an ADSP with a Cortex-A9 CPU
10862306a36Sopenharmony_ci	  used for audio processing, hardware video encoders/decoders with
10962306a36Sopenharmony_ci	  multi-format support, ISP for image capture processing and BPMP for
11062306a36Sopenharmony_ci	  power management.
11162306a36Sopenharmony_ci
11262306a36Sopenharmony_ciconfig ARCH_TEGRA_194_SOC
11362306a36Sopenharmony_ci	bool "NVIDIA Tegra194 SoC"
11462306a36Sopenharmony_ci	depends on !CPU_BIG_ENDIAN
11562306a36Sopenharmony_ci	select MAILBOX
11662306a36Sopenharmony_ci	select PINCTRL_TEGRA194
11762306a36Sopenharmony_ci	select TEGRA_BPMP
11862306a36Sopenharmony_ci	select TEGRA_HSP_MBOX
11962306a36Sopenharmony_ci	select TEGRA_IVC
12062306a36Sopenharmony_ci	select SOC_TEGRA_PMC
12162306a36Sopenharmony_ci	help
12262306a36Sopenharmony_ci	  Enable support for the NVIDIA Tegra194 SoC.
12362306a36Sopenharmony_ci
12462306a36Sopenharmony_ciconfig ARCH_TEGRA_234_SOC
12562306a36Sopenharmony_ci	bool "NVIDIA Tegra234 SoC"
12662306a36Sopenharmony_ci	depends on !CPU_BIG_ENDIAN
12762306a36Sopenharmony_ci	select MAILBOX
12862306a36Sopenharmony_ci	select PINCTRL_TEGRA234
12962306a36Sopenharmony_ci	select TEGRA_BPMP
13062306a36Sopenharmony_ci	select TEGRA_HSP_MBOX
13162306a36Sopenharmony_ci	select TEGRA_IVC
13262306a36Sopenharmony_ci	select SOC_TEGRA_PMC
13362306a36Sopenharmony_ci	help
13462306a36Sopenharmony_ci	  Enable support for the NVIDIA Tegra234 SoC.
13562306a36Sopenharmony_ci
13662306a36Sopenharmony_ciendif
13762306a36Sopenharmony_ciendif
13862306a36Sopenharmony_ci
13962306a36Sopenharmony_ciconfig SOC_TEGRA_FUSE
14062306a36Sopenharmony_ci	def_bool y
14162306a36Sopenharmony_ci	depends on ARCH_TEGRA
14262306a36Sopenharmony_ci	select SOC_BUS
14362306a36Sopenharmony_ci
14462306a36Sopenharmony_ciconfig SOC_TEGRA_FLOWCTRL
14562306a36Sopenharmony_ci	bool
14662306a36Sopenharmony_ci
14762306a36Sopenharmony_ciconfig SOC_TEGRA_PMC
14862306a36Sopenharmony_ci	bool
14962306a36Sopenharmony_ci	select GENERIC_PINCONF
15062306a36Sopenharmony_ci	select IRQ_DOMAIN_HIERARCHY
15162306a36Sopenharmony_ci	select PM_OPP
15262306a36Sopenharmony_ci	select PM_GENERIC_DOMAINS
15362306a36Sopenharmony_ci	select REGMAP
15462306a36Sopenharmony_ci
15562306a36Sopenharmony_ciconfig SOC_TEGRA_POWERGATE_BPMP
15662306a36Sopenharmony_ci	def_bool y
15762306a36Sopenharmony_ci	depends on PM_GENERIC_DOMAINS
15862306a36Sopenharmony_ci	depends on TEGRA_BPMP
15962306a36Sopenharmony_ci
16062306a36Sopenharmony_ciconfig SOC_TEGRA20_VOLTAGE_COUPLER
16162306a36Sopenharmony_ci	bool "Voltage scaling support for Tegra20 SoCs"
16262306a36Sopenharmony_ci	depends on ARCH_TEGRA_2x_SOC || COMPILE_TEST
16362306a36Sopenharmony_ci	depends on REGULATOR
16462306a36Sopenharmony_ci
16562306a36Sopenharmony_ciconfig SOC_TEGRA30_VOLTAGE_COUPLER
16662306a36Sopenharmony_ci	bool "Voltage scaling support for Tegra30 SoCs"
16762306a36Sopenharmony_ci	depends on ARCH_TEGRA_3x_SOC || COMPILE_TEST
16862306a36Sopenharmony_ci	depends on REGULATOR
16962306a36Sopenharmony_ci
17062306a36Sopenharmony_ciconfig SOC_TEGRA_CBB
17162306a36Sopenharmony_ci	tristate "Tegra driver to handle error from CBB"
17262306a36Sopenharmony_ci	depends on ARCH_TEGRA_194_SOC || ARCH_TEGRA_234_SOC
17362306a36Sopenharmony_ci	default y
17462306a36Sopenharmony_ci	help
17562306a36Sopenharmony_ci	  Support for handling error from Tegra Control Backbone(CBB).
17662306a36Sopenharmony_ci	  This driver handles the errors from CBB and prints debug
17762306a36Sopenharmony_ci	  information about the failed transactions.
178