blob: 952fd1e45a17ecd75c85d037252c9f07cf09c422 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Haavard Skinnemoen2f5bfb72008-05-16 11:10:33 +02002#
3# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Haavard Skinnemoen2f5bfb72008-05-16 11:10:33 +02005
Lukasz Majewski76f442982020-06-04 23:11:53 +08006obj-$(CONFIG_$(SPL_TPL_)DM_SPI_FLASH) += sf-uclass.o
Vignesh R3f5fb8b2019-02-05 11:29:25 +05307spi-nor-y := sf_probe.o spi-nor-ids.o
Simon Glassd6eedf72014-10-13 23:42:06 -06008
Christian Riesch23f16a82011-12-09 09:47:35 +00009ifdef CONFIG_SPL_BUILD
Masahiro Yamada25bb3af2013-10-17 17:34:55 +090010obj-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o
Vignesh R3f5fb8b2019-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 Riesch23f16a82011-12-09 09:47:35 +000018endif
19
Vignesh R3f5fb8b2019-02-05 11:29:25 +053020obj-$(CONFIG_SPI_FLASH) += spi-nor.o
Jagan Tekibbeca682019-07-22 17:22:58 +053021obj-$(CONFIG_SPI_FLASH_DATAFLASH) += sf_dataflash.o
Lukasz Majewski76f442982020-06-04 23:11:53 +080022obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_MTD) += sf_mtd.o
Mike Frysingerb375ad92013-12-03 16:43:27 -070023obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o