UPSTREAM: drivers/elog: use region_device for NV storage

Instead of assuming SPI backing use a region_device to
abstract away the underlying storage mechanism.

BUG=chrome-os-partner:55932
BRANCH=None
TEST=None

Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/16204
Reviewed-by: Furquan Shaikh <furquan@google.com>

Change-Id: I6b0f5a7e9bea8833fb1bca87e02abefab63acec3
Reviewed-on: https://chromium-review.googlesource.com/373366
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
Aaron Durbin 2016-08-10 11:37:14 -05:00 committed by chrome-bot
commit 781a791b61
3 changed files with 51 additions and 53 deletions

View file

@ -21,7 +21,7 @@ menu "ChromeOS"
config CHROMEOS
bool "Build for ChromeOS"
default n
select ELOG if SPI_FLASH
select ELOG if BOOT_DEVICE_SUPPORTS_WRITES
select COLLECT_TIMESTAMPS
select VBOOT
help