OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (c) 2011 The Chromium OS Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can be | |
4 * found in the LICENSE file. | |
5 */ | |
6 | |
7 #ifndef __FIRMWARE_LAYOUT_H__ | |
8 #define __FIRMWARE_LAYOUT_H__ | |
9 | |
10 #define CONFIG_FIRMWARE_SIZE 0x00400000 /* 4 MB */ | |
11 | |
12 /* -- Region: Read-only ----------------------------------------------------- */ | |
13 | |
14 /* ---- Section: Read-only firmware ----------------------------------------- */ | |
15 | |
16 #define CONFIG_OFFSET_RO_SECTION 0x00000000 | |
17 #define CONFIG_LENGTH_RO_SECTION 0x001f0000 | |
18 | |
19 #define CONFIG_OFFSET_BOOT_STUB 0x00000000 | |
20 #define CONFIG_LENGTH_BOOT_STUB 0x000a0000 | |
21 | |
22 #define CONFIG_OFFSET_RECOVERY 0x000a0000 | |
23 #define CONFIG_LENGTH_RECOVERY 0x00100000 | |
24 | |
25 #define CONFIG_OFFSET_RO_DATA 0x001a0000 | |
26 #define CONFIG_LENGTH_RO_DATA 0x00010000 | |
27 | |
28 #define CONFIG_OFFSET_FMAP 0x001a0000 | |
29 #define CONFIG_LENGTH_FMAP 0x00000400 | |
30 | |
31 #define CONFIG_OFFSET_GBB 0x001b0000 | |
32 #define CONFIG_LENGTH_GBB 0x00040000 | |
33 | |
34 /* ---- Section: Vital-product data (VPD) ----------------------------------- */ | |
35 | |
36 #define CONFIG_OFFSET_RO_VPD 0x001f0000 | |
37 #define CONFIG_LENGTH_RO_VPD 0x00010000 | |
38 | |
39 /* -- Region: Writable ------------------------------------------------------ */ | |
40 | |
41 /* ---- Section: Rewritable slot A ------------------------------------------ */ | |
42 | |
43 #define CONFIG_OFFSET_RW_SECTION_A 0x00200000 | |
44 #define CONFIG_LENGTH_RW_SECTION_A 0x000e0000 | |
45 | |
46 #define CONFIG_OFFSET_VBLOCK_A 0x00200000 | |
47 #define CONFIG_LENGTH_VBLOCK_A 0x00010000 | |
48 | |
49 #define CONFIG_OFFSET_FW_MAIN_A 0x00210000 | |
50 #define CONFIG_LENGTH_FW_MAIN_A 0x000d0000 | |
51 | |
52 #define CONFIG_OFFSET_DATA_A 0x00200000 | |
53 #define CONFIG_LENGTH_DATA_A 0x00000000 | |
54 | |
55 /* ---- Section: Rewritable slot B ------------------------------------------ */ | |
56 | |
57 #define CONFIG_OFFSET_RW_SECTION_B 0x002e0000 | |
58 #define CONFIG_LENGTH_RW_SECTION_B 0x000e0000 | |
59 | |
60 #define CONFIG_OFFSET_VBLOCK_B 0x002e0000 | |
61 #define CONFIG_LENGTH_VBLOCK_B 0x00010000 | |
62 | |
63 #define CONFIG_OFFSET_FW_MAIN_B 0x002f0000 | |
64 #define CONFIG_LENGTH_FW_MAIN_B 0x000d0000 | |
65 | |
66 #define CONFIG_OFFSET_DATA_B 0x002e0000 | |
67 #define CONFIG_LENGTH_DATA_B 0x00000000 | |
68 | |
69 /* ---- Section: Rewritable VPD --------------------------------------------- */ | |
70 | |
71 #define CONFIG_OFFSET_RW_VPD 0x003c0000 | |
72 #define CONFIG_LENGTH_RW_VPD 0x00010000 | |
73 | |
74 /* ---- Section: Rewritable shared ------------------------------------------ */ | |
75 | |
76 #define CONFIG_OFFSET_RW_SHARED 0x003d0000 | |
77 #define CONFIG_LENGTH_RW_SHARED 0x00030000 | |
78 | |
79 #define CONFIG_OFFSET_DEV_CFG 0x003d0000 | |
80 #define CONFIG_LENGTH_DEV_CFG 0x00011000 | |
81 | |
82 #define CONFIG_OFFSET_SHARED_DATA 0x003e1000 | |
83 #define CONFIG_LENGTH_SHARED_DATA 0x0001d000 | |
84 | |
85 #define CONFIG_OFFSET_VBNVCONTEXT 0x003fe000 | |
86 #define CONFIG_LENGTH_VBNVCONTEXT 0x00001000 | |
87 | |
88 /* where are the meanings of these documented? Add a comment/link here */ | |
89 #define CONFIG_OFFSET_ENV 0x003ff000 | |
90 #define CONFIG_LENGTH_ENV 0x00001000 | |
91 | |
92 #endif /* __FIRMWARE_LAYOUT_H__ */ | |
OLD | NEW |