blob: c61e3f38391aeb9027fd1599805d91e88c7eb2a9 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002#
3# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Marian Balakowiczd62379d2006-09-01 19:49:50 +02005
Simon Schwarz4f62e982011-09-14 15:30:16 -04006ifdef CONFIG_SPL_BUILD
Scott Woodc352a0c2012-09-20 19:09:07 -05007
8ifdef CONFIG_SPL_NAND_DRIVERS
9NORMAL_DRIVERS=y
Heiko Schocher565a09c2011-11-01 20:00:29 +000010endif
Scott Woodc352a0c2012-09-20 19:09:07 -050011
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090012obj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o
Masahiro Yamadad182d542014-10-03 19:21:04 +090013obj-$(CONFIG_SPL_NAND_DENALI) += denali_spl.o
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090014obj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o
15obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o
16obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o
17obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o
Jörg Krause6f8190f2018-01-14 19:26:38 +010018obj-$(CONFIG_SPL_NAND_IDENT) += nand_ids.o nand_timings.o
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090019obj-$(CONFIG_SPL_NAND_INIT) += nand.o
Tom Rinif86fd132014-03-28 12:03:37 -040020ifeq ($(CONFIG_SPL_ENV_SUPPORT),y)
21obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o
22endif
Scott Woodc352a0c2012-09-20 19:09:07 -050023
24else # not spl
25
26NORMAL_DRIVERS=y
27
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090028obj-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
Scott Wood3ea94ed2015-06-26 19:03:26 -050034obj-y += nand_timings.o
Scott Woodc352a0c2012-09-20 19:09:07 -050035
36endif # not spl
37
38ifdef NORMAL_DRIVERS
39
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090040obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o
Wolfgang Denk2f9b7e42005-08-17 12:55:25 +020041
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090042obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o
Siva Durga Prasad Paladuguc7b0bc72015-11-17 14:30:10 +053043obj-$(CONFIG_NAND_ARASAN) += arasan_nfc.o
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090044obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o
Chin Liang See03534df2014-09-12 00:42:17 -050045obj-$(CONFIG_NAND_DENALI) += denali.o
Masahiro Yamada9c5a5dd2017-08-26 01:12:31 +090046obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.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
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090051obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
52obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
53obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
Albert ARIBAUD \(3ADEV\)7c97f702015-03-31 11:40:44 +020054obj-$(CONFIG_NAND_LPC32XX_MLC) += lpc32xx_nand_mlc.o
Vladimir Zapolskiy78f04f02015-07-18 03:07:52 +030055obj-$(CONFIG_NAND_LPC32XX_SLC) += lpc32xx_nand_slc.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
Stefan Agner150ddbc2018-06-22 18:06:17 +020059obj-$(CONFIG_NAND_MXS_DT) += mxs_nand_dt.o
Stefan Roese75659da2015-07-23 10:26:16 +020060obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090061obj-$(CONFIG_NAND_SPEAR) += spr_nand.o
62obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
63obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
pekon gupta89ad1dc2013-11-18 19:02:59 +053064obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090065obj-$(CONFIG_NAND_PLAT) += nand_plat.o
Boris Brezillon57f20382016-06-15 21:09:23 +020066obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o
Siva Durga Prasad Paladuguc41d5cd2016-09-27 10:55:46 +053067obj-$(CONFIG_NAND_ZYNQ) += zynq_nand.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
Hans de Goede3ce35f92015-08-16 14:48:22 +020075obj-$(CONFIG_NAND_SUNXI) += sunxi_nand_spl.o
Albert ARIBAUD32399d82013-01-08 23:57:20 +010076
Scott Woodc352a0c2012-09-20 19:09:07 -050077endif # drivers