blob: d84c64880a8a3b65b936e70ac63b70b4453f7d93 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glassdc926ed2016-11-25 20:16:02 -07002/*
3 * Copyright (C) 2016 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
Simon Glassdc926ed2016-11-25 20:16:02 -07005 */
6
7#include <config.h>
8
Simon Glassff23e682019-05-02 10:52:20 -06009#ifdef CONFIG_CHROMEOS
Simon Glassdc926ed2016-11-25 20:16:02 -070010/ {
11 binman {
Simon Glassff23e682019-05-02 10:52:20 -060012 multiple-images;
13 rom: rom {
14 };
15 };
16};
17#else
18/ {
19 rom: binman {
20 };
21};
22#endif
23
24#ifdef CONFIG_ROM_SIZE
25&rom {
Simon Glass771f02f2019-05-02 10:52:21 -060026 filename = "u-boot.rom";
27 end-at-4gb;
28 sort-by-offset;
29 pad-byte = <0xff>;
30 size = <CONFIG_ROM_SIZE>;
Simon Glassdc926ed2016-11-25 20:16:02 -070031#ifdef CONFIG_HAVE_INTEL_ME
Simon Glass771f02f2019-05-02 10:52:21 -060032 intel-descriptor {
33 filename = CONFIG_FLASH_DESCRIPTOR_FILE;
34 };
35 intel-me {
36 filename = CONFIG_INTEL_ME_FILE;
37 };
Simon Glassdc926ed2016-11-25 20:16:02 -070038#endif
Simon Glassf03c70d2019-05-02 10:52:19 -060039#ifdef CONFIG_TPL
Simon Glass3c4b98f2019-12-06 21:42:26 -070040#ifdef CONFIG_HAVE_MICROCODE
Simon Glass771f02f2019-05-02 10:52:21 -060041 u-boot-tpl-with-ucode-ptr {
42 offset = <CONFIG_TPL_TEXT_BASE>;
43 };
44 u-boot-tpl-dtb {
45 };
Simon Glass3c4b98f2019-12-06 21:42:26 -070046#endif
Simon Glass771f02f2019-05-02 10:52:21 -060047 u-boot-spl {
48 offset = <CONFIG_SPL_TEXT_BASE>;
49 };
50 u-boot-spl-dtb {
51 };
52 u-boot {
Simon Glass20af0ff2019-12-06 21:42:29 -070053 offset = <CONFIG_X86_OFFSET_U_BOOT>;
Simon Glass771f02f2019-05-02 10:52:21 -060054 };
Simon Glassf03c70d2019-05-02 10:52:19 -060055#elif defined(CONFIG_SPL)
Simon Glass771f02f2019-05-02 10:52:21 -060056 u-boot-spl-with-ucode-ptr {
57 offset = <CONFIG_SPL_TEXT_BASE>;
58 };
59 u-boot-dtb-with-ucode2 {
60 type = "u-boot-dtb-with-ucode";
61 };
62 u-boot {
Simon Glass20af0ff2019-12-06 21:42:29 -070063 offset = <CONFIG_X86_OFFSET_U_BOOT>;
Simon Glass771f02f2019-05-02 10:52:21 -060064 };
Simon Glass46be3c62017-01-16 07:04:23 -070065#else
Simon Glass771f02f2019-05-02 10:52:21 -060066 u-boot-with-ucode-ptr {
Simon Glass20af0ff2019-12-06 21:42:29 -070067 offset = <CONFIG_X86_OFFSET_U_BOOT>;
Simon Glass771f02f2019-05-02 10:52:21 -060068 };
Simon Glass46be3c62017-01-16 07:04:23 -070069#endif
Simon Glass3c4b98f2019-12-06 21:42:26 -070070#ifdef CONFIG_HAVE_MICROCODE
Simon Glass771f02f2019-05-02 10:52:21 -060071 u-boot-dtb-with-ucode {
72 };
73 u-boot-ucode {
74 align = <16>;
75 };
Simon Glass3c4b98f2019-12-06 21:42:26 -070076#else
77 u-boot-dtb {
78 };
79#endif
Simon Glass7dbabbb2019-12-06 21:42:24 -070080#ifdef CONFIG_HAVE_X86_FIT
81 intel-fit {
82 };
83 intel-fit-ptr {
84 };
85#endif
Simon Glassdc926ed2016-11-25 20:16:02 -070086#ifdef CONFIG_HAVE_MRC
Simon Glass771f02f2019-05-02 10:52:21 -060087 intel-mrc {
88 offset = <CONFIG_X86_MRC_ADDR>;
89 };
Simon Glassdc926ed2016-11-25 20:16:02 -070090#endif
Simon Glassf8dc7f42019-12-06 21:42:28 -070091#ifdef CONFIG_FSP_VERSION1
Simon Glass771f02f2019-05-02 10:52:21 -060092 intel-fsp {
93 filename = CONFIG_FSP_FILE;
94 offset = <CONFIG_FSP_ADDR>;
95 };
Simon Glassdc926ed2016-11-25 20:16:02 -070096#endif
Simon Glassf8dc7f42019-12-06 21:42:28 -070097#ifdef CONFIG_FSP_VERSION2
98 intel-descriptor {
99 filename = CONFIG_FLASH_DESCRIPTOR_FILE;
100 };
101 intel-ifwi {
102 filename = CONFIG_IFWI_INPUT_FILE;
103 convert-fit;
104
105 section {
106 size = <0x8000>;
107 ifwi-replace;
108 ifwi-subpart = "IBBP";
109 ifwi-entry = "IBBL";
110 u-boot-tpl {
111 };
112 x86-start16-tpl {
113 offset = <0x7800>;
114 };
115 x86-reset16-tpl {
116 offset = <0x7ff0>;
117 };
118 };
119 };
120 intel-fsp-m {
121 filename = CONFIG_FSP_FILE_M;
122 };
123 intel-fsp-s {
124 filename = CONFIG_FSP_FILE_S;
125 };
126#endif
Simon Glassdc926ed2016-11-25 20:16:02 -0700127#ifdef CONFIG_HAVE_CMC
Simon Glass771f02f2019-05-02 10:52:21 -0600128 intel-cmc {
129 filename = CONFIG_CMC_FILE;
130 offset = <CONFIG_CMC_ADDR>;
131 };
Simon Glassdc926ed2016-11-25 20:16:02 -0700132#endif
133#ifdef CONFIG_HAVE_VGA_BIOS
Simon Glass771f02f2019-05-02 10:52:21 -0600134 intel-vga {
135 filename = CONFIG_VGA_BIOS_FILE;
136 offset = <CONFIG_VGA_BIOS_ADDR>;
137 };
Simon Glassdc926ed2016-11-25 20:16:02 -0700138#endif
Bin Menga3dd11a2017-08-15 22:41:55 -0700139#ifdef CONFIG_HAVE_VBT
Simon Glass771f02f2019-05-02 10:52:21 -0600140 intel-vbt {
141 filename = CONFIG_VBT_FILE;
142 offset = <CONFIG_VBT_ADDR>;
143 };
Bin Menga3dd11a2017-08-15 22:41:55 -0700144#endif
Simon Glassdc926ed2016-11-25 20:16:02 -0700145#ifdef CONFIG_HAVE_REFCODE
Simon Glass771f02f2019-05-02 10:52:21 -0600146 intel-refcode {
147 offset = <CONFIG_X86_REFCODE_ADDR>;
148 };
Simon Glassdc926ed2016-11-25 20:16:02 -0700149#endif
Simon Glassf03c70d2019-05-02 10:52:19 -0600150#ifdef CONFIG_TPL
Simon Glass771f02f2019-05-02 10:52:21 -0600151 x86-start16-tpl {
152 offset = <CONFIG_SYS_X86_START16>;
153 };
Simon Glassabab18c2019-08-24 07:22:49 -0600154 x86-reset16-tpl {
155 offset = <CONFIG_RESET_VEC_LOC>;
156 };
Simon Glassf03c70d2019-05-02 10:52:19 -0600157#elif defined(CONFIG_SPL)
Simon Glass771f02f2019-05-02 10:52:21 -0600158 x86-start16-spl {
159 offset = <CONFIG_SYS_X86_START16>;
160 };
Simon Glassabab18c2019-08-24 07:22:49 -0600161 x86-reset16-spl {
162 offset = <CONFIG_RESET_VEC_LOC>;
163 };
Simon Glass46be3c62017-01-16 07:04:23 -0700164#else
Simon Glass771f02f2019-05-02 10:52:21 -0600165 x86-start16 {
166 offset = <CONFIG_SYS_X86_START16>;
167 };
Simon Glassabab18c2019-08-24 07:22:49 -0600168 x86-reset16 {
169 offset = <CONFIG_RESET_VEC_LOC>;
170 };
Simon Glass46be3c62017-01-16 07:04:23 -0700171#endif
Simon Glassdc926ed2016-11-25 20:16:02 -0700172};
173#endif