[PATCH 1/2] mtd: nand: Add Hisilicon machine dependency

Boris Brezillon boris.brezillon at free-electrons.com
Tue May 2 11:44:33 PDT 2017


On Tue,  2 May 2017 14:48:42 -0300
Ezequiel Garcia <ezequiel at vanguardiasur.com.ar> wrote:

> The Hisilicon NAND driver is only needed for a specific
> platform, so avoid cluttering the configuration.
> 
> Signed-off-by: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
> ---
>  drivers/mtd/nand/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
> index c3029528063b..04f4a556bc93 100644
> --- a/drivers/mtd/nand/Kconfig
> +++ b/drivers/mtd/nand/Kconfig
> @@ -542,6 +542,7 @@ config MTD_NAND_SUNXI
>  
>  config MTD_NAND_HISI504
>  	tristate "Support for NAND controller on Hisilicon SoC Hip04"
> +	depends on ARCH_HISI

			     || COMPILE_TEST

so that we can still compile test the driver easily.

Same goes for patch 2.

>  	depends on HAS_DMA
>  	help
>  	  Enables support for NAND controller on Hisilicon SoC Hip04.




More information about the linux-mtd mailing list