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