blob: 5077333c04acad11159a00cdb30a839398d22d09 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/**************************************************************************
2*
3* Copyright (c) 2014 ZTE Corporation.
4*
5***************************************************************************
6* Ä£ ¿é Ãû :
7* ÎÄ ¼þ Ãû : NandFlash.h
8* Ïà¹ØÎļþ :
9* ʵÏÖ¹¦ÄÜ :
10* ×÷ Õß :
11* °æ ±¾ :
12* Íê³ÉÈÕÆÚ :
13* ÆäËü˵Ã÷ :
14**************************************************************************/
15
16/**************************************************************************
17* Ð޸ļǼ
18**************************************************************************/
19
20#ifndef _NAND_FLASH_H
21#define _NAND_FLASH_H
22
23/* 7520¼°ºóÐø°æ±¾¶¼Ê¹Ó÷ÖÇø±í */
24#ifdef _CHIP_ZX2804
25/**************************************************************************
26* ³£Á¿¶¨ÒåÇø
27**************************************************************************/
28#define FLASH_BASE_ADDR 0x3C000000
29
30/*physical addr of HLS exception save area */
31#define OS_FLASH_ABSOLUTE_HLS_EXCE_BASE_ADDR (FLASH_BASE_ADDR + 0x100000)
32#define OS_FLASH_ABSOLUTE_HLS_EXCE_SIZE 0x80000
33
34/*physical addr of plat exception save area */
35#define OS_FLASH_ABSOLUTE_PLAT_EXCE_BASE_ADDR (FLASH_BASE_ADDR + 0x180000)
36#define OS_FLASH_ABSOLUTE_PLAT_EXCE_SIZE 0x80000
37
38/*physical addr of AMT data*/
39#define OS_FLASH_ABSOLUTE_AMT_DATA_BASE_ADDR (FLASH_BASE_ADDR + 0x200000)
40#define OS_FLASH_ABSOLUTE_AMT_DATA_SIZE 0x80000
41
42/* DSP code */
43#define OS_FLASH_TEAK_DSP_BASE_ADDR (FLASH_BASE_ADDR + 0x280000)
44#define OS_FLASH_TEAK_DSP_SIZE 0x80000
45
46#define OS_FLASH_ZSP_LTE_BASE_ADDR (FLASH_BASE_ADDR + 0x300000)
47#define OS_FLASH_ZSP_LTE_VERSION_LEN_ADDR (FLASH_BASE_ADDR + 0x37FFFC)
48
49#define OS_FLASH_ZSP_TD_BASE_ADDR (FLASH_BASE_ADDR + 0x1700000)
50#define OS_FLASH_ZSP_TD_VERSION_LEN_ADDR (FLASH_BASE_ADDR + 0x177FFFC)
51
52#define OS_FLASH_ZSP_DSP_SIZE 0x80000
53#define OS_FLASH_ZSP_DSP_VERSION_LEN_SIZE 0x4
54
55/*logo*/
56#define OS_LOGO_BASE_ADDR (FLASH_BASE_ADDR + 0x380000)
57#define OS_LOGO_SIZE 0x80000
58
59/* physical address of code */
60#define OS_FLASH_CODE_BASE_ADDR (FLASH_BASE_ADDR + 0x400000)
61#define OS_FLASH_CODE_SIZE 0x2000000
62
63/* physical addr of workarea nvram */
64#define OS_FLASH_ABSOLUTE_WORKAREA_NVRAM_BASE_ADDR (FLASH_BASE_ADDR + 0x2A80000)
65#define OS_FLASH_ABSOLUTE_WORKAREA_NVRAM_SIZE 0x300000
66
67/* physical addr of backup nvram */
68#define OS_FLASH_ABSOLUTE_BACKUP_NVRAM_BASE_ADDR (FLASH_BASE_ADDR + 0x2D80000)
69#define OS_FLASH_ABSOLUTE_BACKUP_NVRAM_SIZE 0x200000
70
71/* physical addr of work area symbol */
72#define OS_FLASH_ABSOLUTE_WORK_AREA_SYMBOL_ADDR (FLASH_BASE_ADDR + 0x3000000)
73
74/* physical addr of backup area symbol */
75#define OS_FLASH_ABSOLUTE_BACKUP_AREA_SYMBOL_ADDR (FLASH_BASE_ADDR + 0x3020000)
76
77#ifdef _USE_DATACARD
78/*for cdrom*/
79#define OS_FLASH_ABSOLUTE_USB_CDROM_BASE_ADDR (FLASH_BASE_ADDR + 0x3100000)
80#define OS_FLASH_ABSOLUTE_USB_CDROM_SIZE 0xC00000
81
82/*for udisk*/
83#define OS_FLASH_ABSOLUTE_USB_UDISK_BASE_ADDR (FLASH_BASE_ADDR + 0x3D00000)
84#define OS_FLASH_ABSOLUTE_USB_UDISK_SIZE 0x4000000
85
86
87/*physical addr of system FS*/
88#define OS_FLASH_ABSOLUTE_SYS_FS_BASE_ADDR (FLASH_BASE_ADDR + 0x7E00000)
89#define OS_FLASH_ABSOLUTE_SYS_FS_SIZE 0x200000
90
91/*physical addr of user FS*/
92#define OS_FLASH_ABSOLUTE_USER_FS_BASE_ADDR (FLASH_BASE_ADDR + 0x8000000)
93#define OS_FLASH_ABSOLUTE_USER_FS_SIZE 0x0
94#else
95/*for cdrom*/
96#define OS_FLASH_ABSOLUTE_USB_CDROM_BASE_ADDR (FLASH_BASE_ADDR + 0x3100000)
97#define OS_FLASH_ABSOLUTE_USB_CDROM_SIZE 0x1D00000
98
99/*for udisk*/
100#define OS_FLASH_ABSOLUTE_USB_UDISK_BASE_ADDR (FLASH_BASE_ADDR + 0x3100000)
101#define OS_FLASH_ABSOLUTE_USB_UDISK_SIZE 0x1D00000
102
103/*physical addr of system FS*/
104#define OS_FLASH_ABSOLUTE_SYS_FS_BASE_ADDR (FLASH_BASE_ADDR + 0x5100000)
105#define OS_FLASH_ABSOLUTE_SYS_FS_SIZE 0x2800000
106
107/*physical addr of user FS*/
108#define OS_FLASH_ABSOLUTE_USER_FS_BASE_ADDR (FLASH_BASE_ADDR + 0x7900000)
109#define OS_FLASH_ABSOLUTE_USER_FS_SIZE 0x700000
110#endif
111#endif
112
113#endif/*_NAND_FLASH_H*/
114