| /* |
| * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| */ |
| |
| #ifndef __FIRMWARE_LAYOUT_H__ |
| #define __FIRMWARE_LAYOUT_H__ |
| |
| #define CONFIG_FIRMWARE_SIZE 0x00400000 /* 4 MB */ |
| |
| /* -- Region: Read-only ----------------------------------------------------- */ |
| |
| /* ---- Section: Read-only firmware ----------------------------------------- */ |
| |
| #define CONFIG_OFFSET_RO_SECTION 0x00000000 |
| #define CONFIG_LENGTH_RO_SECTION 0x001f0000 |
| |
| #define CONFIG_OFFSET_BOOT_STUB 0x00000000 |
| #define CONFIG_LENGTH_BOOT_STUB 0x000d0000 |
| |
| #define CONFIG_OFFSET_RECOVERY 0x000d0000 |
| #define CONFIG_LENGTH_RECOVERY 0x000d0000 |
| |
| #define CONFIG_OFFSET_RO_DATA 0x001a0000 |
| #define CONFIG_LENGTH_RO_DATA 0x00010000 |
| |
| #define CONFIG_OFFSET_FMAP 0x001a0000 |
| #define CONFIG_LENGTH_FMAP 0x00000400 |
| |
| #define CONFIG_OFFSET_GBB 0x001b0000 |
| #define CONFIG_LENGTH_GBB 0x00040000 |
| |
| /* ---- Section: Vital-product data (VPD) ----------------------------------- */ |
| |
| #define CONFIG_OFFSET_RO_VPD 0x001f0000 |
| #define CONFIG_LENGTH_RO_VPD 0x00010000 |
| |
| /* -- Region: Writable ------------------------------------------------------ */ |
| |
| /* ---- Section: Rewritable slot A ------------------------------------------ */ |
| |
| #define CONFIG_OFFSET_RW_SECTION_A 0x00200000 |
| #define CONFIG_LENGTH_RW_SECTION_A 0x000e0000 |
| |
| #define CONFIG_OFFSET_VBLOCK_A 0x00200000 |
| #define CONFIG_LENGTH_VBLOCK_A 0x00010000 |
| |
| #define CONFIG_OFFSET_FW_MAIN_A 0x00210000 |
| #define CONFIG_LENGTH_FW_MAIN_A 0x000d0000 |
| |
| #define CONFIG_OFFSET_DATA_A 0x00200000 |
| #define CONFIG_LENGTH_DATA_A 0x00000000 |
| |
| /* ---- Section: Rewritable slot B ------------------------------------------ */ |
| |
| #define CONFIG_OFFSET_RW_SECTION_B 0x002e0000 |
| #define CONFIG_LENGTH_RW_SECTION_B 0x000e0000 |
| |
| #define CONFIG_OFFSET_VBLOCK_B 0x002e0000 |
| #define CONFIG_LENGTH_VBLOCK_B 0x00010000 |
| |
| #define CONFIG_OFFSET_FW_MAIN_B 0x002f0000 |
| #define CONFIG_LENGTH_FW_MAIN_B 0x000d0000 |
| |
| #define CONFIG_OFFSET_DATA_B 0x002e0000 |
| #define CONFIG_LENGTH_DATA_B 0x00000000 |
| |
| /* ---- Section: Rewritable VPD --------------------------------------------- */ |
| |
| #define CONFIG_OFFSET_RW_VPD 0x003c0000 |
| #define CONFIG_LENGTH_RW_VPD 0x00010000 |
| |
| /* ---- Section: Rewritable shared ------------------------------------------ */ |
| |
| #define CONFIG_OFFSET_RW_SHARED 0x003d0000 |
| #define CONFIG_LENGTH_RW_SHARED 0x00030000 |
| |
| #define CONFIG_OFFSET_DEV_CFG 0x003d0000 |
| #define CONFIG_LENGTH_DEV_CFG 0x00011000 |
| |
| #define CONFIG_OFFSET_SHARED_DATA 0x003e1000 |
| #define CONFIG_LENGTH_SHARED_DATA 0x0001d000 |
| |
| #define CONFIG_OFFSET_VBNVCONTEXT 0x003fe000 |
| #define CONFIG_LENGTH_VBNVCONTEXT 0x00001000 |
| |
| /* where are the meanings of these documented? Add a comment/link here */ |
| #define CONFIG_OFFSET_ENV 0x003ff000 |
| #define CONFIG_LENGTH_ENV 0x00001000 |
| |
| #endif /* __FIRMWARE_LAYOUT_H__ */ |