Commit ea0c0ad6 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski

memory: Enable compile testing for most of the drivers

Most of the memory controller drivers do not depend on architecture
specific code so can be compile tested to increase build coverage.

When compile tested, do not enable them by default.
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200724074038.5597-7-krzk@kernel.org
parent 904ffa81
...@@ -32,8 +32,9 @@ config ARM_PL172_MPMC ...@@ -32,8 +32,9 @@ config ARM_PL172_MPMC
config ATMEL_SDRAMC config ATMEL_SDRAMC
bool "Atmel (Multi-port DDR-)SDRAM Controller" bool "Atmel (Multi-port DDR-)SDRAM Controller"
default y default y if ARCH_AT91
depends on ARCH_AT91 && OF depends on ARCH_AT91 || COMPILE_TEST
depends on OF
help help
This driver is for Atmel SDRAM Controller or Atmel Multi-port This driver is for Atmel SDRAM Controller or Atmel Multi-port
DDR-SDRAM Controller available on Atmel AT91SAM9 and SAMA5 SoCs. DDR-SDRAM Controller available on Atmel AT91SAM9 and SAMA5 SoCs.
...@@ -42,8 +43,9 @@ config ATMEL_SDRAMC ...@@ -42,8 +43,9 @@ config ATMEL_SDRAMC
config ATMEL_EBI config ATMEL_EBI
bool "Atmel EBI driver" bool "Atmel EBI driver"
default y default y if ARCH_AT91
depends on ARCH_AT91 && OF depends on ARCH_AT91 || COMPILE_TEST
depends on OF
select MFD_SYSCON select MFD_SYSCON
select MFD_ATMEL_SMC select MFD_ATMEL_SMC
help help
...@@ -77,7 +79,8 @@ config BT1_L2_CTL ...@@ -77,7 +79,8 @@ config BT1_L2_CTL
config TI_AEMIF config TI_AEMIF
tristate "Texas Instruments AEMIF driver" tristate "Texas Instruments AEMIF driver"
depends on (ARCH_DAVINCI || ARCH_KEYSTONE) && OF depends on ARCH_DAVINCI || ARCH_KEYSTONE || COMPILE_TEST
depends on OF
help help
This driver is for the AEMIF module available in Texas Instruments This driver is for the AEMIF module available in Texas Instruments
SoCs. AEMIF stands for Asynchronous External Memory Interface and SoCs. AEMIF stands for Asynchronous External Memory Interface and
...@@ -88,7 +91,7 @@ config TI_AEMIF ...@@ -88,7 +91,7 @@ config TI_AEMIF
config TI_EMIF config TI_EMIF
tristate "Texas Instruments EMIF driver" tristate "Texas Instruments EMIF driver"
depends on ARCH_OMAP2PLUS depends on ARCH_OMAP2PLUS || COMPILE_TEST
select DDR select DDR
help help
This driver is for the EMIF module available in Texas Instruments This driver is for the EMIF module available in Texas Instruments
...@@ -100,7 +103,7 @@ config TI_EMIF ...@@ -100,7 +103,7 @@ config TI_EMIF
temperature changes temperature changes
config OMAP_GPMC config OMAP_GPMC
bool bool "Texas Instruments OMAP SoC GPMC driver" if COMPILE_TEST
select GPIOLIB select GPIOLIB
help help
This driver is for the General Purpose Memory Controller (GPMC) This driver is for the General Purpose Memory Controller (GPMC)
...@@ -124,7 +127,8 @@ config OMAP_GPMC_DEBUG ...@@ -124,7 +127,8 @@ config OMAP_GPMC_DEBUG
config TI_EMIF_SRAM config TI_EMIF_SRAM
tristate "Texas Instruments EMIF SRAM driver" tristate "Texas Instruments EMIF SRAM driver"
depends on (SOC_AM33XX || SOC_AM43XX) && SRAM depends on SOC_AM33XX || SOC_AM43XX || (ARM && COMPILE_TEST)
depends on SRAM
help help
This driver is for the EMIF module available on Texas Instruments This driver is for the EMIF module available on Texas Instruments
AM33XX and AM43XX SoCs and is required for PM. Certain parts of AM33XX and AM43XX SoCs and is required for PM. Certain parts of
...@@ -134,8 +138,9 @@ config TI_EMIF_SRAM ...@@ -134,8 +138,9 @@ config TI_EMIF_SRAM
config MVEBU_DEVBUS config MVEBU_DEVBUS
bool "Marvell EBU Device Bus Controller" bool "Marvell EBU Device Bus Controller"
default y default y if PLAT_ORION
depends on PLAT_ORION && OF depends on PLAT_ORION || COMPILE_TEST
depends on OF
help help
This driver is for the Device Bus controller available in some This driver is for the Device Bus controller available in some
Marvell EBU SoCs such as Discovery (mv78xx0), Orion (88f5xxx) and Marvell EBU SoCs such as Discovery (mv78xx0), Orion (88f5xxx) and
...@@ -144,7 +149,7 @@ config MVEBU_DEVBUS ...@@ -144,7 +149,7 @@ config MVEBU_DEVBUS
config FSL_CORENET_CF config FSL_CORENET_CF
tristate "Freescale CoreNet Error Reporting" tristate "Freescale CoreNet Error Reporting"
depends on FSL_SOC_BOOKE depends on FSL_SOC_BOOKE || COMPILE_TEST
help help
Say Y for reporting of errors from the Freescale CoreNet Say Y for reporting of errors from the Freescale CoreNet
Coherency Fabric. Errors reported include accesses to Coherency Fabric. Errors reported include accesses to
...@@ -153,7 +158,7 @@ config FSL_CORENET_CF ...@@ -153,7 +158,7 @@ config FSL_CORENET_CF
represents a coherency violation. represents a coherency violation.
config FSL_IFC config FSL_IFC
bool bool "Freescale IFC driver" if COMPILE_TEST
depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST
depends on HAS_IOMEM depends on HAS_IOMEM
...@@ -167,7 +172,7 @@ config JZ4780_NEMC ...@@ -167,7 +172,7 @@ config JZ4780_NEMC
memory devices such as NAND and SRAM. memory devices such as NAND and SRAM.
config MTK_SMI config MTK_SMI
bool bool "Mediatek SoC Memory Controller driver" if COMPILE_TEST
depends on ARCH_MEDIATEK || COMPILE_TEST depends on ARCH_MEDIATEK || COMPILE_TEST
help help
This driver is for the Memory Controller module in MediaTek SoCs, This driver is for the Memory Controller module in MediaTek SoCs,
...@@ -176,7 +181,7 @@ config MTK_SMI ...@@ -176,7 +181,7 @@ config MTK_SMI
config DA8XX_DDRCTL config DA8XX_DDRCTL
bool "Texas Instruments da8xx DDR2/mDDR driver" bool "Texas Instruments da8xx DDR2/mDDR driver"
depends on ARCH_DAVINCI_DA8XX depends on ARCH_DAVINCI_DA8XX || COMPILE_TEST
help help
This driver is for the DDR2/mDDR Memory Controller present on This driver is for the DDR2/mDDR Memory Controller present on
Texas Instruments da8xx SoCs. It's used to tweak various memory Texas Instruments da8xx SoCs. It's used to tweak various memory
...@@ -184,16 +189,16 @@ config DA8XX_DDRCTL ...@@ -184,16 +189,16 @@ config DA8XX_DDRCTL
config PL353_SMC config PL353_SMC
tristate "ARM PL35X Static Memory Controller(SMC) driver" tristate "ARM PL35X Static Memory Controller(SMC) driver"
default y default y if ARM
depends on ARM depends on ARM
depends on ARM_AMBA depends on ARM_AMBA || COMPILE_TEST
help help
This driver is for the ARM PL351/PL353 Static Memory This driver is for the ARM PL351/PL353 Static Memory
Controller(SMC) module. Controller(SMC) module.
config RENESAS_RPCIF config RENESAS_RPCIF
tristate "Renesas RPC-IF driver" tristate "Renesas RPC-IF driver"
depends on ARCH_RENESAS depends on ARCH_RENESAS || COMPILE_TEST
select REGMAP_MMIO select REGMAP_MMIO
help help
This supports Renesas R-Car Gen3 RPC-IF which provides either SPI This supports Renesas R-Car Gen3 RPC-IF which provides either SPI
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment