summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/apollolake
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-10-03 20:31:38 +0300
committerSimon Glass <sjg@chromium.org>2020-10-29 23:42:18 +0300
commitd07f31aea07ec642e8072fe0b83ba56ec83cc561 (patch)
treecbb73a80ae120ca50e62a3d16ff9c4bbf5af247c /arch/x86/cpu/apollolake
parent9e948b9b99d17ea6c2204a1b6251a5c33ee83dd9 (diff)
downloadu-boot-d07f31aea07ec642e8072fe0b83ba56ec83cc561.tar.xz
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>
Diffstat (limited to 'arch/x86/cpu/apollolake')
-rw-r--r--arch/x86/cpu/apollolake/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/cpu/apollolake/Kconfig b/arch/x86/cpu/apollolake/Kconfig
index 35a425cd1b..c6c1350f4f 100644
--- a/arch/x86/cpu/apollolake/Kconfig
+++ b/arch/x86/cpu/apollolake/Kconfig
@@ -85,6 +85,8 @@ config APL_SPI_FLASH_BOOT
bool "Support booting with SPI-flash driver instead memory-mapped SPI"
select TPL_SPI_FLASH_SUPPORT
select TPL_SPI_SUPPORT
+ select TPL_DM_SPI
+ select TPL_DM_SPI_FLASH
help
This enables SPI and SPI flash in TPL. Without the this only
available boot method is to use memory-mapped SPI. Since this is