The options to enable CMD_NANDBCB appear when the i.MX6 is not the
target architecture, but it only applies to the i.MX6.

This patch makes the option depend on ARCH_MX6 so it's hidden
from irrelevant platforms.

Signed-off-by: Adam Ford <[email protected]>

diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index b0b9d2c070..2b8d223b92 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -80,8 +80,8 @@ config CMD_HDMIDETECT
 
 config CMD_NANDBCB
        bool "i.MX6 NAND Boot Control Block(BCB) command"
-       depends on NAND && CMD_MTDPARTS
-       default y if ARCH_MX6 && NAND_MXS
+       depends on NAND && CMD_MTDPARTS && ARCH_MX6
+       default y if NAND_MXS
        help
          Unlike normal 'nand write/erase' commands, this command update
          Boot Control Block(BCB) for i.MX6 platform NAND IP's.
-- 
2.20.1

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to