summaryrefslogtreecommitdiffstats
path: root/common/image.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-19 21:11:24 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 09:03:06 -0600
commit90268b878bd830f2fc9b1e225d96009efe331cd1 (patch)
tree680cddba7c37d284971ff23d0b4b66611b4cf019 /common/image.c
parent381197788dbf8bb94f96ec9e03b6b81618187260 (diff)
downloadblackbird-obmc-uboot-90268b878bd830f2fc9b1e225d96009efe331cd1.tar.gz
blackbird-obmc-uboot-90268b878bd830f2fc9b1e225d96009efe331cd1.zip
x86: Support loading kernel setup from a FIT
Add a new setup@ section to the FIT which can be used to provide a setup binary for booting Linux on x86. This makes it possible to boot x86 from a FIT. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/image.c b/common/image.c
index 085771c763..640e83b7bd 100644
--- a/common/image.c
+++ b/common/image.c
@@ -143,6 +143,7 @@ static const table_entry_t uimage_type[] = {
{ IH_TYPE_UBLIMAGE, "ublimage", "Davinci UBL image",},
{ IH_TYPE_MXSIMAGE, "mxsimage", "Freescale MXS Boot Image",},
{ IH_TYPE_ATMELIMAGE, "atmelimage", "ATMEL ROM-Boot Image",},
+ { IH_TYPE_X86_SETUP, "x86_setup", "x86 setup.bin", },
{ -1, "", "", },
};
@@ -1136,6 +1137,16 @@ error:
}
#endif /* CONFIG_SYS_BOOT_RAMDISK_HIGH */
+int boot_get_setup(bootm_headers_t *images, uint8_t arch,
+ ulong *setup_start, ulong *setup_len)
+{
+#if defined(CONFIG_FIT)
+ return boot_get_setup_fit(images, arch, setup_start, setup_len);
+#else
+ return -ENOENT;
+#endif
+}
+
#ifdef CONFIG_SYS_BOOT_GET_CMDLINE
/**
* boot_get_cmdline - allocate and initialize kernel cmdline
OpenPOWER on IntegriCloud