Skip to content
Snippets Groups Projects
Commit 9acebe8a authored by Olliver Schinagl's avatar Olliver Schinagl Committed by Hans de Goede
Browse files

sunxi: Add missing boot_media fields in the SPL header


Commit b19236fd ("sunxi: Increase SPL header size to 64 bytes to avoid
code corruption") Added defines for MMC0 and SPI as boot identification.
After verifying on an OLinuXino Lime2 with NAND and eMMC, the expected
values have been confirmed and added to spl.h

Signed-off-by: default avatarOlliver Schinagl <oliver@schinagl.nl>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent cd8b35d2
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,8 @@
/* The low 8-bits of the 'boot_media' field in the SPL header */
#define SUNXI_BOOTED_FROM_MMC0 0
#define SUNXI_BOOTED_FROM_NAND 1
#define SUNXI_BOOTED_FROM_MMC2 2
#define SUNXI_BOOTED_FROM_SPI 3
/* boot head definition from sun4i boot code */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment