x86: apl: Enable SPI flash in TPL with APL_SPI_FLASH_BOOT
authorSimon Glass <sjg@chromium.org>
Sat, 3 Oct 2020 17:31:38 +0000 (11:31 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:18 +0000 (14:42 -0600)
commitd07f31aea07ec642e8072fe0b83ba56ec83cc561
treecbb73a80ae120ca50e62a3d16ff9c4bbf5af247c
parent9e948b9b99d17ea6c2204a1b6251a5c33ee83dd9
x86: apl: Enable SPI flash in TPL with APL_SPI_FLASH_BOOT

At present, enabling CONFIG_APL_SPI_FLASH_BOOT does not build since SPI
and SPI flash are not enabled for TPL. Add a condition to fix this and
tidy up a build warning in the SPI-flash driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/apollolake/Kconfig
drivers/spi/ich.c