| 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | config 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 | |
| 11 | if TEGRA_MC |
| 12 | |
| 13 | config 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 | |
| 27 | config 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 | |
| 40 | config TEGRA114_EMC |
| 41 | tristate "NVIDIA Tegra114 External Memory Controller driver" |
| 42 | default ARCH_TEGRA_114_SOC |
| 43 | depends on ARCH_TEGRA_114_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 | Tegra114 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 | |
| 53 | config TEGRA124_EMC |
| 54 | tristate "NVIDIA Tegra124 External Memory Controller driver" |
| 55 | default ARCH_TEGRA_124_SOC |
| 56 | depends on ARCH_TEGRA_124_SOC || COMPILE_TEST |
| 57 | select TEGRA124_CLK_EMC if ARCH_TEGRA |
| 58 | select PM_OPP |
| 59 | select TEGRA_EMC_COMMON |
| 60 | help |
| 61 | This driver is for the External Memory Controller (EMC) found on |
| 62 | Tegra124 chips. The EMC controls the external DRAM on the board. |
| 63 | This driver is required to change memory timings / clock rate for |
| 64 | external memory. |
| 65 | |
| 66 | config TEGRA210_EMC_TABLE |
| 67 | bool |
| 68 | depends on ARCH_TEGRA_210_SOC || COMPILE_TEST |
| 69 | |
| 70 | config TEGRA210_EMC |
| 71 | tristate "NVIDIA Tegra210 External Memory Controller driver" |
| 72 | depends on ARCH_TEGRA_210_SOC || COMPILE_TEST |
| 73 | select TEGRA210_EMC_TABLE |
| 74 | help |
| 75 | This driver is for the External Memory Controller (EMC) found on |
| 76 | Tegra210 chips. The EMC controls the external DRAM on the board. |
| 77 | This driver is required to change memory timings / clock rate for |
| 78 | external memory. |
| 79 | |
| 80 | config TEGRA_EMC_COMMON |
| 81 | tristate |
| 82 | |
| 83 | endif |