1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6obj-$(CONFIG_$(SPL_TPL_)DM_SPI_FLASH) += sf-uclass.o
7spi-nor-y := sf_probe.o spi-nor-ids.o
8
9ifdef CONFIG_SPL_BUILD
10obj-$(CONFIG_SPL_SPI_BOOT)	+= fsl_espi_spl.o
11ifeq ($(CONFIG_$(SPL_TPL_)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
18endif
19
20obj-$(CONFIG_SPI_FLASH) += spi-nor.o
21obj-$(CONFIG_SPI_FLASH_DATAFLASH) += sf_dataflash.o
22obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_MTD) += sf_mtd.o
23obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o
24