import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / include / mach / partition_define.h
1 #ifndef __PARTITION_DEFINE_H__
2 #define __PARTITION_DEFINE_H__
3
4
5
6
7
8 #ifndef CONFIG_MTK_EMMC_SUPPORT
9 extern int get_part_num_nand();
10
11 #define PART_NUM get_part_num_nand()
12
13 #ifndef RAND_START_ADDR
14 #define RAND_START_ADDR 1024
15 #endif
16
17 #else
18 extern int PART_NUM;
19 #endif
20
21 #define PART_MAX_COUNT 40
22
23 #define WRITE_SIZE_Byte 512
24 typedef enum {
25 EMMC = 1,
26 NAND = 2,
27 } dev_type;
28
29 typedef enum {
30 EMMC_PART_UNKNOWN=0
31 ,EMMC_PART_BOOT1
32 ,EMMC_PART_BOOT2
33 ,EMMC_PART_RPMB
34 ,EMMC_PART_GP1
35 ,EMMC_PART_GP2
36 ,EMMC_PART_GP3
37 ,EMMC_PART_GP4
38 ,EMMC_PART_USER
39 ,EMMC_PART_END
40 } Region;
41
42 struct excel_info{
43 char * name;
44 unsigned long long size;
45 unsigned long long start_address;
46 dev_type type ;
47 unsigned int partition_idx;
48 Region region;
49 };
50
51 extern struct excel_info PartInfo[PART_MAX_COUNT];
52
53 #endif