From: sbabic at denx.de Date: Sun, 29 Dec 2019 11:25:41 +0100 (CET) Subject: [U-Boot] [RESEND PATCH] arm: imx6: cm_fx6: Enable DM SPI and SPI_FLASH, fix SPL build errors In-Reply-To: <1574851668-7768-1-git-send-email-sunil.m@techveda.org> Message-ID: <20191229102541.8E0D8817C0@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > From: Suniel Mahesh > Enable driver model for SPI and SPI_FLASH to remove the following > compile warning on CM-FX6 SOM: > ===================== WARNING ====================== > This board does not use CONFIG_DM_SPI_FLASH. Please update > the board to use CONFIG_SPI_FLASH before the v2019.07 release. > ==================================================== > This change introduced SPL build error as shown: > In file included from include/common.h:47:0, > from drivers/mtd/spi/sf_probe.c:10: > drivers/mtd/spi/sf_probe.c: In function 'spi_flash_std_probe': > drivers/mtd/spi/sf_probe.c:149:54: error: dereferencing pointer to incomplete type 'struct dm_spi_slave_platdata' > scripts/Makefile.build:278: recipe for target 'spl/drivers/mtd/spi/sf_probe.o' failed > make[3]: *** [spl/drivers/mtd/spi/sf_probe.o] Error 1 > scripts/Makefile.build:432: recipe for target 'spl/drivers/mtd/spi' failed > make[2]: *** [spl/drivers/mtd/spi] Error 2 > Disabling DM for SPI support(SPI and SF) in SPL resolves the issue. > Target was compile tested, build was clean. > Signed-off-by: Suniel Mahesh Applied to u-boot-imx, -next, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================