aboutsummaryrefslogtreecommitdiff
path: root/src/security/vboot/vbnv_flash.c
diff options
context:
space:
mode:
authorYu-Ping Wu <yupingso@chromium.org>2019-11-18 11:25:47 +0800
committerAaron Durbin <adurbin@chromium.org>2019-11-19 15:29:20 +0000
commit29c8fa4769de86ba0b5f7a8791124121ff7dbe74 (patch)
tree23ea26d550aff438784f5517ff9828802701d6dc /src/security/vboot/vbnv_flash.c
parentab8edda14a622ab46bdfd01b877d75c7bd385a4d (diff)
security/vboot: Remove vboot_named_region_device(_rw)
Remove vboot_named_region_device(_rw) and use fmap_locate_area_as_rdev(_rw) directly. BRANCH=none BUG=none TEST=emerge-kukui coreboot Change-Id: I244ac4e01ae5b80285162b3baffc0b30aa057bfb Signed-off-by: Yu-Ping Wu <yupingso@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36922 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/security/vboot/vbnv_flash.c')
-rw-r--r--src/security/vboot/vbnv_flash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/security/vboot/vbnv_flash.c b/src/security/vboot/vbnv_flash.c
index 908846fe70..86c43cd302 100644
--- a/src/security/vboot/vbnv_flash.c
+++ b/src/security/vboot/vbnv_flash.c
@@ -16,6 +16,7 @@
#include <arch/early_variables.h>
#include <commonlib/region.h>
#include <console/console.h>
+#include <fmap.h>
#include <string.h>
#include <vb2_api.h>
#include <security/vboot/vboot_common.h>
@@ -67,7 +68,7 @@ static int init_vbnv(void)
int offset;
int i;
- if (vboot_named_region_device_rw("RW_NVRAM", rdev) ||
+ if (fmap_locate_area_as_rdev_rw("RW_NVRAM", rdev) ||
region_device_sz(rdev) < BLOB_SIZE) {
printk(BIOS_ERR, "%s: failed to locate NVRAM\n", __func__);
return 1;