• Simon Glass's avatar
    rockchip: Add support for the SPI image · 10b84fe1
    Simon Glass authored
    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: default avatarSimon Glass <sjg@chromium.org>
    10b84fe1
rkspi.c 2.66 KB