u-boot.dtsi 2.7 KB
Newer Older
1
// SPDX-License-Identifier: GPL-2.0+
S
Simon Glass 已提交
2 3 4 5 6 7 8
/*
 * Copyright (C) 2016 Google, Inc
 * Written by Simon Glass <sjg@chromium.org>
 */

#include <config.h>

9
#ifdef CONFIG_CHROMEOS
S
Simon Glass 已提交
10 11
/ {
	binman {
12 13 14 15 16 17 18 19 20 21 22 23 24 25
		multiple-images;
		rom: rom {
		};
	};
};
#else
/ {
	rom: binman {
	};
};
#endif

#ifdef CONFIG_ROM_SIZE
&rom {
S
Simon Glass 已提交
26 27 28 29 30
	filename = "u-boot.rom";
	end-at-4gb;
	sort-by-offset;
	pad-byte = <0xff>;
	size = <CONFIG_ROM_SIZE>;
S
Simon Glass 已提交
31
#ifdef CONFIG_HAVE_INTEL_ME
S
Simon Glass 已提交
32 33 34 35 36 37
	intel-descriptor {
		filename = CONFIG_FLASH_DESCRIPTOR_FILE;
	};
	intel-me {
		filename = CONFIG_INTEL_ME_FILE;
	};
S
Simon Glass 已提交
38
#endif
S
Simon Glass 已提交
39
#ifdef CONFIG_TPL
40
#ifdef CONFIG_HAVE_MICROCODE
S
Simon Glass 已提交
41 42 43 44 45
	u-boot-tpl-with-ucode-ptr {
		offset = <CONFIG_TPL_TEXT_BASE>;
	};
	u-boot-tpl-dtb {
	};
46
#endif
S
Simon Glass 已提交
47 48 49 50 51 52 53 54
	u-boot-spl {
		offset = <CONFIG_SPL_TEXT_BASE>;
	};
	u-boot-spl-dtb {
	};
	u-boot {
		offset = <CONFIG_SYS_TEXT_BASE>;
	};
S
Simon Glass 已提交
55
#elif defined(CONFIG_SPL)
S
Simon Glass 已提交
56 57 58 59 60 61 62
	u-boot-spl-with-ucode-ptr {
		offset = <CONFIG_SPL_TEXT_BASE>;
	};
	u-boot-dtb-with-ucode2 {
		type = "u-boot-dtb-with-ucode";
	};
	u-boot {
S
Simon Glass 已提交
63 64 65 66 67 68 69 70 71
		/*
		 * 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
S
Simon Glass 已提交
72
		offset = <0xfff00000>;
S
Simon Glass 已提交
73
#else
S
Simon Glass 已提交
74
		offset = <CONFIG_SYS_TEXT_BASE>;
S
Simon Glass 已提交
75
#endif
S
Simon Glass 已提交
76
	};
77
#else
S
Simon Glass 已提交
78 79 80
	u-boot-with-ucode-ptr {
		offset = <CONFIG_SYS_TEXT_BASE>;
	};
81
#endif
82
#ifdef CONFIG_HAVE_MICROCODE
S
Simon Glass 已提交
83 84 85 86 87
	u-boot-dtb-with-ucode {
	};
	u-boot-ucode {
		align = <16>;
	};
88 89 90 91
#else
	u-boot-dtb {
	};
#endif
S
Simon Glass 已提交
92 93 94 95 96 97
#ifdef CONFIG_HAVE_X86_FIT
	intel-fit {
	};
	intel-fit-ptr {
	};
#endif
S
Simon Glass 已提交
98
#ifdef CONFIG_HAVE_MRC
S
Simon Glass 已提交
99 100 101
	intel-mrc {
		offset = <CONFIG_X86_MRC_ADDR>;
	};
S
Simon Glass 已提交
102 103
#endif
#ifdef CONFIG_HAVE_FSP
S
Simon Glass 已提交
104 105 106 107
	intel-fsp {
		filename = CONFIG_FSP_FILE;
		offset = <CONFIG_FSP_ADDR>;
	};
S
Simon Glass 已提交
108 109
#endif
#ifdef CONFIG_HAVE_CMC
S
Simon Glass 已提交
110 111 112 113
	intel-cmc {
		filename = CONFIG_CMC_FILE;
		offset = <CONFIG_CMC_ADDR>;
	};
S
Simon Glass 已提交
114 115
#endif
#ifdef CONFIG_HAVE_VGA_BIOS
S
Simon Glass 已提交
116 117 118 119
	intel-vga {
		filename = CONFIG_VGA_BIOS_FILE;
		offset = <CONFIG_VGA_BIOS_ADDR>;
	};
S
Simon Glass 已提交
120
#endif
121
#ifdef CONFIG_HAVE_VBT
S
Simon Glass 已提交
122 123 124 125
	intel-vbt {
		filename = CONFIG_VBT_FILE;
		offset = <CONFIG_VBT_ADDR>;
	};
126
#endif
S
Simon Glass 已提交
127
#ifdef CONFIG_HAVE_REFCODE
S
Simon Glass 已提交
128 129 130
	intel-refcode {
		offset = <CONFIG_X86_REFCODE_ADDR>;
	};
S
Simon Glass 已提交
131
#endif
S
Simon Glass 已提交
132
#ifdef CONFIG_TPL
S
Simon Glass 已提交
133 134 135
	x86-start16-tpl {
		offset = <CONFIG_SYS_X86_START16>;
	};
136 137 138
	x86-reset16-tpl {
		offset = <CONFIG_RESET_VEC_LOC>;
	};
S
Simon Glass 已提交
139
#elif defined(CONFIG_SPL)
S
Simon Glass 已提交
140 141 142
	x86-start16-spl {
		offset = <CONFIG_SYS_X86_START16>;
	};
143 144 145
	x86-reset16-spl {
		offset = <CONFIG_RESET_VEC_LOC>;
	};
146
#else
S
Simon Glass 已提交
147 148 149
	x86-start16 {
		offset = <CONFIG_SYS_X86_START16>;
	};
150 151 152
	x86-reset16 {
		offset = <CONFIG_RESET_VEC_LOC>;
	};
153
#endif
S
Simon Glass 已提交
154 155
};
#endif