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-05-02 16:52:21 +00:00
|
|
|
u-boot-tpl-with-ucode-ptr {
|
|
|
|
offset = <CONFIG_TPL_TEXT_BASE>;
|
|
|
|
};
|
|
|
|
u-boot-tpl-dtb {
|
|
|
|
};
|
|
|
|
u-boot-spl {
|
|
|
|
offset = <CONFIG_SPL_TEXT_BASE>;
|
|
|
|
};
|
|
|
|
u-boot-spl-dtb {
|
|
|
|
};
|
|
|
|
u-boot {
|
|
|
|
offset = <CONFIG_SYS_TEXT_BASE>;
|
|
|
|
};
|
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 {
|
|
|
|
offset = <CONFIG_SPL_TEXT_BASE>;
|
|
|
|
};
|
|
|
|
u-boot-dtb-with-ucode2 {
|
|
|
|
type = "u-boot-dtb-with-ucode";
|
|
|
|
};
|
|
|
|
u-boot {
|
2019-05-02 16:52:19 +00:00
|
|
|
/*
|
|
|
|
* TODO(sjg@chromium.org):
|
|
|
|
* Normally we use CONFIG_SYS_TEXT_BASE as the flash offset. But
|
|
|
|
* for boards with textbase in SDRAM we cannot do this. Just use
|
|
|
|
* an assumed-valid value (1MB before the end of flash) here so
|
|
|
|
* that we can actually build an image for coreboot, etc.
|
|
|
|
* We need a better solution, perhaps a separate Kconfig.
|
|
|
|
*/
|
|
|
|
#if CONFIG_SYS_TEXT_BASE == 0x1110000
|
2019-05-02 16:52:21 +00:00
|
|
|
offset = <0xfff00000>;
|
2019-05-02 16:52:19 +00:00
|
|
|
#else
|
2019-05-02 16:52:21 +00:00
|
|
|
offset = <CONFIG_SYS_TEXT_BASE>;
|
2019-05-02 16:52:19 +00:00
|
|
|
#endif
|
2019-05-02 16:52:21 +00:00
|
|
|
};
|
2017-01-16 14:04:23 +00:00
|
|
|
#else
|
2019-05-02 16:52:21 +00:00
|
|
|
u-boot-with-ucode-ptr {
|
|
|
|
offset = <CONFIG_SYS_TEXT_BASE>;
|
|
|
|
};
|
2017-01-16 14:04:23 +00:00
|
|
|
#endif
|
2019-05-02 16:52:21 +00:00
|
|
|
u-boot-dtb-with-ucode {
|
|
|
|
};
|
|
|
|
u-boot-ucode {
|
|
|
|
align = <16>;
|
|
|
|
};
|
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
|
|
|
|
#ifdef CONFIG_HAVE_FSP
|
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
|
|
|
|
#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-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>;
|
|
|
|
};
|
2017-01-16 14:04:23 +00:00
|
|
|
#else
|
2019-05-02 16:52:21 +00:00
|
|
|
x86-start16 {
|
|
|
|
offset = <CONFIG_SYS_X86_START16>;
|
|
|
|
};
|
2017-01-16 14:04:23 +00:00
|
|
|
#endif
|
2016-11-26 03:16:02 +00:00
|
|
|
};
|
|
|
|
#endif
|