tizen 2.4 release
[kernel/u-boot-tm1.git] / include / configs / sp9630fpga.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
24 #define DT_PLATFROM_ID 8830
25 #define DT_HARDWARE_ID 1
26 #define DT_SOC_VER     0x20000
27
28 //only used in fdl2 .in uart download, the debug infors  from  serial will break the download process.\r
29 #define CONFIG_FDL2_PRINT        0\r
30 #define BOOT_NATIVE_LINUX        1\r
31 #define BOOT_NATIVE_LINUX_MODEM  1\r
32 #define CONFIG_SILENT_CONSOLE\r
33 #define CONFIG_GPIOLIB 1\r
34 //#define NAND_DEBUG  \r
35 //#define DEBUG\r
36 #define CONFIG_SDRAMDISK\r
37 \r
38 #define U_BOOT_SPRD_VER 1\r
39 /*#define SPRD_EVM_TAG_ON 1*/\r
40 #ifdef SPRD_EVM_TAG_ON\r
41 #define SPRD_EVM_ADDR_START 0x00026000\r
42 #define SPRD_EVM_TAG(_x) (*(((unsigned long *)SPRD_EVM_ADDR_START)+_x) = *(volatile unsigned long *)0x87003004)\r
43 #endif\r
44 #define CONFIG_L2_OFF                   1\r
45 \r
46 #define BOOT_DEBUG 1\r
47 \r
48 #define CONFIG_YAFFS2 1\r
49 \r
50 #define BOOT_PART "boot"\r
51 //#define BOOT_PART "kernel"\r
52 #define RECOVERY_PART "recovery"\r
53 /*\r
54  * SPREADTRUM BIGPHONE board - SoC Configuration\r
55  */\r
56 #define CONFIG_FPGA\r
57 #define CONFIG_SC9630\r
58 #define CONFIG_ADIE_SC2723
59 //#define CONFIG_FPGA_CALIBRATION
60
61 #define CONFIG_SUPPORT_TDLTE\r
62 #define TDDSP_ADR       0x88020000\r
63 //#define CONFIG_SUPPORT_WLTE\r
64 #define CONFIG_SUPPORT_GSM\r
65 \r
66 #define LTE_GDSP_LOAD_OFFSET    0x20000\r
67 \r
68 #define LTE_FIXNV_SIZE 0x20000\r
69 #define LTE_RUNNV_SIZE 0x40000\r
70 #define LTE_FIXNV_ADDR 0x8a310000\r
71 #define LTE_RUNNV_ADDR 0x8a330000\r
72 #define LTE_MODEM_SIZE 0x8f0000\r
73 #define LTE_MODEM_ADDR 0x89a00000\r
74 #define LTE_LDSP_SIZE  0x1c00000\r
75 #define LTE_LDSP_ADDR  0x8a380000\r
76 #define LTE_GDSP_SIZE 0x3E0000\r
77 #define LTE_GDSP_ADDR (0x89600000 + LTE_GDSP_LOAD_OFFSET)\r
78 \r
79 #define WL_WARM_SIZE 0x670000\r
80 #define WL_WARM_ADDR 0X88400000\r
81 \r
82 #define GSM_FIXNV_SIZE 0x20000\r
83 #define GSM_FIXNV_ADDR 0x88a90000\r
84 #define GSM_RUNNV_SIZE 0x40000\r
85 #define GSM_RUNNV_ADDR 0x88ab0000\r
86 #define GSM_MODEM_ADDR 0X88400000  //equal to WL_DSDA_WARM_ADDR\r
87 #define GSM_MODEM_SIZE 0x670000    //equal to WL_DSDA_WARM_SIZE\r
88 #define GSM_DSP_ADDR   0x88000000\r
89 #define GSM_DSP_SIZE   0x400000\r
90 #define FIXNV_SIZE  LTE_FIXNV_SIZE\r
91 \r
92 #define CONFIG_DFS_ENABLE\r
93 #define DFS_ADDR    0x50800000\r
94 #define DFS_SIZE    32768 //32K\r
95 \r
96 #define CONFIG_CP0_ARM0_BOOT\r
97 #define CONFIG_PMIC_ARM7_BOOT
98 #define CONFIG_CP1_BOOT\r
99 \r
100 #define CONFIG_AUTODLOADER\r
101 \r
102 #define CHIP_ENDIAN_LITTLE\r
103 #define _LITTLE_ENDIAN 1\r
104 \r
105 #define CONFIG_RAM512M\r
106 \r
107 #define CONFIG_EMMC_BOOT\r
108 #define CONFIG_ARCH_SCX35L\r
109 \r
110 #ifdef  CONFIG_EMMC_BOOT\r
111 #define EMMC_SECTOR_SIZE 512\r
112 \r
113 #define CONFIG_FS_EXT4\r
114 #define CONFIG_EXT4_WRITE\r
115 #define CONFIG_CMD_EXT4\r
116 #define CONFIG_CMD_EXT4_WRITE\r
117 \r
118 //#define CONFIG_TIGER_MMC\r
119 #define CONFIG_UEFI_PARTITION\r
120 #define CONFIG_EXT4_SPARSE_DOWNLOAD\r
121 //#define CONFIG_EMMC_SPL\r
122 #define CONFIG_SYS_EMMC_U_BOOT_SECTOR_NUM ((CONFIG_SYS_NAND_U_BOOT_SIZE+EMMC_SECTOR_SIZE-1)/EMMC_SECTOR_SIZE)\r
123 #endif\r
124 \r
125 /*\r
126  * MMC definition\r
127  */\r
128 #define CONFIG_CMD_MMC\r
129 #ifdef  CONFIG_CMD_MMC\r
130 #define CONFIG_CMD_FAT                  1\r
131 #define CONFIG_FAT_WRITE                1\r
132 #define CONFIG_MMC                      1\r
133 #define CONFIG_GENERIC_MMC              1\r
134 #define CONFIG_SDHCI                    1\r
135 #define CONFIG_SDHCI_CTRL_NO_HISPD      1 /* disable high speed control */\r
136 #define CONFIG_SYS_MMC_MAX_BLK_COUNT    0x1000\r
137 #define CONFIG_MMC_SDMA                 1\r
138 #define CONFIG_MV_SDHCI                 1\r
139 #define CONFIG_DOS_PARTITION            1\r
140 #define CONFIG_EFI_PARTITION            1\r
141 #define CONFIG_SYS_MMC_NUM              1\r
142 #define CONFIG_SYS_MMC_BASE             {0x20600000}\r
143 #define CONFIG_SYS_SD_BASE              0x20300000\r
144 #endif\r
145 \r
146 #define BB_DRAM_TYPE_256MB_32BIT\r
147 \r
148 #define CONFIG_SYS_HZ                   1000\r
149 #define CONFIG_SPRD_TIMER_CLK           1000 /*32768*/\r
150 \r
151 //#define CONFIG_SYS_HUSH_PARSER\r
152 #define CP0_ZERO_MAP_ADR    0x50000000\r
153 #define CP0_ARM0_EXEC_ADR        0x88400000 \r
154 \r
155 #define CP1_ZERO_MAP_ADR    0x50001000\r
156 #define CP1_EXEC_ADR        0x89a00000\r
157 \r
158 #ifdef CONFIG_SYS_HUSH_PARSER\r
159 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "\r
160 #endif\r
161 \r
162 #define FIXNV_SIZE              (128 * 1024)\r
163 #define PRODUCTINFO_SIZE        (16 * 1024)\r
164 #define MODEM_SIZE              (0x800000)\r
165 #define DSP_SIZE                (0x2E0000)\r
166 #define VMJALUNA_SIZE           (0x64000) /* 400K */\r
167 #define RUNTIMENV_SIZE          (3*128 * 1024)\r
168 #define CONFIG_SPL_LOAD_LEN     (0x6000)\r
169 \r
170 #define PRODUCTINFO_ADR         0x80490000\r
171 \r
172 /*#define CMDLINE_NEED_CONV */\r
173 \r
174 #define WATCHDOG_LOAD_VALUE     0x4000\r
175 #define CONFIG_SYS_STACK_SIZE   0x400\r
176 //#define CONFIG_SYS_TEXT_BASZE  0x80f00000\r
177 \r
178 //#define       CONFIG_SYS_MONITOR_LEN          (256 << 10)     /* 256 kB for U-Boot */\r
179 \r
180 /* NAND BOOT is the only boot method */\r
181 #define CONFIG_NAND_U_BOOT\r
182 #define DYNAMIC_CRC_TABLE\r
183 /* Start copying real U-boot from the second page */\r
184 #define CONFIG_SYS_NAND_U_BOOT_OFFS     0x40000\r
185 #define CONFIG_SYS_NAND_U_BOOT_SIZE     0x8A000\r
186 #define RAM_TYPPE_IS_SDRAM      0\r
187 //#define FPGA_TRACE_DOWNLOAD //for download image from trace\r
188 \r
189 /* Load U-Boot to this address */\r
190 #define CONFIG_SYS_NAND_U_BOOT_DST      0x8f800000\r
191 #define CONFIG_SYS_NAND_U_BOOT_START    CONFIG_SYS_NAND_U_BOOT_DST\r
192 #define CONFIG_SYS_SDRAM_BASE 0x80000000\r
193 #define CONFIG_SYS_SDRAM_END (CONFIG_SYS_SDRAM_BASE + 256*1024*1024)\r
194 \r
195 #ifdef CONFIG_NAND_SPL\r
196 #define CONFIG_SYS_INIT_SP_ADDR         (CONFIG_SYS_SDRAM_END - 0x40000)\r
197 #else\r
198 \r
199 #define CONFIG_MMU_TABLE_ADDR (0x00020000)\r
200 #define CONFIG_SYS_INIT_SP_ADDR     \\r
201         (CONFIG_SYS_SDRAM_END - 0x10000 - GENERATED_GBL_DATA_SIZE)\r
202 \r
203 #define CONFIG_SKIP_LOWLEVEL_INIT\r
204 #endif\r
205 \r
206 #define CONFIG_HW_WATCHDOG\r
207 #define CONFIG_AUTOBOOT //used for FPGA test, auto boot other image\r
208 //#define CONFIG_DISPLAY_CPUINFO\r
209 \r
210 #define CONFIG_CMDLINE_TAG              1       /* enable passing of ATAGs */\r
211 #define CONFIG_SETUP_MEMORY_TAGS        1\r
212 #define CONFIG_INITRD_TAG               1\r
213 \r
214 /*\r
215  * Memory Info\r
216  */\r
217 /* malloc() len */\r
218 #define CONFIG_SYS_MALLOC_LEN           (2 << 20)       /* 1 MiB */\r
219 /*\r
220  * Board has 2 32MB banks of DRAM but there is a bug when using\r
221  * both so only the first is configured\r
222  */\r
223 #define CONFIG_NR_DRAM_BANKS    1\r
224 \r
225 #define PHYS_SDRAM_1            0x80000000\r
226 #define PHYS_SDRAM_1_SIZE       0x10000000\r
227 #if (CONFIG_NR_DRAM_BANKS == 2)\r
228 #define PHYS_SDRAM_2            0x90000000\r
229 #define PHYS_SDRAM_2_SIZE       0x10000000\r
230 #endif\r
231 /* 8MB DRAM test */\r
232 #define CONFIG_SYS_MEMTEST_START        PHYS_SDRAM_1\r
233 #define CONFIG_SYS_MEMTEST_END          (PHYS_SDRAM_1+0x0800000)\r
234 #define CONFIG_STACKSIZE        (256 * 1024)    /* regular stack */\r
235 \r
236 /*\r
237  * Serial Info\r
238  */\r
239 #define CONFIG_SPRD_UART                1\r
240 #define CONFIG_SYS_SC8800X_UART1        1\r
241 #define CONFIG_CONS_INDEX       1       /* use UART0 for console */\r
242 #define CONFIG_BAUDRATE         115200  /* Default baud rate */\r
243 #define CONFIG_SYS_BAUDRATE_TABLE       { 9600, 19200, 38400, 57600, 115200 }\r
244 #define CONFIG_SPRD_SPI\r
245 #define CONFIG_SPRD_I2C\r
246 #define CONFIG_SC9630_I2C\r
247 /*\r
248  * Flash & Environment\r
249  */\r
250 /* No NOR flash present */\r
251 #define CONFIG_SYS_MONITOR_LEN ((CONFIG_SYS_NAND_U_BOOT_OFFS)+(CONFIG_SYS_NAND_U_BOOT_SIZE))\r
252 #define CONFIG_SYS_NO_FLASH     1\r
253 #define CONFIG_ENV_IS_NOWHERE\r
254 #define CONFIG_ENV_SIZE         (128 * 1024)    \r
255 /*\r
256 #define CONFIG_ENV_IS_IN_NAND\r
257 #define CONFIG_ENV_OFFSET       CONFIG_SYS_MONITOR_LEN\r
258 #define CONFIG_ENV_OFFSET_REDUND        (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)\r
259 */\r
260 \r
261 /* DDR */\r
262 #define DDR_CLK 464\r
263 //---these three macro below,only one can be open\r
264 //#define DDR_LPDDR1\r
265 #define DDR_LPDDR2\r
266 //#define DDR_DDR3\r
267 \r
268 //#define DDR_AUTO_DETECT\r
269 #define DDR_TYPE DRAM_LPDDR2_2CS_8G_X32\r
270 //#define DDR_TYPE DRAM_LPDDR2_1CS_4G_X32\r
271 //#define DDR_TYPE DRAM_LPDDR2_1CS_8G_X32\r
272 //#define DDR_TYPE DRAM_LPDDR2_2CS_16G_X32\r
273 //#define DDR_TYPE DRAM_DDR3_1CS_2G_X8_4P\r
274 //#define DDR_TYPE DRAM_DDR3_1CS_4G_X16_2P\r
275 \r
276 #define DDR3_DLL_ON TRUE\r
277 //#define DLL_BYPASS\r
278 #define DDR_APB_CLK 128\r
279 #define DDR_DFS_SUPPORT\r
280 #define DDR_DFS_VAL_BASE 0X1c00\r
281 \r
282 //#define DDR_SCAN_SUPPORT\r
283 #define MEM_IO_DS LPDDR2_DS_40R\r
284 \r
285 #define PUBL_LPDDR1_DS PUBL_LPDDR1_DS_48OHM\r
286 #define PUBL_LPDDR2_DS PUBL_LPDDR2_DS_40OHM\r
287 #define PUBL_DDR3_DS   PUBL_DDR3_DS_34OHM\r
288 \r
289 /* NAND */\r
290 #define CONFIG_NAND_SC9630\r
291 #define CONFIG_SPRD_NAND_REGS_BASE      (0x21100000)\r
292 #define CONFIG_SYS_MAX_NAND_DEVICE      1\r
293 #define CONFIG_SYS_NAND_BASE            (0x21100000)\r
294 //#define CONFIG_JFFS2_NAND\r
295 //#define CONFIG_SPRD_NAND_HWECC\r
296 #define CONFIG_SYS_NAND_HW_ECC\r
297 #define CONFIG_SYS_NAND_LARGEPAGE\r
298 //#define CONFIG_SYS_NAND_5_ADDR_CYCLE\r
299 \r
300 #define CONFIG_SYS_64BIT_VSPRINTF\r
301 \r
302 #define CONFIG_CMD_MTDPARTS\r
303 #define CONFIG_MTD_PARTITIONS\r
304 #define CONFIG_MTD_DEVICE\r
305 #define CONFIG_CMD_UBI\r
306 #define CONFIG_RBTREE\r
307 \r
308 /* U-Boot general configuration */\r
309 #define CONFIG_SYS_PROMPT       "=> "   /* Monitor Command Prompt */\r
310 #define CONFIG_SYS_CBSIZE       1024    /* Console I/O Buffer Size  */\r
311 /* Print buffer sz */\r
312 #define CONFIG_SYS_PBSIZE       (CONFIG_SYS_CBSIZE + \\r
313                 sizeof(CONFIG_SYS_PROMPT) + 16)\r
314 #define CONFIG_SYS_MAXARGS      32      /* max number of command args */\r
315 /* Boot Argument Buffer Size */\r
316 #define CONFIG_SYS_BARGSIZE     CONFIG_SYS_CBSIZE\r
317 #define CONFIG_CMDLINE_EDITING\r
318 #define CONFIG_SYS_LONGHELP\r
319 \r
320 /* support OS choose */\r
321 #undef CONFIG_BOOTM_NETBSD \r
322 #undef CONFIG_BOOTM_RTEMS\r
323 \r
324 /* U-Boot commands */\r
325 #include <config_cmd_default.h>\r
326 #define CONFIG_CMD_NAND\r
327 #undef CONFIG_CMD_FPGA\r
328 #undef CONFIG_CMD_LOADS\r
329 #undef CONFIG_CMD_NET\r
330 #undef CONFIG_CMD_NFS\r
331 #undef CONFIG_CMD_SETGETDCR\r
332 \r
333 #define CONFIG_ENV_OVERWRITE\r
334 \r
335 #ifdef SPRD_EVM_TAG_ON\r
336 #define CONFIG_BOOTDELAY        0\r
337 #else\r
338 #define CONFIG_BOOTDELAY        0\r
339 #define CONFIG_ZERO_BOOTDELAY_CHECK\r
340 #endif\r
341 \r
342 #define CONFIG_LOADADDR         (CONFIG_SYS_TEXT_BASE - CONFIG_SYS_MALLOC_LEN - 4*1024*1024)    /* loadaddr env var */\r
343 #define CONFIG_SYS_LOAD_ADDR    CONFIG_LOADADDR\r
344 \r
345 #define xstr(s) str(s)\r
346 #define str(s)  #s\r
347 \r
348 #define MTDIDS_DEFAULT "nand0=sprd-nand"\r
349 #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
350 #define CONFIG_BOOTARGS "mem=512M loglevel=1 console=ttyS1,115200n8 init=/init " MTDPARTS_DEFAULT\r
351 \r
352 #define COPY_LINUX_KERNEL_SIZE  (0x600000)\r
353 #define LINUX_INITRD_NAME       "modem"\r
354 \r
355 #define CONFIG_BOOTCOMMAND "cboot normal"\r
356 #define CONFIG_EXTRA_ENV_SETTINGS                               ""      \r
357 \r
358 #ifdef CONFIG_CMD_NET\r
359 #define CONFIG_IPADDR 192.168.10.2\r
360 #define CONFIG_SERVERIP 192.168.10.5\r
361 #define CONFIG_NETMASK 255.255.255.0\r
362 #define CONFIG_USBNET_DEVADDR 26:03:ee:00:87:9f\r
363 #define CONFIG_USBNET_HOSTADDR 9a:04:c7:d6:30:d0\r
364 \r
365 \r
366 #define CONFIG_NET_MULTI\r
367 #define CONFIG_CMD_DNS\r
368 #define CONFIG_CMD_NFS\r
369 #define CONFIG_CMD_RARP\r
370 #define CONFIG_CMD_PING\r
371 /*#define CONFIG_CMD_SNTP */\r
372 #endif\r
373 \r
374 #define CONFIG_USB_CORE_IP_293A\r
375 #define CONFIG_USB_GADGET_SC8800G\r
376 #define CONFIG_USB_DWC\r
377 #define CONFIG_USB_GADGET_DUALSPEED\r
378 //#define CONFIG_USB_ETHER\r
379 #define CONFIG_CMD_FASTBOOT\r
380 #define SCRATCH_ADDR    (CONFIG_SYS_SDRAM_BASE + 0x100000)\r
381 #define FB_DOWNLOAD_BUF_SIZE           (CONFIG_SYS_NAND_U_BOOT_DST - SCRATCH_ADDR-0x800000)\r
382 #define SCRATCH_ADDR_EXT1              (CONFIG_SYS_NAND_U_BOOT_DST + 32*1024*1024)\r
383 #define FB_DOWNLOAD_BUF_EXT1_SIZE      (224*1024*1024)\r
384 #define CONFIG_MODEM_CALIBERATE\r
385 \r
386 #define CONFIG_LCD\r
387 #ifdef  CONFIG_LCD\r
388 #define CONFIG_DSIH_VERSION_1P21A\r
389 #define CONFIG_SPLASH_SCREEN\r
390 #define LCD_BPP LCD_COLOR16\r
391 //#define CONFIG_LCD_HVGA   1\r
392 //#define CONFIG_LCD_QVGA   1\r
393 //#define CONFIG_LCD_QHD 1\r
394 #define CONFIG_LCD_PAD_1024 1\r
395 //#define CONFIG_LCD_720P 1\r
396 //#define CONFIG_LCD_INFO\r
397 //#define LCD_TEST_PATTERN\r
398 //#define CONFIG_LCD_LOGO\r
399 //#define CONFIG_FB_LCD_S6D0139\r
400 //#define CONFIG_FB_LCD_SSD2075_MIPI\r
401 #define CONFIG_FB_LCD_ILI6150_LVDS\r
402 //#define CONFIG_FB_LCD_NT35516_MIPI\r
403 #define CONFIG_SYS_WHITE_ON_BLACK\r
404 #ifdef  LCD_TEST_PATTERN\r
405 #define CONSOLE_COLOR_RED 0xf800 \r
406 #define CONSOLE_COLOR_GREEN 0x07e0\r
407 #define CONSOLE_COLOR_YELLOW 0x07e0\r
408 #define CONSOLE_COLOR_BLUE 0x001f\r
409 #define CONSOLE_COLOR_MAGENTA 0x001f\r
410 #define CONSOLE_COLOR_CYAN 0x001f\r
411 #endif\r
412 #endif // CONFIG_LCD\r
413 \r
414 #define CONFIG_SPRD_SYSDUMP\r
415 #include <asm/sizes.h>\r
416 #define SPRD_SYSDUMP_MAGIC      ((PHYS_OFFSET_ADDR & (~(SZ_512M - 1))) + SZ_512M - SZ_1M)\r
417 \r
418 \r
419 #define CALIBRATE_ENUM_MS 3000\r
420 #define CALIBRATE_IO_MS 2000\r
421 \r
422 //#define LOW_BAT_ADC_LEVEL 782 /*phone battery adc value low than this value will not boot up*/\r
423 #define LOW_BAT_VOL            3500 /*phone battery voltage low than this value will not boot up*/\r
424 #define LOW_BAT_VOL_CHG        3300    //3.3V charger connect\r
425 \r
426 #define PWR_KEY_DETECT_CNT 12 /*this should match the count of boot_pwr_check() function */\r
427 #define ALARM_LEAD_SET_MS 0 /* time set for alarm boot in advancd */\r
428 \r
429 #define PHYS_OFFSET_ADDR                        0x80000000\r
430 //#define TD_CP_OFFSET_ADDR                     0x8000000       /*128*/\r
431 //#define TD_CP_SDRAM_SIZE                      0x1200000       /*18M*/\r
432 //#define WCDMA_CP_OFFSET_ADDR          0x10000000      /*256M*/\r
433 //#define WCDMA_CP_SDRAM_SIZE           0x4000000       /*64M*/\r
434 #define GGE_CP_OFFSET_ADDR              0x08000000       /*128M*/\r
435 #define GGE_CP_SDRAM_SIZE               0x01600000      /*22M*/\r
436 #define LTE_CP_OFFSET_ADDR              0x09600000       /*150M*/\r
437 #define LTE_CP_SDRAM_SIZE               0x06A00000       /*106M*/\r
438 #define PMIC_IRAM_ADDR          0x50800000       /*pmic arm7 iram address remap at AP side*/\r
439 #define PMIC_IRAM_SIZE          0x8000       /*32K*/\r
440 \r
441 #define SIPC_APCP_RESET_ADDR_SIZE       0xC00   /*3K*/\r
442 #define SIPC_APCP_RESET_SIZE    0x1000  /*4K*/\r
443 #define CALIBRATION_CMDLINE_SIZE 0x400  /*1K*/\r
444 //#define SIPC_TD_APCP_START_ADDR               (PHYS_OFFSET_ADDR + TD_CP_OFFSET_ADDR + TD_CP_SDRAM_SIZE - SIPC_APCP_RESET_SIZE)        /*0x897FF000*/\r
445 //#define SIPC_WCDMA_APCP_START_ADDR    (PHYS_OFFSET_ADDR + WCDMA_CP_OFFSET_ADDR + WCDMA_CP_SDRAM_SIZE - SIPC_APCP_RESET_SIZE) /*0x93FFF000*/\r
446 #define SIPC_GGE_APCP_START_ADDR        (PHYS_OFFSET_ADDR + GGE_CP_OFFSET_ADDR + GGE_CP_SDRAM_SIZE - SIPC_APCP_RESET_SIZE)      /*0x895ff000*/\r
447 #define SIPC_LTE_APCP_START_ADDR        (PHYS_OFFSET_ADDR + LTE_CP_OFFSET_ADDR + LTE_CP_SDRAM_SIZE - SIPC_APCP_RESET_SIZE)         /*0x8ffff000*/\r
448 #define SIPC_PMIC_APCP_START_ADDR        (PMIC_IRAM_ADDR+ PMIC_IRAM_SIZE+ - SIPC_APCP_RESET_ADDR_SIZE)         /*0x50807400*/\r
449 #define CALIBRATION_FLAG_CP0         0x88AF0000
450 #define        CALIBRATION_FLAG_CP1     0x8A370000
451
452 \r
453 #define CONFIG_RAM_CONSOLE\r
454 \r
455 #ifdef CONFIG_RAM_CONSOLE\r
456 #define CONFIG_RAM_CONSOLE_SIZE        0x80000\r
457 #define CONFIG_RAM_CONSOLE_START    (CONFIG_SYS_NAND_U_BOOT_START + 0x600000)\r
458 #endif\r
459 \r
460 #define CONFIG_CMD_SOUND 0
461 #define CONFIG_CMD_FOR_HTC 0
462 #define CONFIG_SOUND_CODEC_SPRD_V3 0
463 #define CONFIG_SOUND_DAI_VBC_R2P0 0
464 /* #define CONFIG_SPRD_AUDIO_DEBUG */\r
465 \r
466 #define CONFIG_RAMDUMP_NO_SPLIT 1 /* Don't split sysdump file */\r
467 \r
468 #endif /* __CONFIG_H */\r