tizen: Update odroid dfu settings for the version upgrade
[platform/kernel/u-boot.git] / include / configs / tizen-environment.h
1 #ifndef _TIZEN_ENVIRONMENT_H_
2 #define _TIZEN_ENVIRONMENT_H_
3
4 /*
5  * Bootable media layout:
6  * dev:    SD   eMMC(part boot)
7  * BL1      1    0
8  * BL2     31   30
9  * UBOOT   63   62
10  * TZSW  2111 2110
11  * ENV   2560 2560(part user)
12  *
13  * MBR Primary partiions:
14  * Num Name    Size  Offset
15  * 1.  BOOT:   32MiB 12MiB
16  * 2.  ROOT:   3GiB
17  * 3.  DATA:   512MiB
18  * 4.  Extd:
19  * 5.  USER:   -
20  * 6.  MODULE: 20MiB
21 */
22
23 /* Tizen - partitions definitions */
24 #define PARTS_CSA               "csa-mmc"
25 #define PARTS_BOOT              "boot"
26 #define PARTS_QBOOT             "qboot"
27 #define PARTS_CSC               "csc"
28 #define PARTS_ROOT              "platform"
29 #define PARTS_DATA              "data"
30 #define PARTS_UMS               "ums"
31
32 #define PARTS_ODROID \
33         "This board uses MSDOS partition table."
34
35 #define PARTS_TRATS2 \
36         "uuid_disk=${uuid_gpt_disk};" \
37         "name="PARTS_CSA",start=5MiB,size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \
38         "name="PARTS_BOOT",size=60MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \
39         "name="PARTS_QBOOT",size=100MiB,uuid=${uuid_gpt_"PARTS_QBOOT"};" \
40         "name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \
41         "name="PARTS_ROOT",size=1536MiB,uuid=${uuid_gpt_"PARTS_ROOT"};" \
42         "name="PARTS_DATA",size=3000MiB,uuid=${uuid_gpt_"PARTS_DATA"};" \
43         "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
44
45 #define DFU_ALT_SYSTEM_TRATS2 \
46         "/uImage ext4 0 2;" \
47         "/zImage ext4 0 2;" \
48         "/Image.itb ext4 0 2;" \
49         "/modem.bin ext4 0 2;" \
50         "/exynos4412-trats2.dtb ext4 0 2;" \
51         ""PARTS_CSA" part 0 1;" \
52         ""PARTS_BOOT" part 0 2;" \
53         ""PARTS_QBOOT" part 0 3;" \
54         ""PARTS_CSC" part 0 4;" \
55         ""PARTS_ROOT" part 0 5;" \
56         ""PARTS_DATA" part 0 6;" \
57         ""PARTS_UMS" part 0 7;" \
58         "params.bin raw 2560 8\0"
59
60 #define DFU_ALT_SYSTEM_ODROID \
61         "uImage fat 0 1;" \
62         "zImage fat 0 1;" \
63         "Image.itb fat 0 1;" \
64         "exynos4412-odroidu3.dtb fat 0 1;" \
65         "exynos4412-odroidx2.dtb fat 0 1;" \
66         ""PARTS_BOOT" part 0 1;" \
67         "rootfs part 0 2;" \
68         "system-data part 0 3;" \
69         "user part 0 5;" \
70         "modules part 0 6;" \
71         "params.bin raw 2560 8\0"
72
73 #define DFU_ALT_BOOT_EMMC_TRATS2 \
74         "u-boot raw 0x80 0x800\0"
75
76 #define DFU_ALT_BOOT_SD_TRATS2 \
77         "This boot mode is not used\0"
78
79 #define DFU_ALT_BOOT_EMMC_ODROID \
80         "u-boot raw 0x3e 0x800 mmcpart 1;" \
81         "bl1 raw 0x0 0x1e mmcpart 1;" \
82         "bl2 raw 0x1e 0x1d mmcpart 1;" \
83         "tzsw raw 0x83e 0x138 mmcpart 1\0"
84
85 #define DFU_ALT_BOOT_SD_ODROID \
86         "u-boot raw 0x3f 0x800;" \
87         "bl1 raw 0x1 0x1e;" \
88         "bl2 raw 0x1f 0x1d;" \
89         "tzsw raw 0x83f 0x138\0"
90
91 #endif /* _TIZEN_ENVIRONMENT_H_ */