From: Biwen Li Date: Thu, 14 Nov 2019 18:36:35 +0800 Subject: [U-Boot] [PATCH 36/42] include/configs: ls1021atwr: i2c: do not define DM_I2C for spl In-Reply-To: <20191114103641.34085-1-biwen.li@nxp.com> References: <20191114103641.34085-1-biwen.li@nxp.com> Message-ID: <20191114103641.34085-36-biwen.li@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This is used to fix compilation error as follows(make ls1021atwr_sdcard_ifc_SECURE_BOOT): - LD spl/u-boot-spl drivers/built-in.o: In function `mxc_i2c_probe: drivers/i2c/mxc_i2c.c:920: undefined reference to `fdt_stringlist_search' drivers/i2c/mxc_i2c.c:924: undefined reference to `gpio_request_by_name_nodev' drivers/i2c/mxc_i2c.c:927: undefined reference to `gpio_request_by_name_nodev' scripts/Makefile.spl:404: recipe for target 'spl/u-boot-spl' failed make[1]: *** [spl/u-boot-spl] Error 1 Makefile:1762: recipe for target 'spl/u-boot-spl' failed make: *** [spl/u-boot-spl] Error 2` Signed-off-by: Biwen Li --- include/configs/ls1021atwr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h index 1115e00b65..d74b2e2bb9 100644 --- a/include/configs/ls1021atwr.h +++ b/include/configs/ls1021atwr.h @@ -448,6 +448,7 @@ #ifdef CONFIG_SPL_BUILD #define CONFIG_SYS_MONITOR_BASE CONFIG_SPL_TEXT_BASE +#undef CONFIG_DM_I2C #else #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */ #endif -- 2.17.1