1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2016 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
24 #ifdef CONFIG_ROM_SIZE
26 filename = "u-boot.rom";
30 size = <CONFIG_ROM_SIZE>;
31 #ifdef CONFIG_HAVE_INTEL_ME
33 filename = CONFIG_FLASH_DESCRIPTOR_FILE;
36 filename = CONFIG_INTEL_ME_FILE;
40 u-boot-tpl-with-ucode-ptr {
41 offset = <CONFIG_TPL_TEXT_BASE>;
46 offset = <CONFIG_SPL_TEXT_BASE>;
51 offset = <CONFIG_SYS_TEXT_BASE>;
53 #elif defined(CONFIG_SPL)
54 u-boot-spl-with-ucode-ptr {
55 offset = <CONFIG_SPL_TEXT_BASE>;
58 u-boot-dtb-with-ucode2 {
59 type = "u-boot-dtb-with-ucode";
63 * TODO(sjg@chromium.org):
64 * Normally we use CONFIG_SYS_TEXT_BASE as the flash offset. But
65 * for boards with textbase in SDRAM we cannot do this. Just use
66 * an assumed-valid value (1MB before the end of flash) here so
67 * that we can actually build an image for coreboot, etc.
68 * We need a better solution, perhaps a separate Kconfig.
70 #if CONFIG_SYS_TEXT_BASE == 0x1110000
71 offset = <0xfff00000>;
73 offset = <CONFIG_SYS_TEXT_BASE>;
77 u-boot-with-ucode-ptr {
78 offset = <CONFIG_SYS_TEXT_BASE>;
81 u-boot-dtb-with-ucode {
86 #ifdef CONFIG_HAVE_MRC
88 offset = <CONFIG_X86_MRC_ADDR>;
91 #ifdef CONFIG_HAVE_FSP
93 filename = CONFIG_FSP_FILE;
94 offset = <CONFIG_FSP_ADDR>;
97 #ifdef CONFIG_HAVE_CMC
99 filename = CONFIG_CMC_FILE;
100 offset = <CONFIG_CMC_ADDR>;
103 #ifdef CONFIG_HAVE_VGA_BIOS
105 filename = CONFIG_VGA_BIOS_FILE;
106 offset = <CONFIG_VGA_BIOS_ADDR>;
109 #ifdef CONFIG_HAVE_VBT
111 filename = CONFIG_VBT_FILE;
112 offset = <CONFIG_VBT_ADDR>;
115 #ifdef CONFIG_HAVE_REFCODE
117 offset = <CONFIG_X86_REFCODE_ADDR>;
122 offset = <CONFIG_SYS_X86_START16>;
124 #elif defined(CONFIG_SPL)
126 offset = <CONFIG_SYS_X86_START16>;
130 offset = <CONFIG_SYS_X86_START16>;