xref: /openbmc/u-boot/include/environment/ti/dfu.h (revision c9af6673)
1 /*
2  * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com
3  *
4  * Environment variable definitions for DFU on TI boards.
5  *
6  * SPDX-License-Identifier:	GPL-2.0+
7  */
8 
9 #define DFU_ALT_INFO_MMC \
10 	"dfu_alt_info_mmc=" \
11 	"boot part 0 1;" \
12 	"rootfs part 0 2;" \
13 	"MLO fat 0 1;" \
14 	"MLO.raw raw 0x100 0x100;" \
15 	"u-boot.img.raw raw 0x300 0x1000;" \
16 	"u-env.raw raw 0x1300 0x200;" \
17 	"spl-os-args.raw raw 0x1500 0x200;" \
18 	"spl-os-image.raw raw 0x1700 0x6900;" \
19 	"spl-os-args fat 0 1;" \
20 	"spl-os-image fat 0 1;" \
21 	"u-boot.img fat 0 1;" \
22 	"uEnv.txt fat 0 1\0"
23 
24 #define DFU_ALT_INFO_EMMC \
25 	"dfu_alt_info_emmc=" \
26 	"rawemmc raw 0 3751936;" \
27 	"boot part 1 1;" \
28 	"rootfs part 1 2;" \
29 	"MLO fat 1 1;" \
30 	"MLO.raw raw 0x100 0x100;" \
31 	"u-boot.img.raw raw 0x300 0x1000;" \
32 	"u-env.raw raw 0x1300 0x200;" \
33 	"spl-os-args.raw raw 0x1500 0x200;" \
34 	"spl-os-image.raw raw 0x1700 0x6900;" \
35 	"spl-os-args fat 1 1;" \
36 	"spl-os-image fat 1 1;" \
37 	"u-boot.img fat 1 1;" \
38 	"uEnv.txt fat 1 1\0"
39 
40 #ifdef CONFIG_NAND
41 #define DFU_ALT_INFO_NAND \
42 	"dfu_alt_info_nand=" \
43 	"SPL part 0 1;" \
44 	"SPL.backup1 part 0 2;" \
45 	"SPL.backup2 part 0 3;" \
46 	"SPL.backup3 part 0 4;" \
47 	"u-boot part 0 5;" \
48 	"u-boot-spl-os part 0 6;" \
49 	"kernel part 0 8;" \
50 	"rootfs part 0 9\0"
51 #else
52 #define DFU_ALT_INFO_NAND ""
53 #endif
54 
55 #define DFU_ALT_INFO_RAM \
56 	"dfu_alt_info_ram=" \
57 	"kernel ram 0x80200000 0x4000000;" \
58 	"fdt ram 0x80f80000 0x80000;" \
59 	"ramdisk ram 0x81000000 0x4000000\0"
60 
61 #define DFU_ALT_INFO_QSPI_XIP \
62 	"dfu_alt_info_qspi=" \
63 	"u-boot.bin raw 0x0 0x080000;" \
64 	"u-boot.backup raw 0x080000 0x080000;" \
65 	"u-boot-spl-os raw 0x100000 0x010000;" \
66 	"u-boot-env raw 0x110000 0x010000;" \
67 	"u-boot-env.backup raw 0x120000 0x010000;" \
68 	"kernel raw 0x130000 0x800000\0"
69 
70 #define DFU_ALT_INFO_QSPI \
71 	"dfu_alt_info_qspi=" \
72 	"MLO raw 0x0 0x040000;" \
73 	"u-boot.img raw 0x040000 0x0100000;" \
74 	"u-boot-spl-os raw 0x140000 0x080000;" \
75 	"u-boot-env raw 0x1C0000 0x010000;" \
76 	"u-boot-env.backup raw 0x1D0000 0x010000;" \
77 	"kernel raw 0x1E0000 0x800000\0"
78