]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arm/dts/sunxi-u-boot.dtsi
Merge git://git.denx.de/u-boot-imx
[people/ms/u-boot.git] / arch / arm / dts / sunxi-u-boot.dtsi
CommitLineData
61b994a3
SG
1#include <config.h>
2
819f1e08
MR
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
61b994a3
SG
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 {
819f1e08
MR
20#ifdef CONFIG_MMC
21 size = <UBOOT_MMC_MAX_SIZE>;
22#endif
61b994a3
SG
23 pos = <CONFIG_SPL_PAD_TO>;
24 };
25 };
26};