From 02a0d8d9cfc2fd2f4975fcb535c57c138ffd72d5 Mon Sep 17 00:00:00 2001 From: Dingqiang Lin Date: Thu, 24 May 2018 20:28:39 +0800 Subject: [PATCH] drivers: rkflash: add Kconfig introduction and Kconfig detect in order to distinguish with other nand drivers Change-Id: Ifd64a3a839752758b1d2923a58bf569f5169bcdd Signed-off-by: Dingqiang Lin --- drivers/rkflash/Kconfig | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/rkflash/Kconfig b/drivers/rkflash/Kconfig index 79a1a7ba9b5c..1da02535a2b7 100644 --- a/drivers/rkflash/Kconfig +++ b/drivers/rkflash/Kconfig @@ -20,10 +20,14 @@ comment "Rockchip Flash Devices" config RK_NANDC_NAND tristate "RK NANDC NAND Device Support" default n + depends on (BLOCK_RKNAND != y && RK_NAND != y) help Enable NANDC_NAND device support. - It's block interface. - Say Y when you have a board with nand flash supported by rockchip + + It's block interface. only effective for some kinds of slc nand + flash, and it's compatible with spi nand flash drivers. + + Say Y when you have a board with nand flash supported by rockchip. nandc controller. config RK_SFC_NOR