summaryrefslogtreecommitdiff
path: root/common/fmap.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-10-24 12:30:56 -0700
committerGerrit <chrome-bot@google.com>2012-10-24 19:07:20 -0700
commit388a42cb3d580e342f7fe0ed414278e236b32355 (patch)
treef6ff8abe23969ff109b294bf2ef72510015d6445 /common/fmap.c
parent61ebbbbbd7edb4f68fdb62f33076299d6b2fa3f8 (diff)
downloadchrome-ec-388a42cb3d580e342f7fe0ed414278e236b32355.tar.gz
Clean up fmap.c
No functional changes; just reformatting. BUG=chrome-os-partner:15579 BRANCH=none TEST=compile code Change-Id: I6b775c835a935be845bc8aea3dd742af91ab2af7 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/36455 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/fmap.c')
-rw-r--r--common/fmap.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/common/fmap.c b/common/fmap.c
index d36cdc1d5b..fa676936cb 100644
--- a/common/fmap.c
+++ b/common/fmap.c
@@ -6,9 +6,7 @@
#include <stddef.h>
-#include "board.h"
#include "common.h"
-#include "config.h"
#include "version.h"
/* FMAP structs. See http://code.google.com/p/flashmap/wiki/FmapSpec */
@@ -65,9 +63,11 @@ const struct _ec_fmap {
{
/* RO Firmware */
{
- /* Range of RO firmware to be updated. Verified in
+ /*
+ * Range of RO firmware to be updated. Verified in
* factory finalization by hash. Should not have
- * volatile data (ex, calibration results). */
+ * volatile data (ex, calibration results).
+ */
.area_name = "EC_RO",
.area_offset = CONFIG_SECTION_RO_OFF,
.area_size = CONFIG_SECTION_RO_SIZE,
@@ -81,8 +81,10 @@ const struct _ec_fmap {
.area_flags = FMAP_AREA_STATIC | FMAP_AREA_RO,
},
{
- /* RO firmware version ID. Must be NULL terminated
- * ASCIIZ, and padded with \0. */
+ /*
+ * RO firmware version ID. Must be NULL terminated
+ * ASCII, and padded with \0.
+ */
.area_name = "RO_FRID",
.area_offset = CONFIG_FW_RO_OFF +
RELATIVE((uint32_t)__version_struct_offset) +
@@ -100,9 +102,11 @@ const struct _ec_fmap {
.area_flags = FMAP_AREA_STATIC | FMAP_AREA_RO,
},
{
- /* The range for write protection, for factory
+ /*
+ * The range for write protection, for factory
* finalization. Should include (may be identical to)
- * EC_RO and aligned to hardware specification. */
+ * EC_RO and aligned to hardware specification.
+ */
.area_name = "WP_RO",
.area_offset = CONFIG_SECTION_WP_RO_OFF,
.area_size = CONFIG_SECTION_WP_RO_SIZE,
@@ -118,8 +122,10 @@ const struct _ec_fmap {
.area_flags = FMAP_AREA_STATIC | FMAP_AREA_RO,
},
{
- /* RW firmware version ID. Must be NULL terminated
- * ASCIIZ, and padded with \0. */
+ /*
+ * RW firmware version ID. Must be NULL terminated
+ * ASCII, and padded with \0.
+ */
.area_name = "RW_FWID",
.area_offset = CONFIG_FW_RW_OFF +
RELATIVE((uint32_t)__version_struct_offset) +