xref: /rk3399_rockchip-uboot/drivers/mtd/nand/raw/Makefile (revision 813156ed32207266a1d9a2f6b3f268cf1f67871c)
1cfcc706cSMiquel Raynal# SPDX-License-Identifier: GPL-2.0+
2cfcc706cSMiquel Raynal#
3cfcc706cSMiquel Raynal# (C) Copyright 2006
4cfcc706cSMiquel Raynal# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5cfcc706cSMiquel Raynal
6cfcc706cSMiquel Raynalifdef CONFIG_SPL_BUILD
7cfcc706cSMiquel Raynal
8cfcc706cSMiquel Raynalifdef CONFIG_SPL_NAND_DRIVERS
9cfcc706cSMiquel RaynalNORMAL_DRIVERS=y
10cfcc706cSMiquel Raynalendif
11cfcc706cSMiquel Raynal
12cfcc706cSMiquel Raynalobj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o
13cfcc706cSMiquel Raynalobj-$(CONFIG_SPL_NAND_DENALI) += denali_spl.o
14cfcc706cSMiquel Raynalobj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o
15cfcc706cSMiquel Raynalobj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o
16cfcc706cSMiquel Raynalobj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o
17cfcc706cSMiquel Raynalobj-$(CONFIG_SPL_NAND_BASE) += nand_base.o
18cfcc706cSMiquel Raynalobj-$(CONFIG_SPL_NAND_IDENT) += nand_ids.o nand_timings.o
19cfcc706cSMiquel Raynalobj-$(CONFIG_SPL_NAND_INIT) += nand.o
20cfcc706cSMiquel Raynalifeq ($(CONFIG_SPL_ENV_SUPPORT),y)
21cfcc706cSMiquel Raynalobj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o
22cfcc706cSMiquel Raynalendif
23cfcc706cSMiquel Raynal
24cfcc706cSMiquel Raynalelse # not spl
25cfcc706cSMiquel Raynal
26cfcc706cSMiquel RaynalNORMAL_DRIVERS=y
27cfcc706cSMiquel Raynal
28cfcc706cSMiquel Raynalobj-y += nand.o
29cfcc706cSMiquel Raynalobj-y += nand_bbt.o
30cfcc706cSMiquel Raynalobj-y += nand_ids.o
31cfcc706cSMiquel Raynalobj-y += nand_util.o
32cfcc706cSMiquel Raynalobj-y += nand_ecc.o
33cfcc706cSMiquel Raynalobj-y += nand_base.o
34cfcc706cSMiquel Raynalobj-y += nand_timings.o
35cfcc706cSMiquel Raynal
36cfcc706cSMiquel Raynalendif # not spl
37cfcc706cSMiquel Raynal
38cfcc706cSMiquel Raynalifdef NORMAL_DRIVERS
39cfcc706cSMiquel Raynal
40cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o
41cfcc706cSMiquel Raynal
42cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_ATMEL) += atmel_nand.o
43cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_ARASAN) += arasan_nfc.o
44625940feSPhilippe Reynesobj-$(CONFIG_NAND_BRCMNAND) += brcmnand/
45cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o
46cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_DENALI) += denali.o
47cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
48cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
49cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
50cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
51cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_FSMC) += fsmc_nand.o
52cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
53cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
54cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
55cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_LPC32XX_MLC) += lpc32xx_nand_mlc.o
56cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_LPC32XX_SLC) += lpc32xx_nand_slc.o
57cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_VF610_NFC) += vf610_nfc.o
58cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_MXC) += mxc_nand.o
59cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_MXS) += mxs_nand.o
60cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_MXS_DT) += mxs_nand_dt.o
61cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o
62cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_SPEAR) += spr_nand.o
63cfcc706cSMiquel Raynalobj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
64cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
65cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
66cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_PLAT) += nand_plat.o
6757e25cf7SYifeng Zhaoobj-$(CONFIG_NAND_ROCKCHIP) += rockchip_nand.o
6857e25cf7SYifeng Zhaoobj-$(CONFIG_NAND_ROCKCHIP_V9) += rockchip_nand_v9.o
69cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o
70cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_ZYNQ) += zynq_nand.o
7115f504adSChristophe Kerelloobj-$(CONFIG_NAND_STM32_FMC2) += stm32_fmc2_nand.o
72cfcc706cSMiquel Raynal
73cfcc706cSMiquel Raynalelse  # minimal SPL drivers
74cfcc706cSMiquel Raynal
75cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o
76cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o
77cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o
78cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_MXS) += mxs_nand_spl.o mxs_nand.o
79cfcc706cSMiquel Raynalobj-$(CONFIG_NAND_SUNXI) += sunxi_nand_spl.o
8057e25cf7SYifeng Zhaoobj-$(CONFIG_NAND_ROCKCHIP) += rockchip_nand_spl.o
81*813156edSYifeng Zhaoobj-$(CONFIG_NAND_ROCKCHIP_V9) += rockchip_nand_spl_v9.o
82cfcc706cSMiquel Raynal
83cfcc706cSMiquel Raynalendif # drivers
84