From 7693bbd2e44f26b62084f79643f1b6766f415ae8 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Fri, 20 Jul 2012 10:12:45 +0800 Subject: [PATCH] ec: Remove "_A" suffix in FMAP RW firmware areas. Since we only have one RW firmware, let's remove _A to prevent confusion. Also change "BOOT_STUB" to FR_MAIN to reflect the fact that it's not just bootstub - it's a full firmware area just like FW_MAIN. BUG=chrome-os-partner:11360 TEST=emerge-link chromeos-ec; dump_fmap -x /build/link/firmware/ec.bin Change-Id: Ia84062ada5959164b2b4e0f9cc5fcc032ca6f71e Signed-off-by: Hung-Te Lin Reviewed-on: https://gerrit.chromium.org/gerrit/27971 Reviewed-by: Randall Spangler Tested-by: Randall Spangler --- common/fmap.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/common/fmap.c b/common/fmap.c index fb50e23dd7..e01591b6fc 100644 --- a/common/fmap.c +++ b/common/fmap.c @@ -40,7 +40,7 @@ typedef struct _FmapAreaHeader { } __packed FmapAreaHeader; #ifdef CONFIG_VBOOT_SIG -#define NUM_EC_FMAP_AREAS (7 + 4) +#define NUM_EC_FMAP_AREAS (7 + 3) #else #define NUM_EC_FMAP_AREAS 7 #endif @@ -72,8 +72,8 @@ const struct _ec_fmap { .area_flags = FMAP_AREA_STATIC | FMAP_AREA_RO, }, { - /* (Optional) RO firmware boot execution code. */ - .area_name = "BOOT_STUB", + /* (Optional) RO firmware code. */ + .area_name = "FR_MAIN", .area_offset = CONFIG_FW_RO_OFF, .area_size = CONFIG_FW_RO_SIZE, .area_flags = FMAP_AREA_STATIC | FMAP_AREA_RO, @@ -134,21 +134,14 @@ const struct _ec_fmap { }, #ifdef CONFIG_VBOOT_SIG - /* Firmware A */ { - .area_name = "RW_SECTION_A", - .area_offset = CONFIG_SECTION_RW_OFF, - .area_size = CONFIG_SECTION_RW_SIZE, - .area_flags = FMAP_AREA_STATIC, - }, - { - .area_name = "FW_MAIN_A", + .area_name = "FW_MAIN", .area_offset = CONFIG_FW_RW_OFF, .area_size = CONFIG_FW_RW_SIZE, .area_flags = FMAP_AREA_STATIC, }, { - .area_name = "VBLOCK_A", + .area_name = "VBLOCK", .area_offset = CONFIG_VBLOCK_RW_OFF, .area_size = CONFIG_VBLOCK_SIZE, .area_flags = FMAP_AREA_STATIC,