aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/Makefile
diff options
context:
space:
mode:
authorSimon Glass2020-07-19 10:15:31 -0600
committerTom Rini2020-08-03 22:19:54 -0400
commitf38a29997d1cdb71a85fc9dcdbee86d952b45482 (patch)
tree3a320e2c33f35ff49a05fe7eb94529f1f5bcabc3 /drivers/mtd/spi/Makefile
parent68941e3b2c217907a49aa66af8bb65729b913397 (diff)
spi: Allow separate control of SPI_FLASH_TINY for SPL/TPL
In some cases SPL needs to be able to erase but TPL just needs to read. Allow these to have separate settings for SPI_FLASH_TINY. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mtd/spi/Makefile')
-rw-r--r--drivers/mtd/spi/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/Makefile b/drivers/mtd/spi/Makefile
index 952fd1e45a1..99cc4185522 100644
--- a/drivers/mtd/spi/Makefile
+++ b/drivers/mtd/spi/Makefile
@@ -8,7 +8,7 @@ spi-nor-y := sf_probe.o spi-nor-ids.o
ifdef CONFIG_SPL_BUILD
obj-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o
-ifeq ($(CONFIG_SPL_SPI_FLASH_TINY),y)
+ifeq ($(CONFIG_$(SPL_TPL_)SPI_FLASH_TINY),y)
spi-nor-y += spi-nor-tiny.o
else
spi-nor-y += spi-nor-core.o