summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-08-11 14:51:38 -0500
committerMartin Roth <martinroth@google.com>2016-08-19 18:14:20 +0200
commitc0a823c737d984cd212b2018a71b37fbf9146111 (patch)
tree027c6382bd8bf6b479f2c51488bb0ea3772ea755 /src/mainboard
parent2e03fbced7551211b801f7d01d5c0b0e7dcad323 (diff)
downloadcoreboot-c0a823c737d984cd212b2018a71b37fbf9146111.tar.xz
drivers/spi: ensure SPI flash is boot device for coreboot tables
The spi_flash_probe() routine was setting a global varible unconditonally regardless if the probe was for the boot device or even if the boot devcie was flash. Moreover, there's no need to report the SPI information if the boot device isn't even SPI. Lastly, it's possible that the boot device is a SPI flash, but the platform may never probe (selecting SPI_FLASH) for the actual device connected. In that situation don't fill anything in as no correct information is known. BUG=chrome-os-partner:56151 Change-Id: Ib0eba601df4d77bede313c358c92b0536355bbd0 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16197 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard')
0 files changed, 0 insertions, 0 deletions