From 89424bfbedba6c06f4a4ef9e444a2c4d0575883a Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Tue, 26 Jan 2016 15:41:54 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/326450 Reviewed-by: David Hendricks --- common/fmap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/fmap.c b/common/fmap.c index 2402484b52..c76b6621d3 100644 --- a/common/fmap.c +++ b/common/fmap.c @@ -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, }, -- cgit v1.2.1