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 * Alternatively, this software may be distributed under the terms of the | |
7 * GNU General Public License ("GPL") version 2 as published by the Free | |
8 * Software Foundation. | |
9 */ | |
10 | |
11 #ifndef __SEABOARD_FIRMWARE_LAYOUT_H__ | |
12 | |
13 /* | |
14 * Use a smaller firmware image layout for Seaboard because it has | |
15 * only 16MBit (=2MB) of SPI Flash. | |
16 */ | |
17 | |
18 #define CONFIG_FIRMWARE_SIZE 0x00200000 /* 2 MB */ | |
19 | |
20 /* -- Region: Read-only ----------------------------------------------------- */ | |
21 | |
22 /* ---- Section: Read-only firmware ----------------------------------------- */ | |
23 | |
24 #define CONFIG_OFFSET_RO_SECTION 0x00000000 | |
25 #define CONFIG_LENGTH_RO_SECTION 0x000f0000 | |
26 | |
27 #define CONFIG_OFFSET_BOOT_STUB 0x00000000 | |
28 #define CONFIG_LENGTH_BOOT_STUB 0x00088000 | |
29 | |
30 #define CONFIG_OFFSET_RECOVERY 0x00088000 | |
31 #define CONFIG_LENGTH_RECOVERY 0x00040000 | |
32 | |
33 #define CONFIG_OFFSET_RO_DATA 0x000c8000 | |
34 #define CONFIG_LENGTH_RO_DATA 0x00008000 | |
35 | |
36 #define CONFIG_OFFSET_FMAP 0x000c8000 | |
37 #define CONFIG_LENGTH_FMAP 0x00000400 | |
38 | |
39 #define CONFIG_OFFSET_GBB 0x000d0000 | |
40 #define CONFIG_LENGTH_GBB 0x00020000 | |
41 | |
42 /* ---- Section: Vital-product data (VPD) ----------------------------------- */ | |
43 | |
44 #define CONFIG_OFFSET_RO_VPD 0x000f0000 | |
45 #define CONFIG_LENGTH_RO_VPD 0x00010000 | |
46 | |
47 /* -- Region: Writable ------------------------------------------------------ */ | |
48 | |
49 /* ---- Section: Rewritable slot A ------------------------------------------ */ | |
50 | |
51 #define CONFIG_OFFSET_RW_SECTION_A 0x00100000 | |
52 #define CONFIG_LENGTH_RW_SECTION_A 0x00078000 | |
53 | |
54 #define CONFIG_OFFSET_VBLOCK_A 0x00100000 | |
55 #define CONFIG_LENGTH_VBLOCK_A 0x00010000 | |
56 | |
57 #define CONFIG_OFFSET_FW_MAIN_A 0x00110000 | |
58 #define CONFIG_LENGTH_FW_MAIN_A 0x00068000 | |
59 | |
60 #define CONFIG_OFFSET_DATA_A 0x00100000 | |
61 #define CONFIG_LENGTH_DATA_A 0x00000000 | |
62 | |
63 /* ---- Section: Rewritable slot B ------------------------------------------ */ | |
64 | |
65 #define CONFIG_OFFSET_RW_SECTION_B 0x00178000 | |
66 #define CONFIG_LENGTH_RW_SECTION_B 0x00078000 | |
67 | |
68 #define CONFIG_OFFSET_VBLOCK_B 0x00178000 | |
69 #define CONFIG_LENGTH_VBLOCK_B 0x00010000 | |
70 | |
71 #define CONFIG_OFFSET_FW_MAIN_B 0x00188000 | |
72 #define CONFIG_LENGTH_FW_MAIN_B 0x00068000 | |
73 | |
74 #define CONFIG_OFFSET_DATA_B 0x00178000 | |
75 #define CONFIG_LENGTH_DATA_B 0x00000000 | |
76 | |
77 /* ---- Section: Rewritable VPD --------------------------------------------- */ | |
78 | |
79 #define CONFIG_OFFSET_RW_VPD 0x001f0000 | |
80 #define CONFIG_LENGTH_RW_VPD 0x00008000 | |
81 | |
82 /* ---- Section: Rewritable shared ------------------------------------------ */ | |
83 | |
84 #define CONFIG_OFFSET_RW_SHARED 0x001f8000 | |
85 #define CONFIG_LENGTH_RW_SHARED 0x00008000 | |
86 | |
87 #define CONFIG_OFFSET_DEV_CFG 0x001f8000 | |
88 #define CONFIG_LENGTH_DEV_CFG 0x00004000 | |
89 | |
90 #define CONFIG_OFFSET_SHARED_DATA 0x001fc000 | |
91 #define CONFIG_LENGTH_SHARED_DATA 0x00002000 | |
92 | |
93 #define CONFIG_OFFSET_VBNVCONTEXT 0x001fe000 | |
94 #define CONFIG_LENGTH_VBNVCONTEXT 0x00001000 | |
95 | |
96 /* where are the meanings of these documented? Add a comment/link here */ | |
97 #define CONFIG_OFFSET_ENV 0x001ff000 | |
98 #define CONFIG_LENGTH_ENV 0x00001000 | |
99 | |
100 #endif /* __SEABOARD_FIRMWARE_LAYOUT_H__ */ | |
OLD | NEW |