diff options
author | Simon Glass <sjg@chromium.org> | 2011-08-22 08:15:25 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-09-19 13:45:37 -0700 |
commit | 4fa99eb575d56552ae9a1252f56e0475e3848d53 (patch) | |
tree | 3a1cf082c7de319eb2383583d958cbf2ca4aac2d /common/cmd_vbexport_test.c | |
parent | 2c49ec7f1be4ec51c39747805897f78626134470 (diff) |
fdt: Move Chrome OS memory areas to fdt
This moves the last remaining hard-coded CONFIG to the fdt.
BUG=chromium-os:17062
TEST=build for Seaboard
Change-Id: Ic152ce12a0f87211e4cc98eef15601f0703137b1
Reviewed-on: http://gerrit.chromium.org/gerrit/7642
Tested-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Reviewed-by: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'common/cmd_vbexport_test.c')
-rw-r--r-- | common/cmd_vbexport_test.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/common/cmd_vbexport_test.c b/common/cmd_vbexport_test.c index fc198e96df6..b2cb5aa87fb 100644 --- a/common/cmd_vbexport_test.c +++ b/common/cmd_vbexport_test.c @@ -402,7 +402,15 @@ static uint8_t *read_gbb_from_firmware(void) void *fdt_ptr = (void *)gd->blob; firmware_storage_t file; struct twostop_fmap fmap; - void *gbb = (void *)GBB_ADDRESS; + void *gbb; + size_t size; + + gbb = fdt_decode_chromeos_alloc_region(gd->blob, + "google-binary-block", &size); + if (!gbb) { + VbExDebug("Failed to find gbb region!\n"); + return NULL; + } if (fdt_decode_twostop_fmap(fdt_ptr, &fmap)) { VbExDebug("Failed to load fmap config from fdt!\n"); |