mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-11 05:42:58 +00:00
f37af2760e
add block storage emulation for NVM XIP flash devices Some paltforms such as Corstone-1000 need to see NVM XIP raw flash as a block storage device with read only capability. Here NVM flash devices are devices with addressable memory (e.g: QSPI NOR flash). The implementation is generic and can be used by different platforms. Two drivers are provided as follows. nvmxip-blk : a generic block driver allowing to read from the XIP flash nvmxip Uclass driver : When a device is described in the DT and associated with UCLASS_NVMXIP, the Uclass creates a block device and binds it with the nvmxip-blk. Platforms can use multiple NVM XIP devices at the same time by defining a DT node for each one of them. Signed-off-by: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
41 lines
1 KiB
Makefile
41 lines
1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2000-2007
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
mtd-$(CONFIG_MTD) += mtdcore.o mtd_uboot.o
|
|
mtd-$(CONFIG_DM_MTD) += mtd-uclass.o
|
|
mtd-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
|
|
mtd-$(CONFIG_MTD_CONCAT) += mtdconcat.o
|
|
mtd-$(CONFIG_ALTERA_QSPI) += altera_qspi.o
|
|
mtd-$(CONFIG_FLASH_CFI_DRIVER) += cfi_flash.o
|
|
mtd-$(CONFIG_FLASH_CFI_MTD) += cfi_mtd.o
|
|
mtd-$(CONFIG_FLASH_CFI_LEGACY) += jedec_flash.o
|
|
mtd-$(CONFIG_STM32_FLASH) += stm32_flash.o
|
|
mtd-$(CONFIG_RENESAS_RPC_HF) += renesas_rpc_hf.o
|
|
mtd-$(CONFIG_HBMC_AM654) += hbmc-am654.o
|
|
|
|
# U-Boot build
|
|
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
|
|
|
ifneq ($(mtd-y),)
|
|
obj-y += mtd.o
|
|
endif
|
|
obj-y += nand/
|
|
obj-y += onenand/
|
|
obj-y += spi/
|
|
obj-$(CONFIG_MTD_UBI) += ubi/
|
|
obj-$(CONFIG_NVMXIP) += nvmxip/
|
|
|
|
#SPL/TPL build
|
|
else
|
|
|
|
ifneq ($(mtd-y),)
|
|
obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd.o
|
|
endif
|
|
obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) += nand/
|
|
obj-$(CONFIG_SPL_ONENAND_SUPPORT) += onenand/
|
|
obj-$(CONFIG_$(SPL_TPL_)SPI_FLASH_SUPPORT) += spi/
|
|
obj-$(CONFIG_SPL_UBI) += ubispl/
|
|
|
|
endif
|