[U-Boot] [PATCH 3/3] armv8/ls1043a: move CONFIG_MTD to defconfig

Qianyu Gong qianyu.gong at nxp.com
Mon Mar 14 08:31:38 CET 2016


Hi Jagan,

> -----Original Message-----
> From: Jagan Teki [mailto:jagannadh.teki at gmail.com]
> Sent: Saturday, March 12, 2016 1:37 AM
> To: Qianyu Gong <qianyu.gong at nxp.com>
> Cc: york sun <york.sun at nxp.com>; Mingkai Hu <mingkai.hu at nxp.com>; u-
> boot at lists.denx.de
> Subject: Re: [U-Boot] [PATCH 3/3] armv8/ls1043a: move CONFIG_MTD to
> defconfig
> 
> On Mar 9, 2016 1:31 PM, "Gong Qianyu" <Qianyu.Gong at nxp.com> wrote:
> 
> >
> > To make it take effect to enable MTD driver model for SPI-NOR.
> >
> > Signed-off-by: Gong Qianyu <Qianyu.Gong at nxp.com>
> > ---
> >  configs/ls1043aqds_defconfig             | 1 +
> >  configs/ls1043aqds_lpuart_defconfig      | 1 +
> >  configs/ls1043aqds_nand_defconfig        | 1 +
> >  configs/ls1043aqds_nor_ddr3_defconfig    | 1 +
> >  configs/ls1043aqds_qspi_defconfig        | 1 +
> >  configs/ls1043aqds_sdcard_ifc_defconfig  | 1 +
> > configs/ls1043aqds_sdcard_qspi_defconfig | 1 +
> > configs/ls1043ardb_SECURE_BOOT_defconfig | 1 +
> >  configs/ls1043ardb_defconfig             | 1 +
> >  configs/ls1043ardb_nand_defconfig        | 1 +
> >  configs/ls1043ardb_sdcard_defconfig      | 1 +
> >  include/configs/ls1043a_common.h         | 1 -
> >  12 files changed, 11 insertions(+), 1 deletion(-
> 
> Look like all these files using this ls*_common.h, then why this patch moving MTD
> to all defconfigs?
> 
> --
> Jagan.

According to ./drivers/mtd/spi-nor/Kconfig, CONFIG_DM_MTD_SPI_NOR needs 
CONFIG_MTD and CONFIG_DM_SPI to select it.
Then only when CONFIG_MTD is moved to defconfigs can CONFIG_DM_MTD_SPI_NOR
be defined. Or else, we have to define CONFIG_DM_MTD_SPI_NOR manually.

Regards,
Qianyu



More information about the U-Boot mailing list