This feature requires that CFG_SYS_FLASH_BASE is defined and this in
turn is only done in the case of FLASH_CFI_DRIVER && !CFI_FLASH or in
other words, when DM_MTD is not enabled.

Signed-off-by: Tom Rini <[email protected]>
---
 drivers/mtd/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig
index 2b7f5e5ed7ba..f561b07e40b9 100644
--- a/drivers/mtd/Kconfig
+++ b/drivers/mtd/Kconfig
@@ -166,7 +166,7 @@ config SYS_FLASH_QUIET_TEST
 
 config SYS_FLASH_CHECKSUM
        bool "Compute and print flash CRC if 'flashchecksum' is set in the 
environment"
-       depends on MTD_NOR_FLASH
+       depends on (FLASH_CFI_DRIVER && !CFI_FLASH)
        help
          If the variable flashchecksum is set in the environment, perform a CRC
          of the flash and print the value to console.
-- 
2.43.0

Reply via email to