blob: b5dfa300de49c9563252ef3fda7ad4bbd75c549a [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Haavard Skinnemoend25ce7d2008-05-16 11:10:33 +02002#
3# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Haavard Skinnemoend25ce7d2008-05-16 11:10:33 +02005
Simon Glass4c2dbef2014-10-13 23:42:06 -06006obj-$(CONFIG_DM_SPI_FLASH) += sf-uclass.o
Vignesh R778572d2019-02-05 11:29:25 +05307spi-nor-y := sf_probe.o spi-nor-ids.o
Simon Glass4c2dbef2014-10-13 23:42:06 -06008
Christian Riesch32b11272011-12-09 09:47:35 +00009ifdef CONFIG_SPL_BUILD
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090010obj-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o
Vignesh R778572d2019-02-05 11:29:25 +053011ifeq ($(CONFIG_SPL_SPI_FLASH_TINY),y)
12spi-nor-y += spi-nor-tiny.o
13else
14spi-nor-y += spi-nor-core.o
15endif
16else
17spi-nor-y += spi-nor-core.o
Christian Riesch32b11272011-12-09 09:47:35 +000018endif
19
Vignesh R778572d2019-02-05 11:29:25 +053020obj-$(CONFIG_SPI_FLASH) += spi-nor.o
Jagan Teki210d8ad2019-07-22 17:22:58 +053021obj-$(CONFIG_SPI_FLASH_DATAFLASH) += sf_dataflash.o
Frieder Schrempf832ce202019-10-23 07:41:20 +000022obj-$(CONFIG_$(SPL_)SPI_FLASH_MTD) += sf_mtd.o
Mike Frysingerffdb20b2013-12-03 16:43:27 -070023obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o