blob: 9f7ea03226f7449d4ce641b088bf3a788ad8a6e7 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Sekhar Norif8437702016-11-25 14:25:54 +05302/*
3 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com
4 *
5 * Environment variable definitions for DFU on TI boards.
Sekhar Norif8437702016-11-25 14:25:54 +05306 */
7
Semen Protsenko19de2de2017-06-13 18:15:58 +03008#ifndef __TI_DFU_H
9#define __TI_DFU_H
10
Sekhar Norif8437702016-11-25 14:25:54 +053011#define DFU_ALT_INFO_MMC \
12 "dfu_alt_info_mmc=" \
13 "boot part 0 1;" \
14 "rootfs part 0 2;" \
15 "MLO fat 0 1;" \
16 "MLO.raw raw 0x100 0x100;" \
Jean-Jacques Hiblot7a53a1a2017-05-24 12:08:27 +020017 "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;" \
Sekhar Norif8437702016-11-25 14:25:54 +053021 "spl-os-args fat 0 1;" \
22 "spl-os-image fat 0 1;" \
23 "u-boot.img fat 0 1;" \
24 "uEnv.txt fat 0 1\0"
25
26#define DFU_ALT_INFO_EMMC \
27 "dfu_alt_info_emmc=" \
28 "rawemmc raw 0 3751936;" \
29 "boot part 1 1;" \
30 "rootfs part 1 2;" \
31 "MLO fat 1 1;" \
32 "MLO.raw raw 0x100 0x100;" \
33 "u-boot.img.raw raw 0x300 0x1000;" \
Jean-Jacques Hiblot7a53a1a2017-05-24 12:08:27 +020034 "u-env.raw raw 0x1300 0x200;" \
35 "spl-os-args.raw raw 0x1500 0x200;" \
36 "spl-os-image.raw raw 0x1700 0x6900;" \
Sekhar Norif8437702016-11-25 14:25:54 +053037 "spl-os-args fat 1 1;" \
38 "spl-os-image fat 1 1;" \
39 "u-boot.img fat 1 1;" \
40 "uEnv.txt fat 1 1\0"
41
42#ifdef CONFIG_NAND
43#define DFU_ALT_INFO_NAND \
44 "dfu_alt_info_nand=" \
45 "SPL part 0 1;" \
46 "SPL.backup1 part 0 2;" \
47 "SPL.backup2 part 0 3;" \
48 "SPL.backup3 part 0 4;" \
49 "u-boot part 0 5;" \
50 "u-boot-spl-os part 0 6;" \
51 "kernel part 0 8;" \
52 "rootfs part 0 9\0"
53#else
54#define DFU_ALT_INFO_NAND ""
55#endif
56
57#define DFU_ALT_INFO_RAM \
58 "dfu_alt_info_ram=" \
59 "kernel ram 0x80200000 0x4000000;" \
60 "fdt ram 0x80f80000 0x80000;" \
61 "ramdisk ram 0x81000000 0x4000000\0"
62
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"
71
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"
Semen Protsenko19de2de2017-06-13 18:15:58 +030080
81#endif /* __TI_DFU_H */