Commit c8ada384 authored by Icenowy Zheng's avatar Icenowy Zheng
Browse files

fel: enable support for v2 SPL



The version 2 of SPL added the possibility to add a device tree name in
the header, with adding some pad and using a reserved word.

As FEL boot currently doesn't need the device tree name, directly raise
the maximum supported version number to 2.
Signed-off-by: default avatarIcenowy Zheng <icenowy@aosc.io>
parent d9b1d7e7
......@@ -816,7 +816,7 @@ void aw_fel_process_spl_and_uboot(feldev_handle *dev, const char *filename)
*/
#define SPL_SIGNATURE "SPL" /* marks "sunxi" header */
#define SPL_MIN_VERSION 1 /* minimum required version */
#define SPL_MAX_VERSION 1 /* maximum supported version */
#define SPL_MAX_VERSION 2 /* maximum supported version */
bool have_sunxi_spl(feldev_handle *dev, uint32_t spl_addr)
{
uint8_t spl_signature[4];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment