Martin Roth | 8324fe9 | 2023-08-04 12:07:51 -0600 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Stefan Reinauer | 1c56d9b | 2012-05-10 11:27:32 -0700 | [diff] [blame] | 3 | # SPI flash driver interface |
Vadim Bendebury | adcb095 | 2014-05-01 12:23:09 -0700 | [diff] [blame] | 4 | |
Vadim Bendebury | e31d243 | 2016-04-09 18:33:49 -0700 | [diff] [blame] | 5 | subdirs-y += tpm |
| 6 | |
Angel Pons | 12d48cd | 2020-10-03 12:22:04 +0200 | [diff] [blame] | 7 | ifeq ($(CONFIG_EM100PRO_SPI_CONSOLE),y) |
Martin Roth | 3a54318 | 2015-09-28 15:27:24 -0600 | [diff] [blame] | 8 | ramstage-y += spiconsole.c |
Nico Huber | 653d5d3 | 2018-06-05 21:56:30 +0200 | [diff] [blame] | 9 | smm-y += spiconsole.c |
Martin Roth | 3a54318 | 2015-09-28 15:27:24 -0600 | [diff] [blame] | 10 | endif |
| 11 | |
Nico Huber | 1d01736 | 2018-06-05 22:14:41 +0200 | [diff] [blame] | 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 |
Xiang Wang | b134945 | 2019-08-27 15:57:23 +0800 | [diff] [blame] | 20 | $(1)-$(CONFIG_SPI_SDCARD) += spi_sdcard.c |
Nico Huber | 1d01736 | 2018-06-05 22:14:41 +0200 | [diff] [blame] | 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 |
Maximilian Brune | 7bcf4ae | 2023-08-28 13:57:20 +0200 | [diff] [blame^] | 33 | $(1)-$(CONFIG_SPI_FLASH_ISSI) += issi.c |
Nico Huber | 1d01736 | 2018-06-05 22:14:41 +0200 | [diff] [blame] | 34 | endef |
Youness Alaoui | c4b4ff3 | 2017-05-11 10:36:29 -0400 | [diff] [blame] | 35 | |
Nico Huber | 1d01736 | 2018-06-05 22:14:41 +0200 | [diff] [blame] | 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)) |
Duncan Laurie | 181bbdd | 2012-06-23 16:53:57 -0700 | [diff] [blame] | 41 | ifeq ($(CONFIG_SPI_FLASH_SMM),y) |
Nico Huber | 1d01736 | 2018-06-05 22:14:41 +0200 | [diff] [blame] | 42 | $(eval $(call add_spi_stage,smm)) |
Idwer Vollering | 73a1018 | 2014-02-16 00:32:13 +0000 | [diff] [blame] | 43 | endif |