tizen 2.4 release
[profile/mobile/platform/kernel/u-boot-tm1.git] / include / configs / sp7720ea.h
1 /*
2  * (C) Copyright 2009 DENX Software Engineering
3  * Author: John Rigby <jrigby@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of
8  * the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
18  * MA 02111-1307 USA
19  */
20
21 #ifndef __CONFIG_H
22 #define __CONFIG_H
23
24 //#define CONFIG_OF_LIBFDT
25 //#ifdef CONFIG_OF_LIBFDT
26 //MACH_TYPE_SC8830=2014
27 //ask for detect it
28 #define DT_PLATFROM_ID 8830
29 #define DT_HARDWARE_ID 1
30 #define DT_SOC_VER     0x20000
31 //#endif
32 //only used in fdl2 .in uart download, the debug infors  from  serial will break the download process.
33 #define CONFIG_FDL2_PRINT        0
34 #define BOOT_NATIVE_LINUX        1
35 #define BOOT_NATIVE_LINUX_MODEM  1
36 #define CONFIG_SILENT_CONSOLE
37 #define CONFIG_GPIOLIB 1
38 //#define NAND_DEBUG
39 //#define DEBUG
40 #define U_BOOT_SPRD_VER 1
41 /*#define SPRD_EVM_TAG_ON 1*/
42 #ifdef SPRD_EVM_TAG_ON
43 #define SPRD_EVM_ADDR_START 0x00026000
44 #define SPRD_EVM_TAG(_x) (*(((unsigned long *)SPRD_EVM_ADDR_START)+_x) = *(volatile unsigned long *)0x87003004)
45 #endif
46 #define CONFIG_L2_OFF                   1
47
48 #define BOOT_DEBUG 1
49
50 #define CONFIG_YAFFS2 1
51
52 #define BOOT_PART "boot"
53 //#define BOOT_PART "kernel"
54 #define RECOVERY_PART "recovery"
55 #define UBIPAC_PART  "ubipac"
56
57 /*
58  * SPREADTRUM BIGPHONE board - SoC Configuration
59  */
60 #define CONFIG_SP8830
61 #define CONFIG_SC8830
62 #define CONFIG_SPX20
63 #define CONFIG_SPX30G
64
65 #define CONFIG_SP7720
66
67 #define CONFIG_SP8830WCN
68 #define CONFIG_ADIE_SC2723
69
70 #define CONFIG_SUPPORT_W
71 #define WDSP_ADR       0x88020000
72 #define WFIXNV_ADR     0x88240000
73 #define WRUNTIMENV_ADR 0x88280000
74 #define WMODEM_ADR     0x88300000
75 #define MODEM_ADR      WMODEM_ADR
76 #define CONFIG_SUPPORT_WIFI
77 #define WCNMODEM_ADR      0x8a808000
78 #define WCNFIXNV_ADR      0x8a800000
79 #define WCNRUNTIMENV_ADR  0x8a820000
80 #define CP0_CODE_COPY_ADR 0x50000000
81 #define CP2_CODE_COPY_ADR 0x50003000
82
83 #define CONFIG_AUTODLOADER
84
85 #define CHIP_ENDIAN_LITTLE
86 #define _LITTLE_ENDIAN 1
87
88 #define CONFIG_RAM1G
89
90 #define CONFIG_EMMC_BOOT
91
92 #ifdef  CONFIG_EMMC_BOOT
93 #define EMMC_SECTOR_SIZE 512
94 #define CONFIG_MMC
95
96 #define CONFIG_FS_EXT4
97 #define CONFIG_EXT4_WRITE
98 #define CONFIG_CMD_EXT4
99 #define CONFIG_CMD_EXT4_WRITE
100
101 //#define CONFIG_TIGER_MMC
102 #define CONFIG_UEFI_PARTITION
103 #define CONFIG_EFI_PARTITION
104 #define CONFIG_EXT4_SPARSE_DOWNLOAD
105 //#define CONFIG_EMMC_SPL
106 #define CONFIG_SYS_EMMC_U_BOOT_SECTOR_NUM ((CONFIG_SYS_NAND_U_BOOT_SIZE+EMMC_SECTOR_SIZE-1)/EMMC_SECTOR_SIZE)
107
108 #endif
109
110 /*
111  * MMC definition
112  */
113 #define CONFIG_CMD_MMC
114 #ifdef  CONFIG_CMD_MMC
115 #define CONFIG_CMD_FAT                  1
116 #define CONFIG_FAT_WRITE                1
117 #define CONFIG_MMC                      1
118 #define CONFIG_GENERIC_MMC              1
119 #define CONFIG_SDHCI                    1
120 #define CONFIG_SDHCI_CTRL_NO_HISPD     1 /* disable high speed control */
121 #define CONFIG_SYS_MMC_MAX_BLK_COUNT    0x1000
122 #define CONFIG_MMC_SDMA                 1
123 #define CONFIG_MV_SDHCI                 1
124 #define CONFIG_DOS_PARTITION            1
125 #define CONFIG_EFI_PARTITION            1
126 #define CONFIG_SYS_MMC_NUM              1
127 #define CONFIG_SYS_MMC_BASE             {0x20600000}
128 #define CONFIG_SYS_SD_BASE              0x20300000
129 #endif
130
131 #define BB_DRAM_TYPE_256MB_32BIT
132
133 #define CONFIG_SYS_HZ                   1000
134 #define CONFIG_SPRD_TIMER_CLK           1000 /*32768*/
135
136 //#define CONFIG_SYS_HUSH_PARSER
137
138 #ifdef CONFIG_SYS_HUSH_PARSER
139 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
140 #endif
141
142 #define FIXNV_SIZE              (2*128 * 1024)
143 #define PRODUCTINFO_SIZE        (16 * 1024)
144 #define WMODEM_SIZE             (0x800000)
145 #define WDSP_SIZE               (0x200000)
146 #define WCNMODEM_SIZE           (0x100000)
147 #define VMJALUNA_SIZE           (0x64000) /* 400K */
148 #define RUNTIMENV_SIZE          (3*128 * 1024)
149 #define CONFIG_SPL_LOAD_LEN     (0x6000)
150
151 #define PRODUCTINFO_ADR         0x80490000
152
153 /*#define CMDLINE_NEED_CONV */
154
155 #define WATCHDOG_LOAD_VALUE     0x4000
156 #define CONFIG_SYS_STACK_SIZE   0x400
157 //#define CONFIG_SYS_TEXT_BASZE  0x80f00000
158
159 //#define       CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* 256 kB for U-Boot */
160
161 /* NAND BOOT is the only boot method */
162 #define CONFIG_NAND_U_BOOT
163 #define DYNAMIC_CRC_TABLE
164 /* Start copying real U-boot from the second page */
165 #define CONFIG_SYS_NAND_U_BOOT_OFFS     0x40000
166 #define CONFIG_SYS_NAND_U_BOOT_SIZE     0xa0000
167 #define RAM_TYPPE_IS_SDRAM      0
168 //#define FPGA_TRACE_DOWNLOAD //for download image from trace
169
170 /* Load U-Boot to this address */
171 #define CONFIG_SYS_NAND_U_BOOT_DST      0x8f700000
172 #define CONFIG_SYS_NAND_U_BOOT_START    CONFIG_SYS_NAND_U_BOOT_DST
173 #define CONFIG_SYS_SDRAM_BASE 0x80000000
174 #define CONFIG_SYS_SDRAM_END (CONFIG_SYS_SDRAM_BASE + 256*1024*1024)
175
176 #ifdef CONFIG_NAND_SPL
177 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_END - 0x40000)
178 #else
179
180 #define CONFIG_MMU_TABLE_ADDR (0x00020000)
181 #define CONFIG_SYS_INIT_SP_ADDR     \
182         (CONFIG_SYS_SDRAM_END - 0x10000 - GENERATED_GBL_DATA_SIZE)
183
184 #define CONFIG_SKIP_LOWLEVEL_INIT
185 #endif
186
187 #define CONFIG_HW_WATCHDOG
188 //#define CONFIG_AUTOBOOT //used for FPGA test, auto boot other image
189 //#define CONFIG_DISPLAY_CPUINFO
190
191 #define CONFIG_CMDLINE_TAG              1       /* enable passing of ATAGs */
192 #define CONFIG_SETUP_MEMORY_TAGS        1
193 #define CONFIG_INITRD_TAG               1
194
195 /*
196  * Memory Info
197  */
198 /* malloc() len */
199 #define CONFIG_SYS_MALLOC_LEN           (2 << 20)       /* 1 MiB */
200 /*
201  * Board has 2 32MB banks of DRAM but there is a bug when using
202  * both so only the first is configured
203  */
204 #define CONFIG_NR_DRAM_BANKS    1
205
206 #define PHYS_SDRAM_1            0x80000000
207 #define PHYS_SDRAM_1_SIZE       0x10000000
208 #if (CONFIG_NR_DRAM_BANKS == 2)
209 #define PHYS_SDRAM_2            0x90000000
210 #define PHYS_SDRAM_2_SIZE       0x10000000
211 #endif
212 /* 8MB DRAM test */
213 #define CONFIG_SYS_MEMTEST_START        PHYS_SDRAM_1
214 #define CONFIG_SYS_MEMTEST_END          (PHYS_SDRAM_1+0x0800000)
215 #define CONFIG_STACKSIZE        (256 * 1024)    /* regular stack */
216
217 /*
218  * Serial Info
219  */
220 #define CONFIG_SPRD_UART                1
221 #define CONFIG_SYS_SC8800X_UART1        1
222 #define CONFIG_CONS_INDEX       1       /* use UART0 for console */
223 #define CONFIG_BAUDRATE         115200  /* Default baud rate */
224 #define CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200 }
225 #define CONFIG_SPRD_SPI
226 #define CONFIG_SPRD_I2C
227 #define CONFIG_SC8830_I2C
228 /*
229  * Flash & Environment
230  */
231 /* No NOR flash present */
232 #define CONFIG_SYS_MONITOR_LEN ((CONFIG_SYS_NAND_U_BOOT_OFFS)+(CONFIG_SYS_NAND_U_BOOT_SIZE))
233 #define CONFIG_SYS_NO_FLASH     1
234 #define CONFIG_ENV_IS_NOWHERE
235 #define CONFIG_ENV_SIZE         (128 * 1024)
236 /*
237 #define CONFIG_ENV_IS_IN_NAND
238 #define CONFIG_ENV_OFFSET       CONFIG_SYS_MONITOR_LEN
239 #define CONFIG_ENV_OFFSET_REDUND        (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
240 */
241
242 /* DDR */
243 #define CONFIG_CLK_PARA
244
245 #ifndef CONFIG_CLK_PARA
246 #define DDR_CLK 464
247 #else
248 #define MAGIC_HEADER    0x5555AAAA
249 #define MAGIC_END       0xAAAA5555
250 #define CONFIG_PARA_VERSION 1
251 #define CLK_CA7_CORE    ARM_CLK_1000M
252 #define CLK_CA7_AXI     ARM_CLK_500M
253 #define CLK_CA7_DGB     ARM_CLK_200M
254 #define CLK_CA7_AHB     AHB_CLK_192M
255 #define CLK_CA7_APB     APB_CLK_64M
256 #define CLK_PUB_AHB     PUB_AHB_CLK_153_6M
257 #define CLK_AON_APB     AON_APB_CLK_128M
258 #define DDR_FREQ        800000000
259 #define DCDC_ARM        1200
260 #define DCDC_CORE       1100
261 #define CONFIG_VOL_PARA
262 #endif
263
264
265 /* NAND */
266 #define CONFIG_NAND_SC8830
267 #define CONFIG_SPRD_NAND_REGS_BASE      (0x20B00000)
268 #define CONFIG_SYS_MAX_NAND_DEVICE      1
269 #define CONFIG_SYS_NAND_BASE            (0x20B00000)
270 //#define CONFIG_JFFS2_NAND
271 //#define CONFIG_SPRD_NAND_HWECC
272 #define CONFIG_SYS_NAND_HW_ECC
273 #define CONFIG_SYS_NAND_LARGEPAGE
274 //#define CONFIG_SYS_NAND_5_ADDR_CYCLE
275
276 #define CONFIG_SYS_64BIT_VSPRINTF
277
278 #define CONFIG_CMD_MTDPARTS
279 #define CONFIG_MTD_PARTITIONS
280 #define CONFIG_MTD_DEVICE
281 #define CONFIG_CMD_UBI
282 #define CONFIG_RBTREE
283
284 #define CONFIG_CMD_UBIFS
285 #define CONFIG_LZO
286 #ifdef CONFIG_CMD_UBIFS
287 #define CONFIG_FS_UBIFS
288 #endif
289
290 /* U-Boot general configuration */
291 #define CONFIG_SYS_PROMPT       "=> "   /* Monitor Command Prompt */
292 #define CONFIG_SYS_CBSIZE       1024    /* Console I/O Buffer Size  */
293 /* Print buffer sz */
294 #define CONFIG_SYS_PBSIZE       (CONFIG_SYS_CBSIZE + \
295                 sizeof(CONFIG_SYS_PROMPT) + 16)
296 #define CONFIG_SYS_MAXARGS      32      /* max number of command args */
297 /* Boot Argument Buffer Size */
298 #define CONFIG_SYS_BARGSIZE     CONFIG_SYS_CBSIZE
299 #define CONFIG_CMDLINE_EDITING
300 #define CONFIG_SYS_LONGHELP
301
302 /* support OS choose */
303 #undef CONFIG_BOOTM_NETBSD
304 #undef CONFIG_BOOTM_RTEMS
305
306 /* U-Boot commands */
307 #include <config_cmd_default.h>
308 #define CONFIG_CMD_NAND
309 #undef CONFIG_CMD_FPGA
310 #undef CONFIG_CMD_LOADS
311 #undef CONFIG_CMD_NET
312 #undef CONFIG_CMD_NFS
313 #undef CONFIG_CMD_SETGETDCR
314
315 #define CONFIG_ENV_OVERWRITE
316
317 #ifdef SPRD_EVM_TAG_ON
318 #define CONFIG_BOOTDELAY        0
319 #else
320 #define CONFIG_BOOTDELAY        0
321 #define CONFIG_ZERO_BOOTDELAY_CHECK
322 #endif
323
324 #define CONFIG_LOADADDR         (CONFIG_SYS_TEXT_BASE - CONFIG_SYS_MALLOC_LEN - 4*1024*1024)    /* loadaddr env var */
325 #define CONFIG_SYS_LOAD_ADDR    CONFIG_LOADADDR
326
327 #define xstr(s) str(s)
328 #define str(s)  #s
329
330 #ifdef CONFIG_RAM1G
331 #define MEM_INIT_PARA "mem=1024M"
332 #elif defined(CONFIG_RAM512M)
333 #define MEM_INIT_PARA "mem=512M"
334 #elif defined(CONFIG_RAM256M)
335 #define MEM_INIT_PARA "mem=256M"
336 //#elif defined(CONFIG_RAMxxxM)
337 ////#define MEM_INIT_PARA "mem=xxxM" //xxx maybe 1024 etc
338 #else
339 #error "CONFIG_RAMxxxM macro must be defined"
340 #endif
341 #define MTDIDS_DEFAULT "nand0=sprd-nand"
342 //#define MTDPARTS_DEFAULT "mtdparts=sprd-nand:256k(spl),512k(2ndbl),256k(params),512k(vmjaluna),10m(modem),3840k(fixnv),3840k(backupfixnv),5120k(dsp),3840k(runtimenv),10m(boot),10m(recovery),250m(system),180m(userdata),20m(cache),256k(misc),1m(boot_logo),1m(fastboot_logo),3840k(productinfo),512k(kpanic)"
343 #define MTDPARTS_DEFAULT "mtdparts=sprd-nand:256k(spl),768k(2ndbl),512k(kpanic),-(ubipac)"
344 #define CONFIG_BOOTARGS MEM_INIT_PARA" loglevel=7 console=ttyS1,115200n8 init=/init " MTDPARTS_DEFAULT
345
346 #define COPY_LINUX_KERNEL_SIZE  (0x600000)
347 #define LINUX_INITRD_NAME       "modem"
348
349 #define CONFIG_BOOTCOMMAND "cboot normal"
350 #define CONFIG_EXTRA_ENV_SETTINGS                               ""
351
352 #ifdef CONFIG_CMD_NET
353 #define CONFIG_IPADDR 192.168.10.2
354 #define CONFIG_SERVERIP 192.168.10.5
355 #define CONFIG_NETMASK 255.255.255.0
356 #define CONFIG_USBNET_DEVADDR 26:03:ee:00:87:9f
357 #define CONFIG_USBNET_HOSTADDR 9a:04:c7:d6:30:d0
358
359
360 #define CONFIG_NET_MULTI
361 #define CONFIG_CMD_DNS
362 #define CONFIG_CMD_NFS
363 #define CONFIG_CMD_RARP
364 #define CONFIG_CMD_PING
365 /*#define CONFIG_CMD_SNTP */
366 #endif
367
368 #define CONFIG_USB_CORE_IP_293A
369 #define CONFIG_USB_GADGET_SC8800G
370 #define CONFIG_USB_DWC
371 #define CONFIG_USB_GADGET_DUALSPEED
372 //#define CONFIG_USB_ETHER
373 #define CONFIG_CMD_FASTBOOT
374 #define SCRATCH_ADDR    (CONFIG_SYS_SDRAM_BASE + 0x100000)
375 #define FB_DOWNLOAD_BUF_SIZE           (CONFIG_SYS_NAND_U_BOOT_DST - SCRATCH_ADDR-0x800000)
376 #define SCRATCH_ADDR_EXT1              (CONFIG_SYS_NAND_U_BOOT_DST + 32*1024*1024)
377 #define FB_DOWNLOAD_BUF_EXT1_SIZE      (224*1024*1024)
378
379 #define CONFIG_MODEM_CALIBERATE
380
381 #define CONFIG_LCD
382 #ifdef  CONFIG_LCD
383 #define CONFIG_DSIH_VERSION_1P21A
384 #define CONFIG_FB_USE_MEGACORES_MIPI_DPHY
385 #define CONFIG_SPLASH_SCREEN
386 #define LCD_BPP LCD_COLOR16
387 //#define CONFIG_LCD_HVGA   1
388 //#define CONFIG_LCD_QVGA   1
389 //#define CONFIG_LCD_QHD 1
390 //#define CONFIG_LCD_720P 1
391 #define CONFIG_LCD_FWVGA   1
392 //#define CONFIG_LCD_INFO
393 //#define LCD_TEST_PATTERN
394 //#define CONFIG_LCD_LOGO
395 //#define CONFIG_FB_LCD_S6D0139
396 #define CONFIG_FB_LCD_OTM8019A_MIPI
397 //#define CONFIG_FB_LCD_NT35516_MIPI
398 //#define CONFIG_FB_LOW_RES_SIMU
399 #define CONFIG_SYS_WHITE_ON_BLACK
400 #ifdef  LCD_TEST_PATTERN
401 #define CONSOLE_COLOR_RED 0xf800
402 #define CONSOLE_COLOR_GREEN 0x07e0
403 #define CONSOLE_COLOR_YELLOW 0x07e0
404 #define CONSOLE_COLOR_BLUE 0x001f
405 #define CONSOLE_COLOR_MAGENTA 0x001f
406 #define CONSOLE_COLOR_CYAN 0x001f
407 #endif
408 #endif // CONFIG_LCD
409
410 #define CONFIG_SPRD_SYSDUMP
411 #include <asm/sizes.h>
412
413 #ifdef CONFIG_RAM1G
414 #define SPRD_SYSDUMP_MAGIC      ((PHYS_OFFSET_ADDR & (~(SZ_1G - 1))) + SZ_1G - SZ_1M)
415 #elif defined(CONFIG_RAM512M)
416 #define SPRD_SYSDUMP_MAGIC      ((PHYS_OFFSET_ADDR & (~(SZ_512M - 1))) + SZ_512M - SZ_1M)
417 #elif defined(CONFIG_RAM256M)
418 #define SPRD_SYSDUMP_MAGIC      ((PHYS_OFFSET_ADDR & (~(SZ_256M - 1))) + SZ_256M - SZ_1M)
419 //#elif defined(CONFIG_RAMxxxM)
420 //#define SPRD_SYSDUMP_MAGIC      ((PHYS_OFFSET_ADDR & (~(SZ_xxxM - 1))) + SZ_xxxM - SZ_1M) //xxx maybe 1024 etc
421 #else
422 #error "CONFIG_RAMxxxM macro must be defined"
423 #endif
424
425 #define CALIBRATE_ENUM_MS 3000
426 #define CALIBRATE_IO_MS 2000
427
428 //#define LOW_BAT_ADC_LEVEL 782 /*phone battery adc value low than this value will not boot up*/
429 #define LOW_BAT_VOL            3500 /*phone battery voltage low than this value will not boot up*/
430 #define LOW_BAT_VOL_CHG        3300    //3.3V charger connect
431
432 #define PWR_KEY_DETECT_CNT 12 /*this should match the count of boot_pwr_check() function */
433 #define ALARM_LEAD_SET_MS 0 /* time set for alarm boot in advancd */
434
435 #define PHYS_OFFSET_ADDR                        0x80000000
436 #define TD_CP_OFFSET_ADDR                       0x8000000       /*128*/
437 #define TD_CP_SDRAM_SIZE                        0x1200000       /*18M*/
438 #define WCDMA_CP_OFFSET_ADDR            0x8000000       /*128M*/
439 #define WCDMA_CP_SDRAM_SIZE             0x1b00000       /*27M*/
440 #define WCN_CP_OFFSET_ADDR              0x0a800000      /*168M*/
441 #define WCN_CP_SDRAM_SIZE               0x201000        /*cp2size*/
442
443 #define SIPC_APCP_RESET_ADDR_SIZE       0xC00   /*3K*/
444 #define SIPC_APCP_RESET_SIZE    0x1000  /*4K*/
445 #define SIPC_TD_APCP_START_ADDR         (PHYS_OFFSET_ADDR + TD_CP_OFFSET_ADDR + TD_CP_SDRAM_SIZE - SIPC_APCP_RESET_SIZE)        /*0x897FF000*/
446 #define SIPC_WCDMA_APCP_START_ADDR      (PHYS_OFFSET_ADDR + WCDMA_CP_OFFSET_ADDR + WCDMA_CP_SDRAM_SIZE - SIPC_APCP_RESET_SIZE) /*0x899F0000*/
447 #define SIPC_WCN_APCP_START_ADDR                (PHYS_OFFSET_ADDR + WCN_CP_OFFSET_ADDR + WCN_CP_SDRAM_SIZE - SIPC_APCP_RESET_SIZE) /*0x94EFF000*/
448 #define CALIBRATION_FLAG               (PHYS_OFFSET_ADDR + WCDMA_CP_OFFSET_ADDR + WCDMA_CP_SDRAM_SIZE - 0x400)
449 #define CALIBRATION_FLAG_WCDMA   CALIBRATION_FLAG
450
451 #define CONFIG_RAM_CONSOLE
452
453 #ifdef CONFIG_RAM_CONSOLE
454 #define CONFIG_RAM_CONSOLE_SIZE        0x80000
455 #define CONFIG_RAM_CONSOLE_START    (CONFIG_SYS_NAND_U_BOOT_START + 0x600000)
456 #endif
457 //#define CALIBRATION_FLAG           0x89700000
458
459 #define CONFIG_CMD_SOUND 1
460 #define CONFIG_CMD_FOR_HTC 1
461 #define CONFIG_SOUND_CODEC_SPRD_V3 1
462 #define CONFIG_SOUND_DAI_VBC_R2P0 1
463 /* #define CONFIG_SPRD_AUDIO_DEBUG */
464
465 #define CONFIG_RAMDUMP_NO_SPLIT 1 /* Don't split sysdump file */
466
467 #define CONFIG_PBINT_7S_RESET_V1
468 /*7S reset config*/
469 #define CONFIG_7S_RST_MODULE_EN         1       //0:disable module; 1:enable module
470
471 #define CONFIG_7S_RST_SW_MODE           1       //0:hw reset,1:arm reset,power keep on
472 #define CONFIG_7S_RST_SHORT_MODE        1       //0:long press then release key to trigger;1:press key some time to trigger
473 #define CONFIG_7S_RST_2KEY_MODE         0       //0:1Key--Normal mode; 1:2KEY
474 #define CONFIG_7S_RST_THRESHOLD         7       //7S, hold key down for this time to trigger
475
476 #define USB_PHY_TUNE_VALUE 0x44073e33
477
478 /*control the CP need to boot*/
479 #define modem_cp0_enable 1
480 #define modem_cp1_enable 0
481 #define modem_cp2_enable 1
482
483
484 #endif /* __CONFIG_H */