From: Dinesh Maniyam <dinesh.mani...@intel.com> Enable the Kconfig and Makefile for the SPL_NAND_FRAMEWORK support in agilex5 family device. This will include all the basic files needed to use the existing nand spl support.
Signed-off-by: Dinesh Maniyam <dinesh.mani...@intel.com> --- drivers/mtd/nand/raw/Kconfig | 7 +++++++ drivers/mtd/nand/raw/Makefile | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index a9515c7b74..d6ac730224 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -837,4 +837,11 @@ config SYS_NAND_HW_ECC_OOBFIRST endif # if SPL +config SPL_NAND_FRAMEWORK + bool "Compile the entire NAND framework into the SPL" + help + Some drivers require a lot of functionality from the NAND framework + core when used in SPL. This option allows compiling the full NAND + framework into the SPL instead of it's reduced version. + endif # if MTD_RAW_NAND diff --git a/drivers/mtd/nand/raw/Makefile b/drivers/mtd/nand/raw/Makefile index 58fde3272f..0a32e184dc 100644 --- a/drivers/mtd/nand/raw/Makefile +++ b/drivers/mtd/nand/raw/Makefile @@ -3,8 +3,18 @@ # (C) Copyright 2006 # Wolfgang Denk, DENX Software Engineering, w...@denx.de. +nand-framework-objs := nand.o nand_bbt.o nand_ids.o nand_util.o \ + nand_ecc.o nand_base.o nand_timings.o nand_amd.o \ + nand_hynix.o nand_macronix.o nand_micron.o \ + nand_samsung.o nand_toshiba.o + ifdef CONFIG_SPL_BUILD +ifdef CONFIG_SPL_NAND_FRAMEWORK +obj-y += $(nand-framework-objs) +NORMAL_DRIVERS=y +endif + ifdef CONFIG_SPL_NAND_DRIVERS NORMAL_DRIVERS=y endif -- 2.19.0