coreboot/src/drivers/spi
Aaron Durbin 67e4df8b65 drivers/spi: remove unconditional RW boot device initialization
The SPI drivers for the various chipsets are not consistent in
their handling of when they are accessible. Coupled with the
unknown ordering of boot_device_init() being called this can
lead to unexpected behavior (probing failures or hangs). Instead
move the act of initializing the SPI flash boot device to when
the various infrastructure requires its usage when it calls
boot_device_rw(). Those platforms utilizing the RW boot device
would need to ensure their SPI drivers are functional and
ready when the call happens.

This further removes any other systems failing to boot as
reported in https://ticket.coreboot.org/issues/67.

BUG=chrome-os-partner:56151

Change-Id: Ib3bddf5e26bf5322f3dd20345eeef6bee40f0f66
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/16300
Tested-by: build bot (Jenkins)
Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
2016-08-24 15:46:38 +02:00
..
tpm tpm2: Fixed typo 2016-08-19 00:24:08 +02:00
adesto.c drivers/spi: Pass flash parameters from coreboot to payload 2015-04-17 09:21:07 +02:00
amic.c drivers/spi: Pass flash parameters from coreboot to payload 2015-04-17 09:21:07 +02:00
atmel.c drivers/spi: Pass flash parameters from coreboot to payload 2015-04-17 09:21:07 +02:00
boot_device_rw_nommap.c drivers/spi: remove unconditional RW boot device initialization 2016-08-24 15:46:38 +02:00
cbfs_spi.c lib/cbfs_spi: provide boot_device_rw() support 2016-08-19 03:08:17 +02:00
eon.c spi: Add function to read flash status register 2015-04-17 09:21:22 +02:00
gigadevice.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Kconfig drivers/spi: provide optional implementation of boot_device_rw() 2016-08-19 18:15:08 +02:00
macronix.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Makefile.inc drivers/spi: provide optional implementation of boot_device_rw() 2016-08-19 18:15:08 +02:00
spansion.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
spi_flash.c drivers/spi: ensure SPI flash is boot device for coreboot tables 2016-08-19 18:14:20 +02:00
spi_flash_internal.h spi: Add function to read flash status register 2015-04-17 09:21:22 +02:00
spiconsole.c Remove extra newlines from the end of all coreboot files. 2016-07-31 18:19:33 +02:00
sst.c spi/SST: fix write support for SST25VF064C 2016-03-11 18:55:51 +01:00
stmicro.c drivers/spi: Add support for Micron N25Q128A 2016-08-05 07:41:59 +02:00
winbond.c spi: Add support for Winbond W25Q256 2016-05-09 08:30:22 +02:00