fmap: note fmap_name dependency

fmap_decode now checks the fmap name to determine if the fmap it is
decoding is the correct one. This change puts a comment in the ec fmap
header to note the use.

BUG=none
BRANCH=none
TEST=make buildall -j
CQ-DEPEND=CL:322262

Change-Id: Icdd56eef5474b51cb178b6ba37c530c2357341b2
Signed-off-by: Mary Ruthven <mruthven@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/326450
Reviewed-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
Mary Ruthven
2016-01-26 15:41:54 -08:00
committed by chrome-bot
parent e68019e349
commit 89424bfbed

View File

@@ -74,6 +74,7 @@ const struct _ec_fmap {
.fmap_ver_minor = FMAP_VER_MINOR,
.fmap_base = CONFIG_PROGRAM_MEMORY_BASE,
.fmap_size = CONFIG_FLASH_SIZE,
/* Used to distinguish the EC FMAP from other FMAPs */
.fmap_name = "EC_FMAP",
.fmap_nareas = NUM_EC_FMAP_AREAS,
},