blob: add2b4cf6553512731c62c5646e6f1a47abec2dc [file] [log] [blame]
Miquel Raynal1f1ae152018-08-16 17:30:07 +02001# 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
Michael Trimarchi66483b32022-07-20 18:22:14 +020017obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o nand_amd.o nand_hynix.o \
18 nand_macronix.o nand_micron.o \
Michael Trimarchic7b28302022-07-20 18:22:13 +020019 nand_samsung.o nand_toshiba.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020020obj-$(CONFIG_SPL_NAND_IDENT) += nand_ids.o nand_timings.o
Roger Quadros685c4282022-12-20 12:22:00 +020021obj-$(CONFIG_$(SPL_TPL_)NAND_INIT) += nand.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020022ifeq ($(CONFIG_SPL_ENV_SUPPORT),y)
23obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o
24endif
25
26else # not spl
27
28NORMAL_DRIVERS=y
29
30obj-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
Michael Trimarchic7b28302022-07-20 18:22:13 +020036obj-y += nand_amd.o
Michael Trimarchi3dc90602022-07-20 18:22:10 +020037obj-y += nand_hynix.o
Michael Trimarchi66483b32022-07-20 18:22:14 +020038obj-y += nand_macronix.o
Michael Trimarchifa5d40c2022-07-20 18:22:12 +020039obj-y += nand_micron.o
Michael Trimarchi6c8ef802022-07-20 18:22:09 +020040obj-y += nand_samsung.o
Michael Trimarchi3ba671b2022-07-20 18:22:11 +020041obj-y += nand_toshiba.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020042obj-y += nand_timings.o
43
44endif # not spl
45
46ifdef NORMAL_DRIVERS
47
48obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o
49
50obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o
Balamanikandan Gunasundarfe33c7d2022-10-25 16:21:01 +053051obj-$(CONFIG_DM_NAND_ATMEL) += atmel/
Miquel Raynal1f1ae152018-08-16 17:30:07 +020052obj-$(CONFIG_NAND_ARASAN) += arasan_nfc.o
Philippe Reynes5aa6cfb2019-03-15 15:14:36 +010053obj-$(CONFIG_NAND_BRCMNAND) += brcmnand/
Miquel Raynal1f1ae152018-08-16 17:30:07 +020054obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o
55obj-$(CONFIG_NAND_DENALI) += denali.o
56obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
57obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
58obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020059obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
60obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
61obj-$(CONFIG_NAND_LPC32XX_MLC) += lpc32xx_nand_mlc.o
62obj-$(CONFIG_NAND_LPC32XX_SLC) += lpc32xx_nand_slc.o
63obj-$(CONFIG_NAND_VF610_NFC) += vf610_nfc.o
64obj-$(CONFIG_NAND_MXC) += mxc_nand.o
65obj-$(CONFIG_NAND_MXS) += mxs_nand.o
66obj-$(CONFIG_NAND_MXS_DT) += mxs_nand_dt.o
Suneel Garapati9de7d2b2020-08-26 14:37:22 +020067obj-$(CONFIG_NAND_OCTEONTX) += octeontx_nand.o
68obj-$(CONFIG_NAND_OCTEONTX_HW_ECC) += octeontx_bch.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020069obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020070obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
71obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
72obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020073obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o
Zhengxun Li01551712021-09-14 13:43:51 +080074obj-$(CONFIG_NAND_MXIC) += mxic_nand.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020075obj-$(CONFIG_NAND_ZYNQ) += zynq_nand.o
Christophe Kerelloda141682019-04-05 11:41:50 +020076obj-$(CONFIG_NAND_STM32_FMC2) += stm32_fmc2_nand.o
Kate Liu41ccd2e2020-12-11 13:46:12 -080077obj-$(CONFIG_CORTINA_NAND) += cortina_nand.o
Yifeng Zhao9e9021e2021-06-07 16:40:29 +080078obj-$(CONFIG_ROCKCHIP_NAND) += rockchip_nfc.o
developer10a61df2022-05-20 11:23:47 +080079obj-$(CONFIG_NAND_MT7621) += mt7621_nand.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020080
81else # minimal SPL drivers
82
83obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o
84obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o
85obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o
86obj-$(CONFIG_NAND_MXS) += mxs_nand_spl.o mxs_nand.o
87obj-$(CONFIG_NAND_SUNXI) += sunxi_nand_spl.o
developer10a61df2022-05-20 11:23:47 +080088obj-$(CONFIG_NAND_MT7621) += mt7621_nand_spl.o mt7621_nand.o
Miquel Raynal1f1ae152018-08-16 17:30:07 +020089
90endif # drivers