ec/google/chromeec: Define ACPI_NOTIFY_CROS_EC_MKBP constant
[coreboot2.git] / src / drivers / spi / Makefile.mk
blob3310b968c30c3c703fe1ec4ef891804585ecfb37
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 $(1)-$(CONFIG_SPI_FLASH_SFDP) += spi_flash_sfdp.c
35 $(1)-$(CONFIG_SPI_FLASH_RPMC) += spi_flash_rpmc.c
36 endef
38 $(eval $(call add_spi_stage,bootblock,_EARLY))
39 $(eval $(call add_spi_stage,romstage,_EARLY))
40 $(eval $(call add_spi_stage,verstage,_EARLY))
41 $(eval $(call add_spi_stage,postcar,_EARLY))
42 $(eval $(call add_spi_stage,ramstage))
43 ifeq ($(CONFIG_SPI_FLASH_SMM),y)
44 $(eval $(call add_spi_stage,smm))
45 endif