blob: c89005ff4c973315a57c4ea101b722fbe04a99dc [file] [log] [blame]
Sekhar Noribb018cf2016-11-25 14:25:54 +05301/*
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
Semen Protsenko9a5a5b52017-06-13 18:15:58 +03009#ifndef __TI_DFU_H
10#define __TI_DFU_H
11
Sekhar Noribb018cf2016-11-25 14:25:54 +053012#define DFU_ALT_INFO_MMC \
13 "dfu_alt_info_mmc=" \
14 "boot part 0 1;" \
15 "rootfs part 0 2;" \
16 "MLO fat 0 1;" \
17 "MLO.raw raw 0x100 0x100;" \
Jean-Jacques Hiblota0900532017-05-24 12:08:27 +020018 "u-boot.img.raw raw 0x300 0x1000;" \
19 "u-env.raw raw 0x1300 0x200;" \
20 "spl-os-args.raw raw 0x1500 0x200;" \
21 "spl-os-image.raw raw 0x1700 0x6900;" \
Sekhar Noribb018cf2016-11-25 14:25:54 +053022 "spl-os-args fat 0 1;" \
23 "spl-os-image fat 0 1;" \
24 "u-boot.img fat 0 1;" \
25 "uEnv.txt fat 0 1\0"
26
27#define DFU_ALT_INFO_EMMC \
28 "dfu_alt_info_emmc=" \
29 "rawemmc raw 0 3751936;" \
30 "boot part 1 1;" \
31 "rootfs part 1 2;" \
32 "MLO fat 1 1;" \
33 "MLO.raw raw 0x100 0x100;" \
34 "u-boot.img.raw raw 0x300 0x1000;" \
Jean-Jacques Hiblota0900532017-05-24 12:08:27 +020035 "u-env.raw raw 0x1300 0x200;" \
36 "spl-os-args.raw raw 0x1500 0x200;" \
37 "spl-os-image.raw raw 0x1700 0x6900;" \
Sekhar Noribb018cf2016-11-25 14:25:54 +053038 "spl-os-args fat 1 1;" \
39 "spl-os-image fat 1 1;" \
40 "u-boot.img fat 1 1;" \
41 "uEnv.txt fat 1 1\0"
42
43#ifdef CONFIG_NAND
44#define DFU_ALT_INFO_NAND \
45 "dfu_alt_info_nand=" \
46 "SPL part 0 1;" \
47 "SPL.backup1 part 0 2;" \
48 "SPL.backup2 part 0 3;" \
49 "SPL.backup3 part 0 4;" \
50 "u-boot part 0 5;" \
51 "u-boot-spl-os part 0 6;" \
52 "kernel part 0 8;" \
53 "rootfs part 0 9\0"
54#else
55#define DFU_ALT_INFO_NAND ""
56#endif
57
58#define DFU_ALT_INFO_RAM \
59 "dfu_alt_info_ram=" \
60 "kernel ram 0x80200000 0x4000000;" \
61 "fdt ram 0x80f80000 0x80000;" \
62 "ramdisk ram 0x81000000 0x4000000\0"
63
64#define DFU_ALT_INFO_QSPI_XIP \
65 "dfu_alt_info_qspi=" \
66 "u-boot.bin raw 0x0 0x080000;" \
67 "u-boot.backup raw 0x080000 0x080000;" \
68 "u-boot-spl-os raw 0x100000 0x010000;" \
69 "u-boot-env raw 0x110000 0x010000;" \
70 "u-boot-env.backup raw 0x120000 0x010000;" \
71 "kernel raw 0x130000 0x800000\0"
72
73#define DFU_ALT_INFO_QSPI \
74 "dfu_alt_info_qspi=" \
75 "MLO raw 0x0 0x040000;" \
76 "u-boot.img raw 0x040000 0x0100000;" \
77 "u-boot-spl-os raw 0x140000 0x080000;" \
78 "u-boot-env raw 0x1C0000 0x010000;" \
79 "u-boot-env.backup raw 0x1D0000 0x010000;" \
80 "kernel raw 0x1E0000 0x800000\0"
Semen Protsenko9a5a5b52017-06-13 18:15:58 +030081
82#endif /* __TI_DFU_H */