blob: 9f7d9d6ff7ae2ca04edfe29bd09f4af9da810fc1 [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
Masahiro Yamada845034e2014-10-03 19:21:04 +090015obj-$(CONFIG_SPL_NAND_DENALI) += denali_spl.o
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090016obj-$(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 Woodd3963722015-06-26 19:03:26 -050035obj-y += nand_timings.o
Scott Wood6f2f01b2012-09-20 19:09:07 -050036
37endif # not spl
38
39ifdef NORMAL_DRIVERS
40
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090041obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o
Marian Balakowiczf9328632006-09-01 19:49:50 +020042
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090043obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o
Siva Durga Prasad Paladugue4b40e92015-11-17 14:30:10 +053044obj-$(CONFIG_NAND_ARASAN) += arasan_nfc.o
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090045obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o
Chin Liang See3eb3e722014-09-12 00:42:17 -050046obj-$(CONFIG_NAND_DENALI) += denali.o
Masahiro Yamada1d9654d2017-08-26 01:12:31 +090047obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090048obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
49obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
50obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
51obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090052obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
53obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
54obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
Albert ARIBAUD \(3ADEV\)c8381bf2015-03-31 11:40:44 +020055obj-$(CONFIG_NAND_LPC32XX_MLC) += lpc32xx_nand_mlc.o
Vladimir Zapolskiydcfd37e2015-07-18 03:07:52 +030056obj-$(CONFIG_NAND_LPC32XX_SLC) += lpc32xx_nand_slc.o
Stefan Agner72d7bea2014-09-12 13:06:35 +020057obj-$(CONFIG_NAND_VF610_NFC) += vf610_nfc.o
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090058obj-$(CONFIG_NAND_MXC) += mxc_nand.o
59obj-$(CONFIG_NAND_MXS) += mxs_nand.o
60obj-$(CONFIG_NAND_NDFC) += ndfc.o
Stefan Roese873960c2015-07-23 10:26:16 +020061obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090062obj-$(CONFIG_NAND_SPEAR) += spr_nand.o
63obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
64obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
pekon guptabeba5f02013-11-18 19:02:59 +053065obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090066obj-$(CONFIG_NAND_PLAT) += nand_plat.o
Boris Brezillon4ccae812016-06-15 21:09:23 +020067obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o
Siva Durga Prasad Paladuguae798d22016-09-27 10:55:46 +053068obj-$(CONFIG_NAND_ZYNQ) += zynq_nand.o
Scott Wood6f2f01b2012-09-20 19:09:07 -050069
Albert ARIBAUD44948592013-01-08 23:57:20 +010070else # minimal SPL drivers
71
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090072obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o
73obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o
74obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o
Tim Harvey73210dc2014-06-02 16:13:18 -070075obj-$(CONFIG_NAND_MXS) += mxs_nand_spl.o mxs_nand.o
Hans de Goedee5268612015-08-16 14:48:22 +020076obj-$(CONFIG_NAND_SUNXI) += sunxi_nand_spl.o
Albert ARIBAUD44948592013-01-08 23:57:20 +010077
Scott Wood6f2f01b2012-09-20 19:09:07 -050078endif # drivers