samsung:misc: set_board_info: set a proper $partitions at boot
[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:  100MiB 2MiB
16  * 2.  ROOT:  3GiB
17  * 3.  DATA:  3GiB
18  * 4.  UMS:   -
19 */
20
21 /* Tizen - partitions definitions */
22 #define PARTS_CSA               "csa-mmc"
23 #define PARTS_BOOT              "boot"
24 #define PARTS_QBOOT             "qboot"
25 #define PARTS_CSC               "csc"
26 #define PARTS_ROOT              "platform"
27 #define PARTS_DATA              "data"
28 #define PARTS_UMS               "ums"
29
30 #define PARTS_ODROID \
31         "This board uses MSDOS partition table."
32
33 #define PARTS_TRATS2 \
34         "uuid_disk=${uuid_gpt_disk};" \
35         "name="PARTS_CSA",start=5MiB,size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \
36         "name="PARTS_BOOT",size=60MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \
37         "name="PARTS_QBOOT",size=100MiB,uuid=${uuid_gpt_"PARTS_QBOOT"};" \
38         "name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \
39         "name="PARTS_ROOT",size=1536MiB,uuid=${uuid_gpt_"PARTS_ROOT"};" \
40         "name="PARTS_DATA",size=3000MiB,uuid=${uuid_gpt_"PARTS_DATA"};" \
41         "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
42
43 #define DFU_ALT_SYSTEM_TRATS2 \
44         "uImage ext4 0 2;" \
45         "zImage ext4 0 2;" \
46         "Image.itb ext4 0 2;" \
47         "uImage ext4 0 2;" \
48         "modem.bin ext4 0 2;" \
49         "exynos4412-trats2.dtb ext4 0 2;" \
50         ""PARTS_CSA" part 0 1;" \
51         ""PARTS_BOOT" part 0 2;" \
52         ""PARTS_QBOOT" part 0 3;" \
53         ""PARTS_CSC" part 0 4;" \
54         ""PARTS_ROOT" part 0 5;" \
55         ""PARTS_DATA" part 0 6;" \
56         ""PARTS_UMS" part 0 7;" \
57         "params.bin raw 2560 8\0"
58
59 #define DFU_ALT_SYSTEM_ODROID \
60         "uImage fat 0 1;" \
61         "zImage fat 0 1;" \
62         "Image.itb fat 0 1;" \
63         "exynos4412-odroidu3.dtb fat 0 1;" \
64         "exynos4412-odroidx2.dtb fat 0 1;" \
65         ""PARTS_BOOT" part 0 1;" \
66         ""PARTS_ROOT" part 0 2;" \
67         ""PARTS_DATA" part 0 3;" \
68         ""PARTS_UMS" part 0 4;" \
69         "params.bin raw 2560 8\0"
70
71 #define DFU_ALT_BOOT_EMMC_TRATS2 \
72         "u-boot raw 0x80 0x800\0"
73
74 #define DFU_ALT_BOOT_SD_TRATS2 \
75         "This boot mode is not used\0"
76
77 #define DFU_ALT_BOOT_EMMC_ODROID \
78         "u-boot raw 0x3e 0x800 mmcpart 1;" \
79         "bl1 raw 0x0 0x1e mmcpart 1;" \
80         "bl2 raw 0x1e 0x1d mmcpart 1;" \
81         "tzsw raw 0x83e 0x138 mmcpart 1\0"
82
83 #define DFU_ALT_BOOT_SD_ODROID \
84         "u-boot raw 0x3f 0x800;" \
85         "bl1 raw 0x1 0x1e;" \
86         "bl2 raw 0x1f 0x1d;" \
87         "tzsw raw 0x83f 0x138\0"
88
89 #endif /* _TIZEN_ENVIRONMENT_H_ */