lib/smbios: Improve Type9
[coreboot2.git] / src / drivers / spi / Makefile.mk
blob97c3d63d4912cd197e94f648a193efe81df6382e
1 ## SPDX-License-Identifier: GPL-2.0-only
3 # SPI flash driver interface
5 subdirs-y += tpm
7 ifeq ($(CONFIG_EM100PRO_SPI_CONSOLE),y)
8 ramstage-y += spiconsole.c
9 smm-y += spiconsole.c
10 endif
12 # add SPI drivers per stage
13 # $1 stage name
14 # $2 optional _EARLY suffix for CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP(_EARLY)
15 define add_spi_stage
16 $(1)-y += spi-generic.c
17 $(1)-y += bitbang.c
18 $(1)-$(CONFIG_COMMON_CBFS_SPI_WRAPPER) += cbfs_spi.c
19 $(1)-$(CONFIG_SPI_FLASH) += spi_flash.c
20 $(1)-$(CONFIG_SPI_SDCARD) += spi_sdcard.c
21 $(1)-$(CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP$(2)) += boot_device_rw_nommap.c
22 $(1)-$(CONFIG_CONSOLE_SPI_FLASH) += flashconsole.c
23 $(1)-$(CONFIG_SPI_FLASH_ADESTO) += adesto.c
24 $(1)-$(CONFIG_SPI_FLASH_AMIC) += amic.c
25 $(1)-$(CONFIG_SPI_FLASH_ATMEL) += atmel.c
26 $(1)-$(CONFIG_SPI_FLASH_EON) += eon.c
27 $(1)-$(CONFIG_SPI_FLASH_GIGADEVICE) += gigadevice.c
28 $(1)-$(CONFIG_SPI_FLASH_MACRONIX) += macronix.c
29 $(1)-$(CONFIG_SPI_FLASH_SPANSION) += spansion.c
30 $(1)-$(CONFIG_SPI_FLASH_SST) += sst.c
31 $(1)-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.c
32 $(1)-$(CONFIG_SPI_FLASH_WINBOND) += winbond.c
33 $(1)-$(CONFIG_SPI_FLASH_ISSI) += issi.c
34 endef
36 $(eval $(call add_spi_stage,bootblock,_EARLY))
37 $(eval $(call add_spi_stage,romstage,_EARLY))
38 $(eval $(call add_spi_stage,verstage,_EARLY))
39 $(eval $(call add_spi_stage,postcar,_EARLY))
40 $(eval $(call add_spi_stage,ramstage))
41 ifeq ($(CONFIG_SPI_FLASH_SMM),y)
42 $(eval $(call add_spi_stage,smm))
43 endif