spi: Move DM_SPI_FLASH to Kconfig (for NXP's ls1043a)
This patch fixes issue with defining the DM_SPI_FLASH in the configs/include/<board.h> instead of enabling this option in Kconfig. The problem is that CONFIG_IS_ENABLED(DM_SPI_FLASH) shows false as there is no DM_SPI_FLASH=y in .config (but the define is set in u-boot.cfg). As a result conversion of DM_SPI_FLASH to using CONFIG_IS_ENABLED() is not working properly. Signed-off-by: Lukasz Majewski <lukma@denx.de> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
This commit is contained in:
committed by
Tom Rini
parent
582b4f7f39
commit
044a66cb83
@@ -174,9 +174,7 @@
|
||||
|
||||
/* DSPI */
|
||||
#ifndef SPL_NO_DSPI
|
||||
#define CONFIG_FSL_DSPI
|
||||
#ifdef CONFIG_FSL_DSPI
|
||||
#define CONFIG_DM_SPI_FLASH
|
||||
#define CONFIG_SPI_FLASH_STMICRO /* cs0 */
|
||||
#define CONFIG_SPI_FLASH_SST /* cs1 */
|
||||
#define CONFIG_SPI_FLASH_EON /* cs2 */
|
||||
|
||||
Reference in New Issue
Block a user