summaryrefslogtreecommitdiff
path: root/zephyr/shim/chip/mchp/system_external_storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/shim/chip/mchp/system_external_storage.c')
-rw-r--r--zephyr/shim/chip/mchp/system_external_storage.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/zephyr/shim/chip/mchp/system_external_storage.c b/zephyr/shim/chip/mchp/system_external_storage.c
index c326a07328..4250b05fe3 100644
--- a/zephyr/shim/chip/mchp/system_external_storage.c
+++ b/zephyr/shim/chip/mchp/system_external_storage.c
@@ -1,4 +1,4 @@
-/* Copyright 2022 The Chromium OS Authors. All rights reserved.
+/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -13,12 +13,11 @@
#include "system_chip.h"
#include "config_chip.h"
-#define MCHP_ECRO_WORD 0x4F524345u /* ASCII ECRO */
-#define MCHP_ECRW_WORD 0x57524345u /* ASCII ECRW */
-#define MCHP_PCR_NODE DT_INST(0, microchip_xec_pcr)
+#define MCHP_ECRO_WORD 0x4F524345u /* ASCII ECRO */
+#define MCHP_ECRW_WORD 0x57524345u /* ASCII ECRW */
+#define MCHP_PCR_NODE DT_INST(0, microchip_xec_pcr)
-#define GET_BBRAM_OFS(node) \
- DT_PROP(DT_PATH(named_bbram_regions, node), offset)
+#define GET_BBRAM_OFS(node) DT_PROP(DT_PATH(named_bbram_regions, node), offset)
#define GET_BBRAM_SZ(node) DT_PROP(DT_PATH(named_bbram_regions, node), size)
static const struct device *const bbram_dev =
@@ -49,8 +48,8 @@ void system_jump_to_booter(void)
*/
switch (system_get_shrspi_image_copy()) {
case EC_IMAGE_RW:
- flash_offset = CONFIG_EC_WRITABLE_STORAGE_OFF +
- CONFIG_RW_STORAGE_OFF;
+ flash_offset =
+ CONFIG_EC_WRITABLE_STORAGE_OFF + CONFIG_RW_STORAGE_OFF;
flash_used = CONFIG_CROS_EC_RW_SIZE;
break;
case EC_IMAGE_RO: