blob: 44e67cd913a2f9ed2f98ebb22d6ae834dfcc3e50 [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 Glass5c10c8b2024-09-29 19:49:54 -06006obj-$(CONFIG_$(PHASE_)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
Simon Glass371dc062024-09-29 19:49:48 -06009ifdef CONFIG_XPL_BUILD
Masahiro Yamada2fc7ef62013-10-17 17:34:55 +090010obj-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o
Simon Glass5c10c8b2024-09-29 19:49:54 -060011ifeq ($(CONFIG_$(PHASE_)SPI_FLASH_TINY),y)
Vignesh R778572d2019-02-05 11:29:25 +053012spi-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
Simon Glass5c10c8b2024-09-29 19:49:54 -060022obj-$(CONFIG_$(PHASE_)SPI_FLASH_MTD) += sf_mtd.o
Mike Frysingerffdb20b2013-12-03 16:43:27 -070023obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o
Simon Glass5c10c8b2024-09-29 19:49:54 -060024obj-$(CONFIG_$(PHASE_)BOOTDEV_SPI_FLASH) += sf_bootdev.o