2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2016-11-26 03:16:02 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Google, Inc
|
|
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2019-05-02 16:52:20 +00:00
|
|
|
#ifdef CONFIG_CHROMEOS
|
2016-11-26 03:16:02 +00:00
|
|
|
/ {
|
|
|
|
binman {
|
2019-05-02 16:52:20 +00:00
|
|
|
multiple-images;
|
|
|
|
rom: rom {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#else
|
|
|
|
/ {
|
|
|
|
rom: binman {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ROM_SIZE
|
|
|
|
&rom {
|
2019-05-02 16:52:21 +00:00
|
|
|
filename = "u-boot.rom";
|
|
|
|
end-at-4gb;
|
|
|
|
sort-by-offset;
|
|
|
|
pad-byte = <0xff>;
|
|
|
|
size = <CONFIG_ROM_SIZE>;
|
2016-11-26 03:16:02 +00:00
|
|
|
#ifdef CONFIG_HAVE_INTEL_ME
|
2019-05-02 16:52:21 +00:00
|
|
|
intel-descriptor {
|
|
|
|
filename = CONFIG_FLASH_DESCRIPTOR_FILE;
|
|
|
|
};
|
|
|
|
intel-me {
|
|
|
|
filename = CONFIG_INTEL_ME_FILE;
|
|
|
|
};
|
2016-11-26 03:16:02 +00:00
|
|
|
#endif
|
2019-05-02 16:52:19 +00:00
|
|
|
#ifdef CONFIG_TPL
|
2019-12-07 04:42:26 +00:00
|
|
|
#ifdef CONFIG_HAVE_MICROCODE
|
2019-05-02 16:52:21 +00:00
|
|
|
u-boot-tpl-with-ucode-ptr {
|
|
|
|
offset = <CONFIG_TPL_TEXT_BASE>;
|
|
|
|
};
|
|
|
|
u-boot-tpl-dtb {
|
|
|
|
};
|
2019-12-07 04:42:26 +00:00
|
|
|
#endif
|
2019-12-07 04:42:33 +00:00
|
|
|
spl {
|
|
|
|
type = "section";
|
2019-12-07 04:42:30 +00:00
|
|
|
offset = <CONFIG_X86_OFFSET_SPL>;
|
2019-12-07 04:42:33 +00:00
|
|
|
u-boot-spl {
|
|
|
|
};
|
|
|
|
u-boot-spl-dtb {
|
|
|
|
};
|
2019-05-02 16:52:21 +00:00
|
|
|
};
|
|
|
|
u-boot {
|
2019-12-07 04:42:33 +00:00
|
|
|
type = "section";
|
2019-12-07 04:42:29 +00:00
|
|
|
offset = <CONFIG_X86_OFFSET_U_BOOT>;
|
2019-12-07 04:42:33 +00:00
|
|
|
u-boot-nodtb {
|
|
|
|
};
|
|
|
|
u-boot-dtb {
|
|
|
|
};
|
2019-05-02 16:52:21 +00:00
|
|
|
};
|
2019-05-02 16:52:19 +00:00
|
|
|
#elif defined(CONFIG_SPL)
|
2019-05-02 16:52:21 +00:00
|
|
|
u-boot-spl-with-ucode-ptr {
|
2019-12-07 04:42:30 +00:00
|
|
|
offset = <CONFIG_X86_OFFSET_SPL>;
|
2019-05-02 16:52:21 +00:00
|
|
|
};
|
|
|
|
u-boot-dtb-with-ucode2 {
|
|
|
|
type = "u-boot-dtb-with-ucode";
|
|
|
|
};
|
|
|
|
u-boot {
|
2019-12-07 04:42:29 +00:00
|
|
|
offset = <CONFIG_X86_OFFSET_U_BOOT>;
|
2019-05-02 16:52:21 +00:00
|
|
|
};
|
2017-01-16 14:04:23 +00:00
|
|
|
#else
|
2019-12-07 04:42:32 +00:00
|
|
|
# ifdef CONFIG_SPL
|
|
|
|
u-boot {
|
|
|
|
offset = <CONFIG_SYS_TEXT_BASE>;
|
|
|
|
};
|
2020-07-19 19:56:17 +00:00
|
|
|
# elif defined(CONFIG_HAVE_MICROCODE)
|
2019-12-07 04:42:32 +00:00
|
|
|
/* If there is no SPL then we need to put microcode in U-Boot */
|
2019-05-02 16:52:21 +00:00
|
|
|
u-boot-with-ucode-ptr {
|
2019-12-07 04:42:29 +00:00
|
|
|
offset = <CONFIG_X86_OFFSET_U_BOOT>;
|
2019-05-02 16:52:21 +00:00
|
|
|
};
|
2020-07-19 19:56:17 +00:00
|
|
|
# else
|
|
|
|
u-boot-nodtb {
|
|
|
|
offset = <CONFIG_X86_OFFSET_U_BOOT>;
|
|
|
|
};
|
2019-12-07 04:42:32 +00:00
|
|
|
# endif
|
2017-01-16 14:04:23 +00:00
|
|
|
#endif
|
2019-12-07 04:42:26 +00:00
|
|
|
#ifdef CONFIG_HAVE_MICROCODE
|
2019-05-02 16:52:21 +00:00
|
|
|
u-boot-dtb-with-ucode {
|
|
|
|
};
|
|
|
|
u-boot-ucode {
|
|
|
|
align = <16>;
|
|
|
|
};
|
2019-12-07 04:42:26 +00:00
|
|
|
#else
|
|
|
|
u-boot-dtb {
|
|
|
|
};
|
|
|
|
#endif
|
2020-07-19 19:56:15 +00:00
|
|
|
fdtmap {
|
|
|
|
};
|
2019-12-07 04:42:24 +00:00
|
|
|
#ifdef CONFIG_HAVE_X86_FIT
|
|
|
|
intel-fit {
|
|
|
|
};
|
|
|
|
intel-fit-ptr {
|
|
|
|
};
|
|
|
|
#endif
|
2016-11-26 03:16:02 +00:00
|
|
|
#ifdef CONFIG_HAVE_MRC
|
2019-05-02 16:52:21 +00:00
|
|
|
intel-mrc {
|
|
|
|
offset = <CONFIG_X86_MRC_ADDR>;
|
|
|
|
};
|
2016-11-26 03:16:02 +00:00
|
|
|
#endif
|
2019-12-07 04:42:28 +00:00
|
|
|
#ifdef CONFIG_FSP_VERSION1
|
2019-05-02 16:52:21 +00:00
|
|
|
intel-fsp {
|
|
|
|
filename = CONFIG_FSP_FILE;
|
|
|
|
offset = <CONFIG_FSP_ADDR>;
|
|
|
|
};
|
2016-11-26 03:16:02 +00:00
|
|
|
#endif
|
2019-12-07 04:42:28 +00:00
|
|
|
#ifdef CONFIG_FSP_VERSION2
|
|
|
|
intel-descriptor {
|
|
|
|
filename = CONFIG_FLASH_DESCRIPTOR_FILE;
|
|
|
|
};
|
|
|
|
intel-ifwi {
|
|
|
|
filename = CONFIG_IFWI_INPUT_FILE;
|
|
|
|
convert-fit;
|
|
|
|
|
|
|
|
section {
|
|
|
|
size = <0x8000>;
|
|
|
|
ifwi-replace;
|
|
|
|
ifwi-subpart = "IBBP";
|
|
|
|
ifwi-entry = "IBBL";
|
|
|
|
u-boot-tpl {
|
|
|
|
};
|
|
|
|
x86-start16-tpl {
|
|
|
|
offset = <0x7800>;
|
|
|
|
};
|
|
|
|
x86-reset16-tpl {
|
|
|
|
offset = <0x7ff0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
intel-fsp-m {
|
|
|
|
filename = CONFIG_FSP_FILE_M;
|
|
|
|
};
|
|
|
|
intel-fsp-s {
|
|
|
|
filename = CONFIG_FSP_FILE_S;
|
|
|
|
};
|
|
|
|
#endif
|
2016-11-26 03:16:02 +00:00
|
|
|
#ifdef CONFIG_HAVE_CMC
|
2019-05-02 16:52:21 +00:00
|
|
|
intel-cmc {
|
|
|
|
filename = CONFIG_CMC_FILE;
|
|
|
|
offset = <CONFIG_CMC_ADDR>;
|
|
|
|
};
|
2016-11-26 03:16:02 +00:00
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_HAVE_VGA_BIOS
|
2019-05-02 16:52:21 +00:00
|
|
|
intel-vga {
|
|
|
|
filename = CONFIG_VGA_BIOS_FILE;
|
|
|
|
offset = <CONFIG_VGA_BIOS_ADDR>;
|
|
|
|
};
|
2016-11-26 03:16:02 +00:00
|
|
|
#endif
|
2017-08-16 05:41:55 +00:00
|
|
|
#ifdef CONFIG_HAVE_VBT
|
2019-05-02 16:52:21 +00:00
|
|
|
intel-vbt {
|
|
|
|
filename = CONFIG_VBT_FILE;
|
|
|
|
offset = <CONFIG_VBT_ADDR>;
|
|
|
|
};
|
2017-08-16 05:41:55 +00:00
|
|
|
#endif
|
2016-11-26 03:16:02 +00:00
|
|
|
#ifdef CONFIG_HAVE_REFCODE
|
2019-05-02 16:52:21 +00:00
|
|
|
intel-refcode {
|
|
|
|
offset = <CONFIG_X86_REFCODE_ADDR>;
|
|
|
|
};
|
2016-11-26 03:16:02 +00:00
|
|
|
#endif
|
2019-05-02 16:52:19 +00:00
|
|
|
#ifdef CONFIG_TPL
|
2019-05-02 16:52:21 +00:00
|
|
|
x86-start16-tpl {
|
|
|
|
offset = <CONFIG_SYS_X86_START16>;
|
|
|
|
};
|
2019-08-24 13:22:49 +00:00
|
|
|
x86-reset16-tpl {
|
|
|
|
offset = <CONFIG_RESET_VEC_LOC>;
|
|
|
|
};
|
2019-05-02 16:52:19 +00:00
|
|
|
#elif defined(CONFIG_SPL)
|
2019-05-02 16:52:21 +00:00
|
|
|
x86-start16-spl {
|
|
|
|
offset = <CONFIG_SYS_X86_START16>;
|
|
|
|
};
|
2019-08-24 13:22:49 +00:00
|
|
|
x86-reset16-spl {
|
|
|
|
offset = <CONFIG_RESET_VEC_LOC>;
|
|
|
|
};
|
2017-01-16 14:04:23 +00:00
|
|
|
#else
|
2019-05-02 16:52:21 +00:00
|
|
|
x86-start16 {
|
|
|
|
offset = <CONFIG_SYS_X86_START16>;
|
|
|
|
};
|
2019-08-24 13:22:49 +00:00
|
|
|
x86-reset16 {
|
|
|
|
offset = <CONFIG_RESET_VEC_LOC>;
|
|
|
|
};
|
2017-01-16 14:04:23 +00:00
|
|
|
#endif
|
2019-12-07 04:42:31 +00:00
|
|
|
image-header {
|
|
|
|
location = "end";
|
|
|
|
};
|
2016-11-26 03:16:02 +00:00
|
|
|
};
|
|
|
|
#endif
|