Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # |
| 3 | # (C) Copyright 2006 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 5 | |
| 6 | ifdef CONFIG_SPL_BUILD |
| 7 | |
| 8 | ifdef CONFIG_SPL_NAND_DRIVERS |
| 9 | NORMAL_DRIVERS=y |
| 10 | endif |
| 11 | |
| 12 | obj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o |
| 13 | obj-$(CONFIG_SPL_NAND_DENALI) += denali_spl.o |
| 14 | obj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o |
| 15 | obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o |
| 16 | obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o |
Michael Trimarchi | 66483b3 | 2022-07-20 18:22:14 +0200 | [diff] [blame] | 17 | obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o nand_amd.o nand_hynix.o \ |
| 18 | nand_macronix.o nand_micron.o \ |
Michael Trimarchi | c7b2830 | 2022-07-20 18:22:13 +0200 | [diff] [blame] | 19 | nand_samsung.o nand_toshiba.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 20 | obj-$(CONFIG_SPL_NAND_IDENT) += nand_ids.o nand_timings.o |
Roger Quadros | 685c428 | 2022-12-20 12:22:00 +0200 | [diff] [blame] | 21 | obj-$(CONFIG_$(SPL_TPL_)NAND_INIT) += nand.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 22 | ifeq ($(CONFIG_SPL_ENV_SUPPORT),y) |
| 23 | obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o |
| 24 | endif |
| 25 | |
| 26 | else # not spl |
| 27 | |
| 28 | NORMAL_DRIVERS=y |
| 29 | |
| 30 | obj-y += nand.o |
| 31 | obj-y += nand_bbt.o |
| 32 | obj-y += nand_ids.o |
| 33 | obj-y += nand_util.o |
| 34 | obj-y += nand_ecc.o |
| 35 | obj-y += nand_base.o |
Michael Trimarchi | c7b2830 | 2022-07-20 18:22:13 +0200 | [diff] [blame] | 36 | obj-y += nand_amd.o |
Michael Trimarchi | 3dc9060 | 2022-07-20 18:22:10 +0200 | [diff] [blame] | 37 | obj-y += nand_hynix.o |
Michael Trimarchi | 66483b3 | 2022-07-20 18:22:14 +0200 | [diff] [blame] | 38 | obj-y += nand_macronix.o |
Michael Trimarchi | fa5d40c | 2022-07-20 18:22:12 +0200 | [diff] [blame] | 39 | obj-y += nand_micron.o |
Michael Trimarchi | 6c8ef80 | 2022-07-20 18:22:09 +0200 | [diff] [blame] | 40 | obj-y += nand_samsung.o |
Michael Trimarchi | 3ba671b | 2022-07-20 18:22:11 +0200 | [diff] [blame] | 41 | obj-y += nand_toshiba.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 42 | obj-y += nand_timings.o |
| 43 | |
| 44 | endif # not spl |
| 45 | |
| 46 | ifdef NORMAL_DRIVERS |
| 47 | |
| 48 | obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o |
| 49 | |
| 50 | obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o |
Balamanikandan Gunasundar | fe33c7d | 2022-10-25 16:21:01 +0530 | [diff] [blame] | 51 | obj-$(CONFIG_DM_NAND_ATMEL) += atmel/ |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 52 | obj-$(CONFIG_NAND_ARASAN) += arasan_nfc.o |
Philippe Reynes | 5aa6cfb | 2019-03-15 15:14:36 +0100 | [diff] [blame] | 53 | obj-$(CONFIG_NAND_BRCMNAND) += brcmnand/ |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 54 | obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o |
| 55 | obj-$(CONFIG_NAND_DENALI) += denali.o |
| 56 | obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o |
| 57 | obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o |
| 58 | obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 59 | obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o |
| 60 | obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o |
| 61 | obj-$(CONFIG_NAND_LPC32XX_MLC) += lpc32xx_nand_mlc.o |
| 62 | obj-$(CONFIG_NAND_LPC32XX_SLC) += lpc32xx_nand_slc.o |
| 63 | obj-$(CONFIG_NAND_VF610_NFC) += vf610_nfc.o |
| 64 | obj-$(CONFIG_NAND_MXC) += mxc_nand.o |
| 65 | obj-$(CONFIG_NAND_MXS) += mxs_nand.o |
| 66 | obj-$(CONFIG_NAND_MXS_DT) += mxs_nand_dt.o |
Suneel Garapati | 9de7d2b | 2020-08-26 14:37:22 +0200 | [diff] [blame] | 67 | obj-$(CONFIG_NAND_OCTEONTX) += octeontx_nand.o |
| 68 | obj-$(CONFIG_NAND_OCTEONTX_HW_ECC) += octeontx_bch.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 69 | obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 70 | obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o |
| 71 | obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o |
| 72 | obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 73 | obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o |
Zhengxun Li | 0155171 | 2021-09-14 13:43:51 +0800 | [diff] [blame] | 74 | obj-$(CONFIG_NAND_MXIC) += mxic_nand.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 75 | obj-$(CONFIG_NAND_ZYNQ) += zynq_nand.o |
Christophe Kerello | da14168 | 2019-04-05 11:41:50 +0200 | [diff] [blame] | 76 | obj-$(CONFIG_NAND_STM32_FMC2) += stm32_fmc2_nand.o |
Kate Liu | 41ccd2e | 2020-12-11 13:46:12 -0800 | [diff] [blame] | 77 | obj-$(CONFIG_CORTINA_NAND) += cortina_nand.o |
Yifeng Zhao | 9e9021e | 2021-06-07 16:40:29 +0800 | [diff] [blame] | 78 | obj-$(CONFIG_ROCKCHIP_NAND) += rockchip_nfc.o |
developer | 10a61df | 2022-05-20 11:23:47 +0800 | [diff] [blame] | 79 | obj-$(CONFIG_NAND_MT7621) += mt7621_nand.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 80 | |
| 81 | else # minimal SPL drivers |
| 82 | |
| 83 | obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o |
| 84 | obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o |
| 85 | obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o |
| 86 | obj-$(CONFIG_NAND_MXS) += mxs_nand_spl.o mxs_nand.o |
| 87 | obj-$(CONFIG_NAND_SUNXI) += sunxi_nand_spl.o |
developer | 10a61df | 2022-05-20 11:23:47 +0800 | [diff] [blame] | 88 | obj-$(CONFIG_NAND_MT7621) += mt7621_nand_spl.o mt7621_nand.o |
Miquel Raynal | 1f1ae15 | 2018-08-16 17:30:07 +0200 | [diff] [blame] | 89 | |
| 90 | endif # drivers |