Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 6 | # |
| 7 | |
Jean-Christophe PLAGNIOL-VILLARD | 719bb5f | 2008-08-13 01:40:43 +0200 | [diff] [blame] | 8 | ifdef CONFIG_CMD_NAND |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 9 | |
Simon Schwarz | 4f62e98 | 2011-09-14 15:30:16 -0400 | [diff] [blame] | 10 | ifdef CONFIG_SPL_BUILD |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 11 | |
| 12 | ifdef CONFIG_SPL_NAND_DRIVERS |
| 13 | NORMAL_DRIVERS=y |
Heiko Schocher | 565a09c | 2011-11-01 20:00:29 +0000 | [diff] [blame] | 14 | endif |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 15 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 16 | obj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o |
| 17 | obj-$(CONFIG_SPL_NAND_DOCG4) += docg4_spl.o |
| 18 | obj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o |
| 19 | obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o |
| 20 | obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o |
| 21 | obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o |
| 22 | obj-$(CONFIG_SPL_NAND_INIT) += nand.o |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 23 | |
| 24 | else # not spl |
| 25 | |
| 26 | NORMAL_DRIVERS=y |
| 27 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 28 | obj-y += nand.o |
| 29 | obj-y += nand_bbt.o |
| 30 | obj-y += nand_ids.o |
| 31 | obj-y += nand_util.o |
| 32 | obj-y += nand_ecc.o |
| 33 | obj-y += nand_base.o |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 34 | |
| 35 | endif # not spl |
| 36 | |
| 37 | ifdef NORMAL_DRIVERS |
| 38 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 39 | obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o |
Wolfgang Denk | 2f9b7e4 | 2005-08-17 12:55:25 +0200 | [diff] [blame] | 40 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 41 | obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o |
| 42 | obj-$(CONFIG_DRIVER_NAND_BFIN) += bfin_nand.o |
| 43 | obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o |
| 44 | obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o |
| 45 | obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o |
| 46 | obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o |
| 47 | obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o |
| 48 | obj-$(CONFIG_NAND_JZ4740) += jz4740_nand.o |
| 49 | obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o |
| 50 | obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o |
| 51 | obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o |
| 52 | obj-$(CONFIG_NAND_MPC5121_NFC) += mpc5121_nfc.o |
| 53 | obj-$(CONFIG_NAND_MXC) += mxc_nand.o |
| 54 | obj-$(CONFIG_NAND_MXS) += mxs_nand.o |
| 55 | obj-$(CONFIG_NAND_NDFC) += ndfc.o |
| 56 | obj-$(CONFIG_NAND_NOMADIK) += nomadik.o |
| 57 | obj-$(CONFIG_NAND_S3C2410) += s3c2410_nand.o |
| 58 | obj-$(CONFIG_NAND_SPEAR) += spr_nand.o |
| 59 | obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o |
| 60 | obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o |
| 61 | obj-$(CONFIG_NAND_PLAT) += nand_plat.o |
| 62 | obj-$(CONFIG_NAND_DOCG4) += docg4.o |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 63 | |
Albert ARIBAUD | 32399d8 | 2013-01-08 23:57:20 +0100 | [diff] [blame] | 64 | else # minimal SPL drivers |
| 65 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 66 | obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o |
| 67 | obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o |
| 68 | obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o |
Albert ARIBAUD | 32399d8 | 2013-01-08 23:57:20 +0100 | [diff] [blame] | 69 | |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 70 | endif # drivers |
| 71 | endif # nand |