[U-Boot] [PATCH] imx: Make NAND BCB dependent on ARCH_MX6

Adam Ford aford173 at gmail.com
Sun Nov 3 23:37:46 UTC 2019


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 <aford173 at gmail.com>

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



More information about the U-Boot mailing list