vboot/vbnv_flash: make I/O connection agnostic
commitb18a6665df2633193b7863e3dd9eca230536405b
authorAaron Durbin <adurbin@chromium.org>
Fri, 12 Aug 2016 17:48:58 +0000 (12 12:48 -0500)
committerMartin Roth <martinroth@google.com>
Fri, 19 Aug 2016 16:18:57 +0000 (19 18:18 +0200)
tree12e13454875b1e8b1d6086850a684d55f9d8f61e
parent5bb9e93ea68db0ffe156f2df2d69397f21c57095
vboot/vbnv_flash: make I/O connection agnostic

There's no need to be SPI specific w.r.t. how the flash is
connected. Therefore, use the RW boot device to write the
contents of VBNV. The erasable check was dropped because that
information isn't available. All regions should be aligned
accordingly on the platform for the underlying hardware
implementation. And once the VBNV region fills the erase
will fail.

BUG=chrome-os-partner:56151

Change-Id: I07fdc8613e0b3884e132a2f158ffeabeaa6da6ce
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/16206
Tested-by: build bot (Jenkins)
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Furquan Shaikh <furquan@google.com>
src/vboot/Kconfig
src/vboot/vbnv_flash.c