1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com
5 * Environment variable definitions for DFU on TI boards.
11 #define DFU_ALT_INFO_MMC \
16 "MLO.raw raw 0x100 0x100;" \
17 "u-boot.img.raw raw 0x300 0x1000;" \
18 "u-env.raw raw 0x1300 0x200;" \
19 "spl-os-args.raw raw 0x1500 0x200;" \
20 "spl-os-image.raw raw 0x1700 0x6900;" \
21 "spl-os-args fat 0 1;" \
22 "spl-os-image fat 0 1;" \
23 "u-boot.img fat 0 1;" \
26 #define DFU_ALT_INFO_EMMC \
27 "dfu_alt_info_emmc=" \
28 "rawemmc raw 0 3751936;" \
32 "MLO.raw raw 0x100 0x100;" \
33 "u-boot.img.raw raw 0x300 0x1000;" \
34 "u-env.raw raw 0x1300 0x200;" \
35 "spl-os-args.raw raw 0x1500 0x200;" \
36 "spl-os-image.raw raw 0x1700 0x6900;" \
37 "spl-os-args fat 1 1;" \
38 "spl-os-image fat 1 1;" \
39 "u-boot.img fat 1 1;" \
43 #define DFU_ALT_INFO_NAND \
44 "dfu_alt_info_nand=" \
46 "SPL.backup1 part 0 2;" \
47 "SPL.backup2 part 0 3;" \
48 "SPL.backup3 part 0 4;" \
50 "u-boot-spl-os part 0 6;" \
54 #define DFU_ALT_INFO_NAND ""
57 #define DFU_ALT_INFO_RAM \
59 "kernel ram 0x80200000 0x4000000;" \
60 "fdt ram 0x80f80000 0x80000;" \
61 "ramdisk ram 0x81000000 0x4000000\0"
63 #define DFU_ALT_INFO_QSPI_XIP \
64 "dfu_alt_info_qspi=" \
65 "u-boot.bin raw 0x0 0x080000;" \
66 "u-boot.backup raw 0x080000 0x080000;" \
67 "u-boot-spl-os raw 0x100000 0x010000;" \
68 "u-boot-env raw 0x110000 0x010000;" \
69 "u-boot-env.backup raw 0x120000 0x010000;" \
70 "kernel raw 0x130000 0x800000\0"
72 #define DFU_ALT_INFO_QSPI \
73 "dfu_alt_info_qspi=" \
74 "MLO raw 0x0 0x040000;" \
75 "u-boot.img raw 0x040000 0x0100000;" \
76 "u-boot-spl-os raw 0x140000 0x080000;" \
77 "u-boot-env raw 0x1C0000 0x010000;" \
78 "u-boot-env.backup raw 0x1D0000 0x010000;" \
79 "kernel raw 0x1E0000 0x800000\0"
81 #endif /* __TI_DFU_H */