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