From: Olliver Schinagl Date: Mon, 13 Jun 2016 16:13:07 +0000 (+0200) Subject: sunxi: Add missing boot_media fields in the SPL header X-Git-Tag: v2016.07~16^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9acebe8a18788c5a0d7b154e812cf2d9dfbab68f;p=u-boot sunxi: Add missing boot_media fields in the SPL header Commit b19236fd1 ("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: Olliver Schinagl Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/arch/arm/include/asm/arch-sunxi/spl.h b/arch/arm/include/asm/arch-sunxi/spl.h index a0f33b05b5..ec73379735 100644 --- a/arch/arm/include/asm/arch-sunxi/spl.h +++ b/arch/arm/include/asm/arch-sunxi/spl.h @@ -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 */