xref: /openbmc/linux/drivers/memory/samsung/Kconfig (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
1f12bb916SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0
2a8aabb91SPankaj Dubeyconfig SAMSUNG_MC
3a8aabb91SPankaj Dubey	bool "Samsung Exynos Memory Controller support" if COMPILE_TEST
4a8aabb91SPankaj Dubey	help
5a8aabb91SPankaj Dubey	  Support for the Memory Controller (MC) devices found on
6a8aabb91SPankaj Dubey	  Samsung Exynos SoCs.
7a8aabb91SPankaj Dubey
8a8aabb91SPankaj Dubeyif SAMSUNG_MC
9a8aabb91SPankaj Dubey
106e7674c3SLukasz Lubaconfig EXYNOS5422_DMC
1105363093SKrzysztof Kozlowski	tristate "Exynos5422 Dynamic Memory Controller driver"
126e7674c3SLukasz Luba	depends on ARCH_EXYNOS || (COMPILE_TEST && HAS_IOMEM)
136e7674c3SLukasz Luba	select DDR
146e7674c3SLukasz Luba	depends on DEVFREQ_GOV_SIMPLE_ONDEMAND
156e7674c3SLukasz Luba	depends on (PM_DEVFREQ && PM_DEVFREQ_EVENT)
166e7674c3SLukasz Luba	help
17*6b20a5d1SKrzysztof Kozlowski	  This adds driver for Samsung Exynos5422 SoC DMC (Dynamic Memory
18*6b20a5d1SKrzysztof Kozlowski	  Controller).  The driver provides support for Dynamic Voltage and
19*6b20a5d1SKrzysztof Kozlowski	  Frequency Scaling in DMC and DRAM. It also supports changing timings
20*6b20a5d1SKrzysztof Kozlowski	  of DRAM running with different frequency. The timings are calculated
21*6b20a5d1SKrzysztof Kozlowski	  based on DT memory information.
22*6b20a5d1SKrzysztof Kozlowski	  If unsure, say Y on devices with Samsung Exynos SoCs.
236e7674c3SLukasz Luba
24a8aabb91SPankaj Dubeyconfig EXYNOS_SROM
25a8aabb91SPankaj Dubey	bool "Exynos SROM controller driver" if COMPILE_TEST
268ac2266dSPavel Fedin	depends on (ARM && ARCH_EXYNOS) || (COMPILE_TEST && HAS_IOMEM)
275ec2914aSKrzysztof Kozlowski	help
285ec2914aSKrzysztof Kozlowski	  This adds driver for Samsung Exynos SoC SROM controller.  The driver
295ec2914aSKrzysztof Kozlowski	  in basic operation mode only saves and restores SROM registers
305ec2914aSKrzysztof Kozlowski	  during suspend.  If however appropriate device tree configuration
315ec2914aSKrzysztof Kozlowski	  is provided, the driver enables support for external memory
325ec2914aSKrzysztof Kozlowski	  or external devices.
33*6b20a5d1SKrzysztof Kozlowski	  If unsure, say Y on devices with Samsung Exynos SoCs.
34a8aabb91SPankaj Dubey
35a8aabb91SPankaj Dubeyendif
36