blob: 1f02bfc35f6a6b020affadd210ec23d652593164 [file] [log] [blame]
Marian Balakowiczd62379d2006-09-01 19:49:50 +02001#
2# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Marian Balakowiczd62379d2006-09-01 19:49:50 +02006#
7
Simon Schwarz4f62e982011-09-14 15:30:16 -04008ifdef CONFIG_SPL_BUILD
Scott Woodc352a0c2012-09-20 19:09:07 -05009
10ifdef CONFIG_SPL_NAND_DRIVERS
11NORMAL_DRIVERS=y
Heiko Schocher565a09c2011-11-01 20:00:29 +000012endif
Scott Woodc352a0c2012-09-20 19:09:07 -050013
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090014obj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o
Masahiro Yamadad182d542014-10-03 19:21:04 +090015obj-$(CONFIG_SPL_NAND_DENALI) += denali_spl.o
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090016obj-$(CONFIG_SPL_NAND_DOCG4) += docg4_spl.o
17obj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o
18obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o
19obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o
20obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o
21obj-$(CONFIG_SPL_NAND_INIT) += nand.o
Tom Rinif86fd132014-03-28 12:03:37 -040022ifeq ($(CONFIG_SPL_ENV_SUPPORT),y)
23obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o
24endif
Scott Woodc352a0c2012-09-20 19:09:07 -050025
26else # not spl
27
28NORMAL_DRIVERS=y
29
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090030obj-y += nand.o
31obj-y += nand_bbt.o
32obj-y += nand_ids.o
33obj-y += nand_util.o
34obj-y += nand_ecc.o
35obj-y += nand_base.o
Scott Woodc352a0c2012-09-20 19:09:07 -050036
37endif # not spl
38
39ifdef NORMAL_DRIVERS
40
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090041obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o
Wolfgang Denk2f9b7e42005-08-17 12:55:25 +020042
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090043obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o
44obj-$(CONFIG_DRIVER_NAND_BFIN) += bfin_nand.o
45obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o
Chin Liang See03534df2014-09-12 00:42:17 -050046obj-$(CONFIG_NAND_DENALI) += denali.o
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090047obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
48obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
49obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
50obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o
51obj-$(CONFIG_NAND_JZ4740) += jz4740_nand.o
52obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
53obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
54obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
55obj-$(CONFIG_NAND_MPC5121_NFC) += mpc5121_nfc.o
Stefan Agnerd6b1ccb2014-09-12 13:06:35 +020056obj-$(CONFIG_NAND_VF610_NFC) += vf610_nfc.o
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090057obj-$(CONFIG_NAND_MXC) += mxc_nand.o
58obj-$(CONFIG_NAND_MXS) += mxs_nand.o
59obj-$(CONFIG_NAND_NDFC) += ndfc.o
60obj-$(CONFIG_NAND_NOMADIK) += nomadik.o
61obj-$(CONFIG_NAND_S3C2410) += s3c2410_nand.o
62obj-$(CONFIG_NAND_SPEAR) += spr_nand.o
63obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
64obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
pekon gupta89ad1dc2013-11-18 19:02:59 +053065obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090066obj-$(CONFIG_NAND_PLAT) += nand_plat.o
67obj-$(CONFIG_NAND_DOCG4) += docg4.o
Scott Woodc352a0c2012-09-20 19:09:07 -050068
Albert ARIBAUD32399d82013-01-08 23:57:20 +010069else # minimal SPL drivers
70
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090071obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o
72obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o
73obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o
Tim Harveydcf40662014-06-02 16:13:18 -070074obj-$(CONFIG_NAND_MXS) += mxs_nand_spl.o mxs_nand.o
Albert ARIBAUD32399d82013-01-08 23:57:20 +010075
Scott Woodc352a0c2012-09-20 19:09:07 -050076endif # drivers