^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) config SAMSUNG_MC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) bool "Samsung Exynos Memory Controller support" if COMPILE_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Support for the Memory Controller (MC) devices found on
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) Samsung Exynos SoCs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) if SAMSUNG_MC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) config EXYNOS5422_DMC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) tristate "Exynos5422 Dynamic Memory Controller driver"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) depends on ARCH_EXYNOS || (COMPILE_TEST && HAS_IOMEM)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) select DDR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) depends on DEVFREQ_GOV_SIMPLE_ONDEMAND
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) depends on (PM_DEVFREQ && PM_DEVFREQ_EVENT)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) This adds driver for Exynos5422 DMC (Dynamic Memory Controller).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) The driver provides support for Dynamic Voltage and Frequency Scaling in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) DMC and DRAM. It also supports changing timings of DRAM running with
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) different frequency. The timings are calculated based on DT memory
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) information.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) config EXYNOS_SROM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) bool "Exynos SROM controller driver" if COMPILE_TEST
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) depends on (ARM && ARCH_EXYNOS) || (COMPILE_TEST && HAS_IOMEM)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) help
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) This adds driver for Samsung Exynos SoC SROM controller. The driver
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) in basic operation mode only saves and restores SROM registers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) during suspend. If however appropriate device tree configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) is provided, the driver enables support for external memory
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) or external devices.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) If unsure, say Y on devices with Samsung Exynos SocS.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) endif