Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Haavard Skinnemoen | d25ce7d | 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 | d25ce7d | 2008-05-16 11:10:33 +0200 | [diff] [blame] | 5 | |
Simon Glass | 4c2dbef | 2014-10-13 23:42:06 -0600 | [diff] [blame] | 6 | obj-$(CONFIG_DM_SPI_FLASH) += sf-uclass.o |
Vignesh R | 778572d | 2019-02-05 11:29:25 +0530 | [diff] [blame] | 7 | spi-nor-y := sf_probe.o spi-nor-ids.o |
Simon Glass | 4c2dbef | 2014-10-13 23:42:06 -0600 | [diff] [blame] | 8 | |
Christian Riesch | 32b1127 | 2011-12-09 09:47:35 +0000 | [diff] [blame] | 9 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 2fc7ef6 | 2013-10-17 17:34:55 +0900 | [diff] [blame] | 10 | obj-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o |
Vignesh R | 778572d | 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 | 32b1127 | 2011-12-09 09:47:35 +0000 | [diff] [blame] | 18 | endif |
| 19 | |
Vignesh R | 778572d | 2019-02-05 11:29:25 +0530 | [diff] [blame] | 20 | obj-$(CONFIG_SPI_FLASH) += spi-nor.o |
Jagan Teki | 210d8ad | 2019-07-22 17:22:58 +0530 | [diff] [blame] | 21 | obj-$(CONFIG_SPI_FLASH_DATAFLASH) += sf_dataflash.o |
Frieder Schrempf | 832ce20 | 2019-10-23 07:41:20 +0000 | [diff] [blame] | 22 | obj-$(CONFIG_$(SPL_)SPI_FLASH_MTD) += sf_mtd.o |
Mike Frysinger | ffdb20b | 2013-12-03 16:43:27 -0700 | [diff] [blame] | 23 | obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o |