1# 2# (C) Copyright 2006 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# SPDX-License-Identifier: GPL-2.0+ 6# 7 8ifdef CONFIG_CMD_NAND 9 10ifdef CONFIG_SPL_BUILD 11 12ifdef CONFIG_SPL_NAND_DRIVERS 13NORMAL_DRIVERS=y 14endif 15 16obj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o 17obj-$(CONFIG_SPL_NAND_DOCG4) += docg4_spl.o 18obj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o 19obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o 20obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o 21obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o 22obj-$(CONFIG_SPL_NAND_INIT) += nand.o 23 24else # not spl 25 26NORMAL_DRIVERS=y 27 28obj-y += nand.o 29obj-y += nand_bbt.o 30obj-y += nand_ids.o 31obj-y += nand_util.o 32obj-y += nand_ecc.o 33obj-y += nand_base.o 34 35endif # not spl 36 37ifdef NORMAL_DRIVERS 38 39obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o 40 41obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o 42obj-$(CONFIG_DRIVER_NAND_BFIN) += bfin_nand.o 43obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o 44obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o 45obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o 46obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o 47obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o 48obj-$(CONFIG_NAND_JZ4740) += jz4740_nand.o 49obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o 50obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o 51obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o 52obj-$(CONFIG_NAND_MPC5121_NFC) += mpc5121_nfc.o 53obj-$(CONFIG_NAND_MXC) += mxc_nand.o 54obj-$(CONFIG_NAND_MXS) += mxs_nand.o 55obj-$(CONFIG_NAND_NDFC) += ndfc.o 56obj-$(CONFIG_NAND_NOMADIK) += nomadik.o 57obj-$(CONFIG_NAND_S3C2410) += s3c2410_nand.o 58obj-$(CONFIG_NAND_SPEAR) += spr_nand.o 59obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o 60obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o 61obj-$(CONFIG_NAND_PLAT) += nand_plat.o 62obj-$(CONFIG_NAND_DOCG4) += docg4.o 63 64else # minimal SPL drivers 65 66obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o 67obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o 68obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o 69 70endif # drivers 71endif # nand 72