mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 12:33:41 +00:00
778572d7cb
Add a tiny SPI flash stack that just supports reading data/images from SPI flash. This is useful for boards that have SPL size constraints and would need to use SPI flash framework just to read images/data from flash. There is approximately 1.5 to 2KB savings with this. Based on prior work of reducing spi flash id table by Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Signed-off-by: Vignesh R <vigneshr@ti.com> Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Tested-by: Stefan Roese <sr@denx.de> Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com> Reviewed-by: Jagan Teki <jagan@openedev.com> Tested-by: Jagan Teki <jagan@amarulasolutions.com> #zynq-microzed
23 lines
589 B
Makefile
23 lines
589 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
obj-$(CONFIG_DM_SPI_FLASH) += sf-uclass.o
|
|
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)
|
|
spi-nor-y += spi-nor-tiny.o
|
|
else
|
|
spi-nor-y += spi-nor-core.o
|
|
endif
|
|
else
|
|
spi-nor-y += spi-nor-core.o
|
|
endif
|
|
|
|
obj-$(CONFIG_SPI_FLASH) += spi-nor.o
|
|
obj-$(CONFIG_SPI_FLASH_DATAFLASH) += sf_dataflash.o sf.o
|
|
obj-$(CONFIG_SPI_FLASH_MTD) += sf_mtd.o
|
|
obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o
|