blob: 952fd1e45a17ecd75c85d037252c9f07cf09c422 [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
Lukasz Majewski56c40462020-06-04 23:11:53 +08006obj-$(CONFIG_$(SPL_TPL_)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
Lukasz Majewski56c40462020-06-04 23:11:53 +080022obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_MTD) += sf_mtd.o
Mike Frysingerffdb20b2013-12-03 16:43:27 -070023obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o