2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2006-09-01 17:49:50 +00:00
|
|
|
#
|
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2011-09-14 19:30:16 +00:00
|
|
|
ifdef CONFIG_SPL_BUILD
|
2012-09-21 00:09:07 +00:00
|
|
|
|
|
|
|
ifdef CONFIG_SPL_NAND_DRIVERS
|
|
|
|
NORMAL_DRIVERS=y
|
2011-11-01 20:00:29 +00:00
|
|
|
endif
|
2012-09-21 00:09:07 +00:00
|
|
|
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o
|
2014-10-03 10:21:04 +00:00
|
|
|
obj-$(CONFIG_SPL_NAND_DENALI) += denali_spl.o
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o
|
|
|
|
obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o
|
|
|
|
obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o
|
|
|
|
obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o
|
|
|
|
obj-$(CONFIG_SPL_NAND_INIT) += nand.o
|
2014-03-28 16:03:37 +00:00
|
|
|
ifeq ($(CONFIG_SPL_ENV_SUPPORT),y)
|
|
|
|
obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o
|
|
|
|
endif
|
2012-09-21 00:09:07 +00:00
|
|
|
|
|
|
|
else # not spl
|
|
|
|
|
|
|
|
NORMAL_DRIVERS=y
|
|
|
|
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-y += nand.o
|
|
|
|
obj-y += nand_bbt.o
|
|
|
|
obj-y += nand_ids.o
|
|
|
|
obj-y += nand_util.o
|
|
|
|
obj-y += nand_ecc.o
|
|
|
|
obj-y += nand_base.o
|
2015-06-27 00:03:26 +00:00
|
|
|
obj-y += nand_timings.o
|
2012-09-21 00:09:07 +00:00
|
|
|
|
|
|
|
endif # not spl
|
|
|
|
|
|
|
|
ifdef NORMAL_DRIVERS
|
|
|
|
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o
|
2015-11-17 09:00:10 +00:00
|
|
|
obj-$(CONFIG_NAND_ARASAN) += arasan_nfc.o
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o
|
2014-09-12 05:42:17 +00:00
|
|
|
obj-$(CONFIG_NAND_DENALI) += denali.o
|
2017-08-25 16:12:31 +00:00
|
|
|
obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
|
|
|
|
obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
|
|
|
|
obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
|
|
|
|
obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o
|
|
|
|
obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
|
|
|
|
obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
|
|
|
|
obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
|
2015-03-31 09:40:44 +00:00
|
|
|
obj-$(CONFIG_NAND_LPC32XX_MLC) += lpc32xx_nand_mlc.o
|
2015-07-18 00:07:52 +00:00
|
|
|
obj-$(CONFIG_NAND_LPC32XX_SLC) += lpc32xx_nand_slc.o
|
2014-09-12 11:06:35 +00:00
|
|
|
obj-$(CONFIG_NAND_VF610_NFC) += vf610_nfc.o
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-$(CONFIG_NAND_MXC) += mxc_nand.o
|
|
|
|
obj-$(CONFIG_NAND_MXS) += mxs_nand.o
|
2015-07-23 08:26:16 +00:00
|
|
|
obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-$(CONFIG_NAND_SPEAR) += spr_nand.o
|
|
|
|
obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
|
|
|
|
obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
|
2013-11-18 13:32:59 +00:00
|
|
|
obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-$(CONFIG_NAND_PLAT) += nand_plat.o
|
2016-06-15 19:09:23 +00:00
|
|
|
obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o
|
2016-09-27 05:25:46 +00:00
|
|
|
obj-$(CONFIG_NAND_ZYNQ) += zynq_nand.o
|
2012-09-21 00:09:07 +00:00
|
|
|
|
2013-01-08 22:57:20 +00:00
|
|
|
else # minimal SPL drivers
|
|
|
|
|
2013-10-17 08:34:55 +00:00
|
|
|
obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o
|
|
|
|
obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o
|
|
|
|
obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o
|
2014-06-02 23:13:18 +00:00
|
|
|
obj-$(CONFIG_NAND_MXS) += mxs_nand_spl.o mxs_nand.o
|
2015-08-16 12:48:22 +00:00
|
|
|
obj-$(CONFIG_NAND_SUNXI) += sunxi_nand_spl.o
|
2013-01-08 22:57:20 +00:00
|
|
|
|
2012-09-21 00:09:07 +00:00
|
|
|
endif # drivers
|