coreboot/src
Furquan Shaikh 2cfe260e9c UPSTREAM: 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)
Reviewed-on: https://chromium-review.googlesource.com/354991
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
2016-06-22 10:41:13 -07:00
..
acpi acpi/: add missing license header 2016-01-14 22:52:11 +01:00
arch UPSTREAM: riscv-spike: Move coreboot to 0x80000000 (2GiB) 2016-06-22 10:40:41 -07:00
commonlib Add common real-time-clock functions 2016-06-20 20:10:36 -07:00
console UPSTREAM: console/post: be explicit about conditional cmos_post_log() compiling 2016-05-26 03:21:57 -07:00
cpu UPSTREAM: intel/model_6ex: Prepare for dynamic CONFIG_RAMTOP 2016-06-22 10:40:55 -07:00
device UPSTREAM: device: i2c: Add support for I2C bus operations 2016-06-10 00:17:46 -07:00
drivers UPSTREAM: Fix some cbmem.h includes 2016-06-20 20:09:48 -07:00
ec Add support for the EC 'get time' function 2016-06-20 23:14:12 -07:00
include UPSTREAM: include/device/dram/ddr3: Add additional frequencies 2016-06-21 17:13:52 -07:00
lib UPSTREAM: lib: Build reg_script for bootblock 2016-06-10 00:17:52 -07:00
mainboard UPSTREAM: google/reef: Add ACPI code for trackpad 2016-06-22 10:40:59 -07:00
northbridge UPSTREAM: nb/intel/sandybridge/raminit: Use supported CAS 2016-06-21 17:13:59 -07:00
soc UPSTREAM: intel/apollolake: Enable SPI properly in bootblock and ramstage 2016-06-22 10:41:13 -07:00
southbridge UPSTREAM: drivers/lenovo: Add hybrid graphics driver 2016-06-02 14:06:29 -07:00
superio UPSTREAM: sio/winbond/w83667hg-a: Add pinmux defines for UART B 2016-05-31 12:07:04 -07:00
vendorcode kconfig: allow various tpm type and interface permutations 2016-06-15 15:29:06 -07:00
Kconfig kconfig: allow various tpm type and interface permutations 2016-06-15 15:29:06 -07:00