diff options
author | Furquan Shaikh <furquan@google.com> | 2016-06-22 14:00:09 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2016-06-23 23:11:35 +0200 |
commit | a1850bafbffd147bd5aad8b2a6463f40cc28ddec (patch) | |
tree | a8354f37911c8b257fabe560b7a72c4b8f55ab0f /src/soc/intel/apollolake/spi.c | |
parent | f359997f8632a4a81ee39fc27f79f5e27ab072eb (diff) |
intel/apollolake: Enable prefetching and caching for BIOS reads
Change-Id: I6afcc17ec8511d3fd4c1ac3b15d523d9b6752120
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/15321
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/soc/intel/apollolake/spi.c')
-rw-r--r-- | src/soc/intel/apollolake/spi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/soc/intel/apollolake/spi.c b/src/soc/intel/apollolake/spi.c index 282ed013a6..7b390bb2b9 100644 --- a/src/soc/intel/apollolake/spi.c +++ b/src/soc/intel/apollolake/spi.c @@ -203,6 +203,11 @@ void spi_init(void) bios_ctl = pci_read_config32(ctx->pci_dev, SPIBAR_BIOS_CONTROL); bios_ctl |= SPIBAR_BIOS_CONTROL_WPD; bios_ctl &= ~SPIBAR_BIOS_CONTROL_EISS; + + /* Enable Prefetching and caching. */ + bios_ctl |= SPIBAR_BIOS_CONTROL_PREFETCH_ENABLE; + bios_ctl &= ~SPIBAR_BIOS_CONTROL_CACHE_DISABLE; + pci_write_config32(ctx->pci_dev, SPIBAR_BIOS_CONTROL, bios_ctl); } |