Merge tag 'v3.10.55' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / include / mach / mtk_boot_share_page.h
1 #ifndef __MTK_BOOT_SHARE_PAGE_H__
2 #define __MTK_BOOT_SHARE_PAGE_H__
3
4 #define BOOT_SHARE_BASE (0xC0002000) /* address in linux kernel */
5 #define BOOT_SHARE_SIZE (0x1000) /* page size 4K bytes */
6
7 #define BOOT_SHARE_MAGIC (0x4545544D) /* MTEE */
8
9 /* Memory map & defines for boot share page */
10 /*
11 Note:
12 1. BOOT_SHARE_XXXXX_OFST is the address offset related to BOOT_SHARE_BASE
13 */
14 #define BOOT_SHARE_MAGIC1_OFST (0)
15 #define BOOT_SHARE_MAGIC1_SIZE (4)
16
17 #define BOOT_SHARE_DEV_INFO_OFST (BOOT_SHARE_MAGIC1_OFST+BOOT_SHARE_MAGIC1_SIZE)
18 #define BOOT_SHARE_DEV_INFO_SIZE (16)
19
20 #define BOOT_SHARE_HOTPLUG_OFST (1008) /* 16 bytes for hotplug/jump-reg */
21 #define BOOT_SHARE_HOTPLUG_SIZE (32)
22
23 #define BOOT_SHARE_MAGIC2_OFST (4092)
24 #define BOOT_SHARE_MAGIC2_SIZE (4)
25
26 #endif /* __MTK_BOOT_SHARE_PAGE_H__ */