xref: /openbmc/u-boot/drivers/mtd/nand/Makefile (revision e91610da)
1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6ifdef CONFIG_SPL_BUILD
7
8ifdef CONFIG_SPL_NAND_DRIVERS
9NORMAL_DRIVERS=y
10endif
11
12obj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o
13obj-$(CONFIG_SPL_NAND_DENALI) += denali_spl.o
14obj-$(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
18obj-$(CONFIG_SPL_NAND_INIT) += nand.o
19ifeq ($(CONFIG_SPL_ENV_SUPPORT),y)
20obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o
21endif
22
23else # not spl
24
25NORMAL_DRIVERS=y
26
27obj-y += nand.o
28obj-y += nand_bbt.o
29obj-y += nand_ids.o
30obj-y += nand_util.o
31obj-y += nand_ecc.o
32obj-y += nand_base.o
33obj-y += nand_timings.o
34
35endif # not spl
36
37ifdef NORMAL_DRIVERS
38
39obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o
40
41obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o
42obj-$(CONFIG_NAND_ARASAN) += arasan_nfc.o
43obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o
44obj-$(CONFIG_NAND_DENALI) += denali.o
45obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
46obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
47obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
48obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
49obj-$(CONFIG_NAND_FSMC) += fsmc_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_LPC32XX_MLC) += lpc32xx_nand_mlc.o
54obj-$(CONFIG_NAND_LPC32XX_SLC) += lpc32xx_nand_slc.o
55obj-$(CONFIG_NAND_VF610_NFC) += vf610_nfc.o
56obj-$(CONFIG_NAND_MXC) += mxc_nand.o
57obj-$(CONFIG_NAND_MXS) += mxs_nand.o
58obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o
59obj-$(CONFIG_NAND_SPEAR) += spr_nand.o
60obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
61obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
62obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
63obj-$(CONFIG_NAND_PLAT) += nand_plat.o
64obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o
65obj-$(CONFIG_NAND_ZYNQ) += zynq_nand.o
66
67else  # minimal SPL drivers
68
69obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o
70obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o
71obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o
72obj-$(CONFIG_NAND_MXS) += mxs_nand_spl.o mxs_nand.o
73obj-$(CONFIG_NAND_SUNXI) += sunxi_nand_spl.o
74
75endif # drivers
76