blob: 1050236330a5630b8dd6b78cde6ed28d729343f0 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glassb215fbd2016-11-25 20:16:02 -07002/*
3 * Copyright (C) 2016 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
Simon Glassb215fbd2016-11-25 20:16:02 -07005 */
6
7#include <config.h>
8
9#ifdef CONFIG_ROM_SIZE
10/ {
11 binman {
12 filename = "u-boot.rom";
13 end-at-4gb;
Simon Glass3ab95982018-08-01 15:22:37 -060014 sort-by-offset;
Simon Glassb215fbd2016-11-25 20:16:02 -070015 pad-byte = <0xff>;
16 size = <CONFIG_ROM_SIZE>;
17#ifdef CONFIG_HAVE_INTEL_ME
18 intel-descriptor {
Stefan Roesecccab032017-03-30 12:58:11 +020019 filename = CONFIG_FLASH_DESCRIPTOR_FILE;
Simon Glassb215fbd2016-11-25 20:16:02 -070020 };
21 intel-me {
Stefan Roesecccab032017-03-30 12:58:11 +020022 filename = CONFIG_INTEL_ME_FILE;
Simon Glassb215fbd2016-11-25 20:16:02 -070023 };
24#endif
Simon Glass164f0412017-01-16 07:04:23 -070025#ifdef CONFIG_SPL
26 u-boot-spl-with-ucode-ptr {
Simon Glass3ab95982018-08-01 15:22:37 -060027 offset = <CONFIG_SPL_TEXT_BASE>;
Simon Glass164f0412017-01-16 07:04:23 -070028 };
29
30 u-boot-dtb-with-ucode2 {
31 type = "u-boot-dtb-with-ucode";
32 };
33 u-boot {
Simon Glass3ab95982018-08-01 15:22:37 -060034 offset = <0xfff00000>;
Simon Glass164f0412017-01-16 07:04:23 -070035 };
36#else
Simon Glassb215fbd2016-11-25 20:16:02 -070037 u-boot-with-ucode-ptr {
Simon Glass3ab95982018-08-01 15:22:37 -060038 offset = <CONFIG_SYS_TEXT_BASE>;
Simon Glassb215fbd2016-11-25 20:16:02 -070039 };
Simon Glass164f0412017-01-16 07:04:23 -070040#endif
Simon Glassb215fbd2016-11-25 20:16:02 -070041 u-boot-dtb-with-ucode {
42 };
43 u-boot-ucode {
44 align = <16>;
45 };
46#ifdef CONFIG_HAVE_MRC
47 intel-mrc {
Simon Glass3ab95982018-08-01 15:22:37 -060048 offset = <CONFIG_X86_MRC_ADDR>;
Simon Glassb215fbd2016-11-25 20:16:02 -070049 };
50#endif
51#ifdef CONFIG_HAVE_FSP
52 intel-fsp {
Bin Meng79e550e2016-12-25 20:52:46 -080053 filename = CONFIG_FSP_FILE;
Simon Glass3ab95982018-08-01 15:22:37 -060054 offset = <CONFIG_FSP_ADDR>;
Simon Glassb215fbd2016-11-25 20:16:02 -070055 };
56#endif
57#ifdef CONFIG_HAVE_CMC
58 intel-cmc {
Bin Meng79e550e2016-12-25 20:52:46 -080059 filename = CONFIG_CMC_FILE;
Simon Glass3ab95982018-08-01 15:22:37 -060060 offset = <CONFIG_CMC_ADDR>;
Simon Glassb215fbd2016-11-25 20:16:02 -070061 };
62#endif
63#ifdef CONFIG_HAVE_VGA_BIOS
64 intel-vga {
Bin Meng79e550e2016-12-25 20:52:46 -080065 filename = CONFIG_VGA_BIOS_FILE;
Simon Glass3ab95982018-08-01 15:22:37 -060066 offset = <CONFIG_VGA_BIOS_ADDR>;
Simon Glassb215fbd2016-11-25 20:16:02 -070067 };
68#endif
Bin Meng6c223792017-08-15 22:41:55 -070069#ifdef CONFIG_HAVE_VBT
70 intel-vbt {
71 filename = CONFIG_VBT_FILE;
Simon Glass3ab95982018-08-01 15:22:37 -060072 offset = <CONFIG_VBT_ADDR>;
Bin Meng6c223792017-08-15 22:41:55 -070073 };
74#endif
Simon Glassb215fbd2016-11-25 20:16:02 -070075#ifdef CONFIG_HAVE_REFCODE
76 intel-refcode {
Simon Glass3ab95982018-08-01 15:22:37 -060077 offset = <CONFIG_X86_REFCODE_ADDR>;
Simon Glassb215fbd2016-11-25 20:16:02 -070078 };
79#endif
Simon Glass164f0412017-01-16 07:04:23 -070080#ifdef CONFIG_SPL
81 x86-start16-spl {
Simon Glass3ab95982018-08-01 15:22:37 -060082 offset = <CONFIG_SYS_X86_START16>;
Simon Glass164f0412017-01-16 07:04:23 -070083 };
84#else
Simon Glassb215fbd2016-11-25 20:16:02 -070085 x86-start16 {
Simon Glass3ab95982018-08-01 15:22:37 -060086 offset = <CONFIG_SYS_X86_START16>;
Simon Glassb215fbd2016-11-25 20:16:02 -070087 };
Simon Glass164f0412017-01-16 07:04:23 -070088#endif
Simon Glassb215fbd2016-11-25 20:16:02 -070089 };
90};
91#endif