mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 01:19:49 +00:00
4c2dbefde5
Add a driver model uclass for SPI flash which supports the common operations (read, write, erase). Since we must keep support for the non-dm interface, some modification of the spi_flash header is required. CONFIG_DM_SPI_FLASH is used to enable driver model for SPI flash. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
22 lines
560 B
Makefile
22 lines
560 B
Makefile
#
|
|
# (C) Copyright 2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
|
|
obj-$(CONFIG_DM_SPI_FLASH) += sf-uclass.o
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
obj-$(CONFIG_SPL_SPI_LOAD) += spi_spl_load.o
|
|
obj-$(CONFIG_SPL_SPI_BOOT) += fsl_espi_spl.o
|
|
endif
|
|
|
|
#ifndef CONFIG_DM_SPI
|
|
obj-$(CONFIG_SPI_FLASH) += sf_probe.o
|
|
#endif
|
|
obj-$(CONFIG_CMD_SF) += sf.o
|
|
obj-$(CONFIG_SPI_FLASH) += sf_ops.o sf_params.o
|
|
obj-$(CONFIG_SPI_FRAM_RAMTRON) += ramtron.o
|
|
obj-$(CONFIG_SPI_FLASH_SANDBOX) += sandbox.o
|
|
obj-$(CONFIG_SPI_M95XXX) += eeprom_m95xxx.o
|