Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 2 | /* |
3 | * Copyright (C) 2016 Google, Inc | ||||
4 | * Written by Simon Glass <sjg@chromium.org> | ||||
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 5 | */ |
6 | |||||
7 | #include <config.h> | ||||
8 | |||||
9 | #ifdef CONFIG_ROM_SIZE | ||||
10 | / { | ||||
11 | binman { | ||||
12 | filename = "u-boot.rom"; | ||||
13 | end-at-4gb; | ||||
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 14 | sort-by-offset; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 15 | pad-byte = <0xff>; |
16 | size = <CONFIG_ROM_SIZE>; | ||||
17 | #ifdef CONFIG_HAVE_INTEL_ME | ||||
18 | intel-descriptor { | ||||
Stefan Roese | cccab03 | 2017-03-30 12:58:11 +0200 | [diff] [blame] | 19 | filename = CONFIG_FLASH_DESCRIPTOR_FILE; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 20 | }; |
21 | intel-me { | ||||
Stefan Roese | cccab03 | 2017-03-30 12:58:11 +0200 | [diff] [blame] | 22 | filename = CONFIG_INTEL_ME_FILE; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 23 | }; |
24 | #endif | ||||
Simon Glass | 164f041 | 2017-01-16 07:04:23 -0700 | [diff] [blame] | 25 | #ifdef CONFIG_SPL |
26 | u-boot-spl-with-ucode-ptr { | ||||
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 27 | offset = <CONFIG_SPL_TEXT_BASE>; |
Simon Glass | 164f041 | 2017-01-16 07:04:23 -0700 | [diff] [blame] | 28 | }; |
29 | |||||
30 | u-boot-dtb-with-ucode2 { | ||||
31 | type = "u-boot-dtb-with-ucode"; | ||||
32 | }; | ||||
33 | u-boot { | ||||
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 34 | offset = <0xfff00000>; |
Simon Glass | 164f041 | 2017-01-16 07:04:23 -0700 | [diff] [blame] | 35 | }; |
36 | #else | ||||
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 37 | u-boot-with-ucode-ptr { |
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 38 | offset = <CONFIG_SYS_TEXT_BASE>; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 39 | }; |
Simon Glass | 164f041 | 2017-01-16 07:04:23 -0700 | [diff] [blame] | 40 | #endif |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 41 | u-boot-dtb-with-ucode { |
42 | }; | ||||
43 | u-boot-ucode { | ||||
44 | align = <16>; | ||||
45 | }; | ||||
46 | #ifdef CONFIG_HAVE_MRC | ||||
47 | intel-mrc { | ||||
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 48 | offset = <CONFIG_X86_MRC_ADDR>; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 49 | }; |
50 | #endif | ||||
51 | #ifdef CONFIG_HAVE_FSP | ||||
52 | intel-fsp { | ||||
Bin Meng | 79e550e | 2016-12-25 20:52:46 -0800 | [diff] [blame] | 53 | filename = CONFIG_FSP_FILE; |
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 54 | offset = <CONFIG_FSP_ADDR>; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 55 | }; |
56 | #endif | ||||
57 | #ifdef CONFIG_HAVE_CMC | ||||
58 | intel-cmc { | ||||
Bin Meng | 79e550e | 2016-12-25 20:52:46 -0800 | [diff] [blame] | 59 | filename = CONFIG_CMC_FILE; |
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 60 | offset = <CONFIG_CMC_ADDR>; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 61 | }; |
62 | #endif | ||||
63 | #ifdef CONFIG_HAVE_VGA_BIOS | ||||
64 | intel-vga { | ||||
Bin Meng | 79e550e | 2016-12-25 20:52:46 -0800 | [diff] [blame] | 65 | filename = CONFIG_VGA_BIOS_FILE; |
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 66 | offset = <CONFIG_VGA_BIOS_ADDR>; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 67 | }; |
68 | #endif | ||||
Bin Meng | 6c22379 | 2017-08-15 22:41:55 -0700 | [diff] [blame] | 69 | #ifdef CONFIG_HAVE_VBT |
70 | intel-vbt { | ||||
71 | filename = CONFIG_VBT_FILE; | ||||
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 72 | offset = <CONFIG_VBT_ADDR>; |
Bin Meng | 6c22379 | 2017-08-15 22:41:55 -0700 | [diff] [blame] | 73 | }; |
74 | #endif | ||||
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 75 | #ifdef CONFIG_HAVE_REFCODE |
76 | intel-refcode { | ||||
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 77 | offset = <CONFIG_X86_REFCODE_ADDR>; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 78 | }; |
79 | #endif | ||||
Simon Glass | 164f041 | 2017-01-16 07:04:23 -0700 | [diff] [blame] | 80 | #ifdef CONFIG_SPL |
81 | x86-start16-spl { | ||||
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 82 | offset = <CONFIG_SYS_X86_START16>; |
Simon Glass | 164f041 | 2017-01-16 07:04:23 -0700 | [diff] [blame] | 83 | }; |
84 | #else | ||||
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 85 | x86-start16 { |
Simon Glass | 3ab9598 | 2018-08-01 15:22:37 -0600 | [diff] [blame] | 86 | offset = <CONFIG_SYS_X86_START16>; |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 87 | }; |
Simon Glass | 164f041 | 2017-01-16 07:04:23 -0700 | [diff] [blame] | 88 | #endif |
Simon Glass | b215fbd | 2016-11-25 20:16:02 -0700 | [diff] [blame] | 89 | }; |
90 | }; | ||||
91 | #endif |