Merge tag 'v3.10.55' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / kr076_nand / core / board-custom.h
1 #ifndef __ARCH_ARM_MACH_MT6575_CUSTOM_BOARD_H
2 #define __ARCH_ARM_MACH_MT6575_CUSTOM_BOARD_H
3
4 #include <generated/autoconf.h>
5
6 /*=======================================================================*/
7 /* MT6575 SD */
8 /*=======================================================================*/
9 //#define CFG_DEV_MSDC0
10 #define CFG_DEV_MSDC1
11 //#define CFG_DEV_MSDC2
12 //#define CFG_DEV_MSDC3
13 //#define CFG_DEV_MSDC4
14 #define CFG_DEV_MSDC1_CORRECTION //[PLATFORM]Added by SZTCT.leo.guo 04.18.2015, Fixed TF card hotplug issue.
15 #if defined(CONFIG_MTK_COMBO) || defined(CONFIG_MTK_COMBO_MODULE)
16 /*
17 SDIO slot index number used by connectivity combo chip:
18 0: invalid (used by memory card)
19 1: MSDC1
20 2: MSDC2
21 */
22 #define CONFIG_MTK_WCN_CMB_SDIO_SLOT (3) /* MSDC3 */
23 #else
24 #undef CONFIG_MTK_WCN_CMB_SDIO_SLOT
25 #endif
26 /*For MT6582 platform we disable COMBO SDIO SLOT defination*/
27 #undef CONFIG_MTK_WCN_CMB_SDIO_SLOT
28
29 #if 0 /* FIXME. */
30 /*=======================================================================*/
31 /* MT6575 UART */
32 /*=======================================================================*/
33 #define CFG_DEV_UART1
34 #define CFG_DEV_UART2
35 #define CFG_DEV_UART3
36 #define CFG_DEV_UART4
37
38 #define CFG_UART_PORTS (4)
39
40 /*=======================================================================*/
41 /* MT6575 I2C */
42 /*=======================================================================*/
43 #define CFG_DEV_I2C
44 //#define CFG_I2C_HIGH_SPEED_MODE
45 //#define CFG_I2C_DMA_MODE
46
47 /*=======================================================================*/
48 /* MT6575 ADB */
49 /*=======================================================================*/
50 #define ADB_SERIAL "E1K"
51
52 #endif
53
54 /*=======================================================================*/
55 /* MT6575 NAND FLASH */
56 /*=======================================================================*/
57 #if 0
58 #define RAMDOM_READ 1<<0
59 #define CACHE_READ 1<<1
60 /*******************************************************************************
61 * NFI & ECC Configuration
62 *******************************************************************************/
63 typedef struct
64 {
65 u16 id; //deviceid+menuid
66 u8 addr_cycle;
67 u8 iowidth;
68 u16 totalsize;
69 u16 blocksize;
70 u16 pagesize;
71 u32 timmingsetting;
72 char devciename[14];
73 u32 advancedmode; //
74 }flashdev_info,*pflashdev_info;
75
76 static const flashdev_info g_FlashTable[]={
77 //micro
78 {0xAA2C, 5, 8, 256, 128, 2048, 0x01113, "MT29F2G08ABD", 0},
79 {0xB12C, 4, 16, 128, 128, 2048, 0x01113, "MT29F1G16ABC", 0},
80 {0xBA2C, 5, 16, 256, 128, 2048, 0x01113, "MT29F2G16ABD", 0},
81 {0xAC2C, 5, 8, 512, 128, 2048, 0x01113, "MT29F4G08ABC", 0},
82 {0xBC2C, 5, 16, 512, 128, 2048, 0x44333, "MT29F4G16ABD", 0},
83 //samsung
84 {0xBAEC, 5, 16, 256, 128, 2048, 0x01123, "K522H1GACE", 0},
85 {0xBCEC, 5, 16, 512, 128, 2048, 0x01123, "K524G2GACB", 0},
86 {0xDAEC, 5, 8, 256, 128, 2048, 0x33222, "K9F2G08U0A", RAMDOM_READ},
87 {0xF1EC, 4, 8, 128, 128, 2048, 0x01123, "K9F1G08U0A", RAMDOM_READ},
88 {0xAAEC, 5, 8, 256, 128, 2048, 0x01123, "K9F2G08R0A", 0},
89 //hynix
90 {0xD3AD, 5, 8, 1024, 256, 2048, 0x44333, "HY27UT088G2A", 0},
91 {0xA1AD, 4, 8, 128, 128, 2048, 0x01123, "H8BCSOPJOMCP", 0},
92 {0xBCAD, 5, 16, 512, 128, 2048, 0x01123, "H8BCSOUNOMCR", 0},
93 {0xBAAD, 5, 16, 256, 128, 2048, 0x01123, "H8BCSOSNOMCR", 0},
94 //toshiba
95 {0x9598, 5, 16, 816, 128, 2048, 0x00113, "TY9C000000CMG", 0},
96 {0x9498, 5, 16, 375, 128, 2048, 0x00113, "TY9C000000CMG", 0},
97 {0xC198, 4, 16, 128, 128, 2048, 0x44333, "TC58NWGOS8C", 0},
98 {0xBA98, 5, 16, 256, 128, 2048, 0x02113, "TC58NYG1S8C", 0},
99 //st-micro
100 {0xBA20, 5, 16, 256, 128, 2048, 0x01123, "ND02CGR4B2DI6", 0},
101
102 // elpida
103 {0xBC20, 5, 16, 512, 128, 2048, 0x01123, "04GR4B2DDI6", 0},
104 {0x0000, 0, 0, 0, 0, 0, 0, "xxxxxxxxxxxxx", 0}
105 };
106 #endif
107
108
109 #define NFI_DEFAULT_ACCESS_TIMING (0x44333)
110
111 //uboot only support 1 cs
112 #define NFI_CS_NUM (2)
113 #define NFI_DEFAULT_CS (0)
114
115 #define USE_AHB_MODE (1)
116
117 #define PLATFORM_EVB (1)
118
119 #endif /* __ARCH_ARM_MACH_MT6575_CUSTOM_BOARD_H */
120