summaryrefslogtreecommitdiffstats
path: root/common/image.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-30 16:55:26 -0600
committerSimon Glass <sjg@chromium.org>2015-09-02 21:28:23 -0600
commit10b84fe1b59b4f8b485057b911f2d5bdd9b1c9a4 (patch)
treeae30e02224a612965867418294bad627459c0c93 /common/image.c
parentf9a3c278b98a17eddbf0ad903689cce47e3e6f47 (diff)
downloadblackbird-obmc-uboot-10b84fe1b59b4f8b485057b911f2d5bdd9b1c9a4.tar.gz
blackbird-obmc-uboot-10b84fe1b59b4f8b485057b911f2d5bdd9b1c9a4.zip
rockchip: Add support for the SPI image
The Rockchip boot ROM requires a particular file format for booting from SPI. It consists of a 512-byte header encoded with RC4, some padding and then up to 32KB of executable code in 2KB blocks, separated by 2KB empty blocks. Add support to mkimage so that an SPL image (u-boot-spl-dtb.bin) can be converted to this format. This allows booting from SPI flash on supported machines. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/image.c')
-rw-r--r--common/image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/image.c b/common/image.c
index 2cdc728e22..1325e07953 100644
--- a/common/image.c
+++ b/common/image.c
@@ -157,6 +157,7 @@ static const table_entry_t uimage_type[] = {
{ IH_TYPE_LPC32XXIMAGE, "lpc32xximage", "LPC32XX Boot Image", },
{ IH_TYPE_RKIMAGE, "rkimage", "Rockchip Boot Image" },
{ IH_TYPE_RKSD, "rksd", "Rockchip SD Boot Image" },
+ { IH_TYPE_RKSPI, "rkspi", "Rockchip SPI Boot Image" },
{ -1, "", "", },
};
OpenPOWER on IntegriCloud