blob: 4eb354da93a17b9f551bf5a8caf0a245d5b32d31 [file] [log] [blame]
Marian Balakowiczf9328632006-09-01 19:49:50 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Marian Balakowiczf9328632006-09-01 19:49:50 +02006#
7
Simon Schwarz12c2f1e2011-09-14 15:30:16 -04008ifdef CONFIG_SPL_BUILD
Scott Wood6f2f01b2012-09-20 19:09:07 -05009
10ifdef CONFIG_SPL_NAND_DRIVERS
11NORMAL_DRIVERS=y
Simon Schwarz12c2f1e2011-09-14 15:30:16 -040012endif
Scott Wood6f2f01b2012-09-20 19:09:07 -050013
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090014obj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o
15obj-$(CONFIG_SPL_NAND_DOCG4) += docg4_spl.o
16obj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o
17obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o
18obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o
19obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o
20obj-$(CONFIG_SPL_NAND_INIT) += nand.o
Tom Rinidb605802014-03-28 12:03:37 -040021ifeq ($(CONFIG_SPL_ENV_SUPPORT),y)
22obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o
23endif
Scott Wood6f2f01b2012-09-20 19:09:07 -050024
25else # not spl
26
27NORMAL_DRIVERS=y
28
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090029obj-y += nand.o
30obj-y += nand_bbt.o
31obj-y += nand_ids.o
32obj-y += nand_util.o
33obj-y += nand_ecc.o
34obj-y += nand_base.o
Scott Wood6f2f01b2012-09-20 19:09:07 -050035
36endif # not spl
37
38ifdef NORMAL_DRIVERS
39
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090040obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o
Marian Balakowiczf9328632006-09-01 19:49:50 +020041
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090042obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o
43obj-$(CONFIG_DRIVER_NAND_BFIN) += bfin_nand.o
44obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o
45obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
46obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
47obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
48obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o
49obj-$(CONFIG_NAND_JZ4740) += jz4740_nand.o
50obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
51obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
52obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
53obj-$(CONFIG_NAND_MPC5121_NFC) += mpc5121_nfc.o
54obj-$(CONFIG_NAND_MXC) += mxc_nand.o
55obj-$(CONFIG_NAND_MXS) += mxs_nand.o
56obj-$(CONFIG_NAND_NDFC) += ndfc.o
57obj-$(CONFIG_NAND_NOMADIK) += nomadik.o
58obj-$(CONFIG_NAND_S3C2410) += s3c2410_nand.o
59obj-$(CONFIG_NAND_SPEAR) += spr_nand.o
60obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
61obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
pekon guptabeba5f02013-11-18 19:02:59 +053062obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090063obj-$(CONFIG_NAND_PLAT) += nand_plat.o
64obj-$(CONFIG_NAND_DOCG4) += docg4.o
Scott Wood6f2f01b2012-09-20 19:09:07 -050065
Albert ARIBAUD44948592013-01-08 23:57:20 +010066else # minimal SPL drivers
67
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090068obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o
69obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o
70obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o
Albert ARIBAUD44948592013-01-08 23:57:20 +010071
Scott Wood6f2f01b2012-09-20 19:09:07 -050072endif # drivers