summaryrefslogtreecommitdiff
path: root/src/vboot/vboot_common.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-08-12 12:46:07 -0500
committerMartin Roth <martinroth@google.com>2016-08-19 18:18:37 +0200
commit5bb9e93ea68db0ffe156f2df2d69397f21c57095 (patch)
tree7263432a4e4141b0520206eeeb204f7a7f6ec692 /src/vboot/vboot_common.c
parentd10f9d57c2be360fcecb0f3dece4886ced781e54 (diff)
vboot: provide RW region device support
Explicitly provide a RW view of an vboot FMAP region. This is required for platforms which have separate implementations of a RO boot device and a RW boot device. BUG=chrome-os-partner:56151 Change-Id: If8bf2e1c7ca9bff536fc5c578fe0cf92ccbd2ebc Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16205 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/vboot/vboot_common.c')
-rw-r--r--src/vboot/vboot_common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vboot/vboot_common.c b/src/vboot/vboot_common.c
index 319e0dedfc..7e1ca9de55 100644
--- a/src/vboot/vboot_common.c
+++ b/src/vboot/vboot_common.c
@@ -30,6 +30,11 @@ int vboot_named_region_device(const char *name, struct region_device *rdev)
return fmap_locate_area_as_rdev(name, rdev);
}
+int vboot_named_region_device_rw(const char *name, struct region_device *rdev)
+{
+ return fmap_locate_area_as_rdev(name, rdev);
+}
+
/* ========================== VBOOT HANDOFF APIs =========================== */
int vboot_get_handoff_info(void **addr, uint32_t *size)
{