memory: brcmstb_dpfe: add separate entry for compile test
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 24 Jul 2020 17:40:16 +0000 (19:40 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 17 Aug 2020 18:44:00 +0000 (20:44 +0200)
Add separate entry for Broadcom STB DPFE driver, enabled by default on
ARCH_BRCMSTB.  This allows compile testing.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/memory/Kconfig
drivers/memory/Makefile

index 2c79e95dd4861cec92c562ccca61e2aaf03bbd61..74432801f8fa23310d6cfd52622e8328a51718fd 100644 (file)
@@ -52,6 +52,18 @@ config ATMEL_EBI
          tree is used. This bus supports NANDs, external ethernet controller,
          SRAMs, ATA devices, etc.
 
+config BRCMSTB_DPFE
+       bool "Broadcom STB DPFE driver" if COMPILE_TEST
+       default y if ARCH_BRCMSTB
+       depends on ARCH_BRCMSTB || COMPILE_TEST
+       help
+         This driver provides access to the DPFE interface of Broadcom
+         STB SoCs. The firmware running on the DCPU inside the DDR PHY can
+         provide current information about the system's RAM, for instance
+         the DRAM refresh rate. This can be used as an indirect indicator
+         for the DRAM's temperature. Slower refresh rate means cooler RAM,
+         higher refresh rate means hotter RAM.
+
 config BT1_L2_CTL
        bool "Baikal-T1 CM2 L2-RAM Cache Control Block"
        depends on MIPS_BAIKAL_T1 || COMPILE_TEST
index b4533ffff2bcb90241c9cab280f4be1be2c44f3d..e71cf7b996413070f8a41b1401514321d6105cf1 100644 (file)
@@ -10,7 +10,7 @@ endif
 obj-$(CONFIG_ARM_PL172_MPMC)   += pl172.o
 obj-$(CONFIG_ATMEL_SDRAMC)     += atmel-sdramc.o
 obj-$(CONFIG_ATMEL_EBI)                += atmel-ebi.o
-obj-$(CONFIG_ARCH_BRCMSTB)     += brcmstb_dpfe.o
+obj-$(CONFIG_BRCMSTB_DPFE)     += brcmstb_dpfe.o
 obj-$(CONFIG_BT1_L2_CTL)       += bt1-l2-ctl.o
 obj-$(CONFIG_TI_AEMIF)         += ti-aemif.o
 obj-$(CONFIG_TI_EMIF)          += emif.o