mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-31 06:18:51 +09:00
![Simon Glass](/assets/img/avatar_default.png)
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>
23 lines
560 B
Makefile
23 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
|