1# SPDX-License-Identifier: GPL-2.0-only 2config TEGRA_MC 3 bool "NVIDIA Tegra Memory Controller support" 4 default ARCH_TEGRA 5 depends on ARCH_TEGRA || (COMPILE_TEST && COMMON_CLK) 6 select INTERCONNECT 7 help 8 This driver supports the Memory Controller (MC) hardware found on 9 NVIDIA Tegra SoCs. 10 11if TEGRA_MC 12 13config TEGRA20_EMC 14 tristate "NVIDIA Tegra20 External Memory Controller driver" 15 default ARCH_TEGRA_2x_SOC 16 depends on ARCH_TEGRA_2x_SOC || COMPILE_TEST 17 select DEVFREQ_GOV_SIMPLE_ONDEMAND 18 select PM_DEVFREQ 19 select DDR 20 select TEGRA_EMC_COMMON 21 help 22 This driver is for the External Memory Controller (EMC) found on 23 Tegra20 chips. The EMC controls the external DRAM on the board. 24 This driver is required to change memory timings / clock rate for 25 external memory. 26 27config TEGRA30_EMC 28 tristate "NVIDIA Tegra30 External Memory Controller driver" 29 default ARCH_TEGRA_3x_SOC 30 depends on ARCH_TEGRA_3x_SOC || COMPILE_TEST 31 select PM_OPP 32 select DDR 33 select TEGRA_EMC_COMMON 34 help 35 This driver is for the External Memory Controller (EMC) found on 36 Tegra30 chips. The EMC controls the external DRAM on the board. 37 This driver is required to change memory timings / clock rate for 38 external memory. 39 40config TEGRA124_EMC 41 tristate "NVIDIA Tegra124 External Memory Controller driver" 42 default ARCH_TEGRA_124_SOC 43 depends on ARCH_TEGRA_124_SOC || COMPILE_TEST 44 select TEGRA124_CLK_EMC if ARCH_TEGRA 45 select PM_OPP 46 select TEGRA_EMC_COMMON 47 help 48 This driver is for the External Memory Controller (EMC) found on 49 Tegra124 chips. The EMC controls the external DRAM on the board. 50 This driver is required to change memory timings / clock rate for 51 external memory. 52 53config TEGRA210_EMC_TABLE 54 bool 55 depends on ARCH_TEGRA_210_SOC || COMPILE_TEST 56 57config TEGRA210_EMC 58 tristate "NVIDIA Tegra210 External Memory Controller driver" 59 depends on ARCH_TEGRA_210_SOC || COMPILE_TEST 60 select TEGRA210_EMC_TABLE 61 help 62 This driver is for the External Memory Controller (EMC) found on 63 Tegra210 chips. The EMC controls the external DRAM on the board. 64 This driver is required to change memory timings / clock rate for 65 external memory. 66 67config TEGRA_EMC_COMMON 68 tristate 69 70endif 71