diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2021-08-07 13:00:00 +0800 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-08-11 10:36:10 +0200 |
commit | 8fff9e335d08a8a901e66e75e99aa2f0091527b1 (patch) | |
tree | a063524162de22d9e1ea44b8ce8fb0eef2c17a0c | |
parent | 3e5b62f78888740530e6f3a2e989f4c361a9d52b (diff) | |
download | u-boot-8fff9e335d08a8a901e66e75e99aa2f0091527b1.zip u-boot-8fff9e335d08a8a901e66e75e99aa2f0091527b1.tar.gz u-boot-8fff9e335d08a8a901e66e75e99aa2f0091527b1.tar.bz2 |
mtd: kconfig: Fix CFI_FLASH dependency
The DM version CFI flash driver is in driver/mtd/cfi_flash.c, which
only gets built when FLASH_CFI_DRIVER is on. If CFI_FLASH is on but
FLASH_CFI_DRIVER is not, nothing is enabled at all.
Fix this dependency by selecting FLASH_CFI_DRIVER when CFI_FLASH is
enabled.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | drivers/mtd/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index ad50c5e..b303fab 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig @@ -42,6 +42,7 @@ config FLASH_CFI_DRIVER config CFI_FLASH bool "Enable Driver Model for CFI Flash driver" depends on DM_MTD + select FLASH_CFI_DRIVER help The Common Flash Interface specification was developed by Intel, AMD and other flash manufactures. It provides a universal method |