switch-coreboot/src
Aaron Durbin dcbccd6a1e lib/boot_device: add RW boot device construct
The current boot device usage assumes read-only semantics to
the boot device. Any time someone wants to write to the
boot device a device-specific API is invoked such as SPI flash.
Instead, provide a mechanism to retrieve an object that can
be used to perform writes to the boot device. On systems where
the implementations are symmetric these devices can be treated
one-in-the-same. However, for x86 systems with memory mapped SPI
the read-only boot device provides different operations.

BUG=chrome-os-partner:55932

Change-Id: I0af324824f9e1a8e897c2453c36e865b59c4e004
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/16194
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
2016-08-19 03:07:05 +02:00
..
acpi src/acpi: Capitalize ACPI and SATA 2016-07-31 19:25:40 +02:00
arch arch/riscv: Improve and refactor trap handling diagnostics 2016-08-15 18:28:03 +02:00
commonlib commonlib/region: allow empty mmap()/munmap() in region_device_ops 2016-08-15 21:03:06 +02:00
console console: Add write line routine 2016-08-10 22:30:19 +02:00
cpu Kconfig: rename BOOT_MEDIA_SPI_BUS to BOOT_DEVICE_SPI_FLASH_BUS 2016-08-18 22:04:34 +02:00
device src/device: Capitalize CPU, RAM and ROM 2016-07-31 18:33:30 +02:00
drivers Kconfig: introduce writable boot device notion 2016-08-19 03:05:18 +02:00
ec chromeec/acpi: add Tablet event and EC ACPI MEM 2016-08-12 18:06:53 +02:00
include lib/boot_device: add RW boot device construct 2016-08-19 03:07:05 +02:00
lib lib/boot_device: add RW boot device construct 2016-08-19 03:07:05 +02:00
mainboard google/reef: Configure NFC gpios correctly before entering sleep 2016-08-19 03:04:31 +02:00
northbridge x4x: make preallocated IGD memory a cmos option 2016-08-09 10:43:03 +02:00
soc Kconfig: introduce writable boot device notion 2016-08-19 03:05:18 +02:00
southbridge bd82x6x/pch: move global variables to static variables in functions 2016-08-19 03:02:53 +02:00
superio superio/*: Relocate Kconfig to chip folder. 2016-08-09 10:38:30 +02:00
vboot Kconfig: rename BOOT_MEDIA_SPI_BUS to BOOT_DEVICE_SPI_FLASH_BUS 2016-08-18 22:04:34 +02:00
vendorcode vboot: Move TPM-related Kconfig selects from CHROMEOS to VBOOT 2016-08-16 23:14:21 +02:00
Kconfig Kconfig: introduce writable boot device notion 2016-08-19 03:05:18 +02:00