From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Thu, 26 Sep 2013 15:39:39 -0500 Subject: [U-Boot] [PATCH 04/11] mtd: Add a CONFIG_SPL_MTD_SUPPORT for a more full NAND subsystem in SPL In-Reply-To: <1380227287-26057-5-git-send-email-trini@ti.com> References: <1380227287-26057-1-git-send-email-trini@ti.com> <1380227287-26057-5-git-send-email-trini@ti.com> Message-ID: <1380227979.24959.300.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2013-09-26 at 16:28 -0400, Tom Rini wrote: > This mainly converts the am335x_spl_bch driver to the "normal" format > which means a slight change to nand_info within the driver. > > Cc: Scott Wood > Signed-off-by: Tom Rini > --- > drivers/mtd/nand/am335x_spl_bch.c | 54 ++++++++++++++++++------------------- > include/configs/ti_armv7_common.h | 1 + > spl/Makefile | 1 + > 3 files changed, 29 insertions(+), 27 deletions(-) Acked-by: Scott Wood with one caveat: > diff --git a/include/configs/ti_armv7_common.h b/include/configs/ti_armv7_common.h > index e89e874..32110f6 100644 > --- a/include/configs/ti_armv7_common.h > +++ b/include/configs/ti_armv7_common.h > @@ -244,6 +244,7 @@ > #define CONFIG_SPL_NAND_BASE > #define CONFIG_SPL_NAND_DRIVERS > #define CONFIG_SPL_NAND_ECC > +#define CONFIG_SPL_MTD_SUPPORT > #define CONFIG_SYS_NAND_U_BOOT_START CONFIG_SYS_TEXT_BASE > #define CONFIG_SYS_NAND_U_BOOT_OFFS 0x80000 > #endif > diff --git a/spl/Makefile b/spl/Makefile > index 174d0a7..fa642ec 100644 > --- a/spl/Makefile > +++ b/spl/Makefile > @@ -89,6 +89,7 @@ LIBS-$(CONFIG_SPL_FAT_SUPPORT) += fs/fat/libfat.o > LIBS-$(CONFIG_SPL_LIBGENERIC_SUPPORT) += lib/libgeneric.o > LIBS-$(CONFIG_SPL_POWER_SUPPORT) += drivers/power/libpower.o > LIBS-$(CONFIG_SPL_NAND_SUPPORT) += drivers/mtd/nand/libnand.o > +LIBS-$(CONFIG_SPL_MTD_SUPPORT) += drivers/mtd/libmtd.o > LIBS-$(CONFIG_SPL_ONENAND_SUPPORT) += drivers/mtd/onenand/libonenand.o > LIBS-$(CONFIG_SPL_DMA_SUPPORT) += drivers/dma/libdma.o > LIBS-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/memory.o This needs to be documented in the README. -Scott