xref: /openbmc/u-boot/arch/arm/dts/sunxi-u-boot.dtsi (revision cf0bcd7d)
1#include <config.h>
2
3/*
4 * This is the maximum size the U-Boot binary can be, which is basically
5 * the start of the environment, minus the start of the U-Boot binary in
6 * the MMC. This makes the assumption that the MMC is using 512-bytes
7 * blocks, but devices using something other than that remains to be
8 * seen.
9 */
10#define UBOOT_MMC_MAX_SIZE	(CONFIG_ENV_OFFSET - (CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512))
11
12/ {
13	binman {
14		filename = "u-boot-sunxi-with-spl.bin";
15		pad-byte = <0xff>;
16		blob {
17			filename = "spl/sunxi-spl.bin";
18		};
19		u-boot-img {
20#ifdef CONFIG_MMC
21			size = <UBOOT_MMC_MAX_SIZE>;
22#endif
23			pos = <CONFIG_SPL_PAD_TO>;
24		};
25	};
26};
27