diff options
author | Furquan Shaikh <furquan@google.com> | 2016-06-15 17:13:20 -0700 |
---|---|---|
committer | Furquan Shaikh <furquan@google.com> | 2016-06-21 19:52:25 +0200 |
commit | 6ac226d915ade86216d77316c77f824a07dd0e1c (patch) | |
tree | edbc62f9f6e8b623626f7ce50969aca0be69664a /src/soc/intel/skylake/flash_controller.c | |
parent | 88a1f14cad126103a83a045e3eded595d58515ca (diff) | |
download | coreboot-6ac226d915ade86216d77316c77f824a07dd0e1c.tar.xz |
intel/apollolake: Enable SPI properly in bootblock and ramstage
Bootblock:
- Temporary BAR needs to be assigned for SPI device until PCI
enumeration is done by ramstage which allocates a new BAR.
- Call spi_init to allow bootblock/verstage to write/erase on flash.
Ramstage:
- spi_init needs to run in ramstage to allow write protect to be
disabled for eventlog and NVRAM updates. This needs to be done pretty
early so that any init calls(e.g. mainboard_ec_init) writing to flash
work properly.
Verified with this change that there are no more flash write/erase
errors for ELOG/NVRAM.
BUG=chrome-os-partner:54283
Change-Id: Iff840e055548485e6521889fcf264a10fb5d9491
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/15209
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/soc/intel/skylake/flash_controller.c')
0 files changed, 0 insertions, 0 deletions