Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Haavard Skinnemoen | 2f5bfb7 | 2008-05-16 11:10:33 +0200 | [diff] [blame] | 2 | # |
| 3 | # (C) Copyright 2006 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Haavard Skinnemoen | 2f5bfb7 | 2008-05-16 11:10:33 +0200 | [diff] [blame] | 5 | |
Simon Glass | d6eedf7 | 2014-10-13 23:42:06 -0600 | [diff] [blame] | 6 | obj-$(CONFIG_DM_SPI_FLASH) += sf-uclass.o |
Vignesh R | 3f5fb8b | 2019-02-05 11:29:25 +0530 | [diff] [blame] | 7 | spi-nor-y := sf_probe.o spi-nor-ids.o |
Simon Glass | d6eedf7 | 2014-10-13 23:42:06 -0600 | [diff] [blame] | 8 | |
Christian Riesch | 23f16a8 | 2011-12-09 09:47:35 +0000 | [diff] [blame] | 9 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 25bb3af | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 10 | obj-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o |
Vignesh R | 3f5fb8b | 2019-02-05 11:29:25 +0530 | [diff] [blame] | 11 | ifeq ($(CONFIG_SPL_SPI_FLASH_TINY),y) |
| 12 | spi-nor-y += spi-nor-tiny.o |
| 13 | else |
| 14 | spi-nor-y += spi-nor-core.o |
| 15 | endif |
| 16 | else |
| 17 | spi-nor-y += spi-nor-core.o |
Christian Riesch | 23f16a8 | 2011-12-09 09:47:35 +0000 | [diff] [blame] | 18 | endif |
| 19 | |
Vignesh R | 3f5fb8b | 2019-02-05 11:29:25 +0530 | [diff] [blame] | 20 | obj-$(CONFIG_SPI_FLASH) += spi-nor.o |
Vignesh R | 1451041 | 2019-02-05 11:29:23 +0530 | [diff] [blame] | 21 | obj-$(CONFIG_SPI_FLASH_DATAFLASH) += sf_dataflash.o sf.o |
Daniel Schwierzeck | 06cfc03 | 2015-04-27 07:42:04 +0200 | [diff] [blame] | 22 | obj-$(CONFIG_SPI_FLASH_MTD) += sf_mtd.o |
Mike Frysinger | b375ad9 | 2013-12-03 16:43:27 -0700 | [diff] [blame] | 23 | obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o |