]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/environment/ti/dfu.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / include / environment / ti / dfu.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
f843770a
SN
2/*
3 * Copyright (C) 2016 Texas Instruments Incorporated - http://www.ti.com
4 *
5 * Environment variable definitions for DFU on TI boards.
f843770a
SN
6 */
7
19de2deb
SP
8#ifndef __TI_DFU_H
9#define __TI_DFU_H
10
f843770a
SN
11#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;" \
7a53a1a8
JJH
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;" \
f843770a
SN
21 "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;" \
7a53a1a8
JJH
34 "u-env.raw raw 0x1300 0x200;" \
35 "spl-os-args.raw raw 0x1500 0x200;" \
36 "spl-os-image.raw raw 0x1700 0x6900;" \
f843770a
SN
37 "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"
19de2deb
SP
80
81#endif /* __TI_DFU_H */