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 | |
Simon Schwarz | 4f62e98 | 2011-09-14 15:30:16 -0400 | [diff] [blame] | 8 | ifdef CONFIG_SPL_BUILD |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 9 | |
| 10 | ifdef CONFIG_SPL_NAND_DRIVERS |
| 11 | NORMAL_DRIVERS=y |
Heiko Schocher | 565a09c | 2011-11-01 20:00:29 +0000 | [diff] [blame] | 12 | endif |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 13 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 14 | obj-$(CONFIG_SPL_NAND_AM33XX_BCH) += am335x_spl_bch.o |
Masahiro Yamada | d182d54 | 2014-10-03 19:21:04 +0900 | [diff] [blame] | 15 | obj-$(CONFIG_SPL_NAND_DENALI) += denali_spl.o |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 16 | obj-$(CONFIG_SPL_NAND_SIMPLE) += nand_spl_simple.o |
| 17 | obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o |
| 18 | obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o |
| 19 | obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o |
| 20 | obj-$(CONFIG_SPL_NAND_INIT) += nand.o |
Tom Rini | f86fd13 | 2014-03-28 12:03:37 -0400 | [diff] [blame] | 21 | ifeq ($(CONFIG_SPL_ENV_SUPPORT),y) |
| 22 | obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o |
| 23 | endif |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 24 | |
| 25 | else # not spl |
| 26 | |
| 27 | NORMAL_DRIVERS=y |
| 28 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 29 | obj-y += nand.o |
| 30 | obj-y += nand_bbt.o |
| 31 | obj-y += nand_ids.o |
| 32 | obj-y += nand_util.o |
| 33 | obj-y += nand_ecc.o |
| 34 | obj-y += nand_base.o |
Scott Wood | 3ea94ed | 2015-06-26 19:03:26 -0500 | [diff] [blame] | 35 | obj-y += nand_timings.o |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 36 | |
| 37 | endif # not spl |
| 38 | |
| 39 | ifdef NORMAL_DRIVERS |
| 40 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 41 | obj-$(CONFIG_NAND_ECC_BCH) += nand_bch.o |
Wolfgang Denk | 2f9b7e4 | 2005-08-17 12:55:25 +0200 | [diff] [blame] | 42 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_NAND_ATMEL) += atmel_nand.o |
Siva Durga Prasad Paladugu | c7b0bc7 | 2015-11-17 14:30:10 +0530 | [diff] [blame] | 44 | obj-$(CONFIG_NAND_ARASAN) += arasan_nfc.o |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 45 | obj-$(CONFIG_NAND_DAVINCI) += davinci_nand.o |
Chin Liang See | 03534df | 2014-09-12 00:42:17 -0500 | [diff] [blame] | 46 | obj-$(CONFIG_NAND_DENALI) += denali.o |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 47 | obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o |
| 48 | obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o |
| 49 | obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o |
| 50 | obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 51 | obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o |
| 52 | obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o |
| 53 | obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o |
Albert ARIBAUD \(3ADEV\) | 7c97f70 | 2015-03-31 11:40:44 +0200 | [diff] [blame] | 54 | obj-$(CONFIG_NAND_LPC32XX_MLC) += lpc32xx_nand_mlc.o |
Vladimir Zapolskiy | 78f04f0 | 2015-07-18 03:07:52 +0300 | [diff] [blame] | 55 | obj-$(CONFIG_NAND_LPC32XX_SLC) += lpc32xx_nand_slc.o |
Stefan Agner | d6b1ccb | 2014-09-12 13:06:35 +0200 | [diff] [blame] | 56 | obj-$(CONFIG_NAND_VF610_NFC) += vf610_nfc.o |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 57 | obj-$(CONFIG_NAND_MXC) += mxc_nand.o |
| 58 | obj-$(CONFIG_NAND_MXS) += mxs_nand.o |
| 59 | obj-$(CONFIG_NAND_NDFC) += ndfc.o |
Stefan Roese | 75659da | 2015-07-23 10:26:16 +0200 | [diff] [blame] | 60 | obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 61 | obj-$(CONFIG_NAND_SPEAR) += spr_nand.o |
| 62 | obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o |
| 63 | obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o |
pekon gupta | 89ad1dc | 2013-11-18 19:02:59 +0530 | [diff] [blame] | 64 | obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 65 | obj-$(CONFIG_NAND_PLAT) += nand_plat.o |
Boris Brezillon | 57f2038 | 2016-06-15 21:09:23 +0200 | [diff] [blame] | 66 | obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o |
Siva Durga Prasad Paladugu | c41d5cd | 2016-09-27 10:55:46 +0530 | [diff] [blame] | 67 | obj-$(CONFIG_NAND_ZYNQ) += zynq_nand.o |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 68 | |
Albert ARIBAUD | 32399d8 | 2013-01-08 23:57:20 +0100 | [diff] [blame] | 69 | else # minimal SPL drivers |
| 70 | |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 71 | obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_spl.o |
| 72 | obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_spl.o |
| 73 | obj-$(CONFIG_NAND_MXC) += mxc_nand_spl.o |
Tim Harvey | dcf4066 | 2014-06-02 16:13:18 -0700 | [diff] [blame] | 74 | obj-$(CONFIG_NAND_MXS) += mxs_nand_spl.o mxs_nand.o |
Hans de Goede | 3ce35f9 | 2015-08-16 14:48:22 +0200 | [diff] [blame] | 75 | obj-$(CONFIG_NAND_SUNXI) += sunxi_nand_spl.o |
Albert ARIBAUD | 32399d8 | 2013-01-08 23:57:20 +0100 | [diff] [blame] | 76 | |
Scott Wood | c352a0c | 2012-09-20 19:09:07 -0500 | [diff] [blame] | 77 | endif # drivers |