lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /*******************************************************************************
|
| 2 | * Copyright (C) 2007, ZTE Corporation.
|
| 3 | *
|
| 4 | * File Name:
|
| 5 | * File Mark:
|
| 6 | * Description:
|
| 7 |
|
| 8 | * Others:
|
| 9 | * Version:
|
| 10 | * Author: zhangpei
|
| 11 | * Date:
|
| 12 | * History 1:
|
| 13 | * Date:
|
| 14 | * Version:
|
| 15 | * Author:
|
| 16 | * Modification:
|
| 17 | *
|
| 18 | * History 2:
|
| 19 | ********************************************************************************/
|
| 20 |
|
| 21 | #ifndef _NVCONFIG_H
|
| 22 | #define _NVCONFIG_H
|
| 23 |
|
| 24 | /****************************************************************************
|
| 25 | * Include files
|
| 26 | ****************************************************************************/
|
| 27 | #include "RONvConfig.h"
|
| 28 | #include "RWNvConfig.h"
|
| 29 | #include "ram_config.h"
|
| 30 |
|
| 31 | /****************************************************************************
|
| 32 | * Local Macros
|
| 33 | ****************************************************************************/
|
| 34 | // ZSP²àÎïÀí²ãNVµÄµØÖ·
|
| 35 | //NV-RO-AMT
|
| 36 | #define AMT_CALIB_LTE_NVRAM_BASE_ADDR (DDR_BASE_ADDR_PHY_NV)
|
| 37 | #define AMT_CALIB_LTE_NVRAM_LENTH OS_FLASH_AMT_LTE_RO_NONFAC_SIZE
|
| 38 |
|
| 39 | #define AMT_CALIB_TDS_NVRAM_BASE_ADDR (AMT_CALIB_LTE_NVRAM_BASE_ADDR+AMT_CALIB_LTE_NVRAM_LENTH)
|
| 40 | #define AMT_CALIB_TDS_NVRAM_LENTH OS_FLASH_AMT_TDS_RO_NONFAC_SIZE
|
| 41 |
|
| 42 | #define AMT_CALIB_GGE_NVRAM_BASE_ADDR (AMT_CALIB_TDS_NVRAM_BASE_ADDR+AMT_CALIB_TDS_NVRAM_LENTH)
|
| 43 | #define AMT_CALIB_GGE_NVRAM_LENTH OS_FLASH_AMT_GGE_RO_NONFAC_SIZE
|
| 44 |
|
| 45 | #define AMT_CALIB_WCDMA_NVRAM_BASE_ADDR (AMT_CALIB_GGE_NVRAM_BASE_ADDR+AMT_CALIB_GGE_NVRAM_LENTH)
|
| 46 | #define AMT_CALIB_WCDMA_NVRAM_LENTH OS_FLASH_AMT_WCDMA_RO_NONFAC_SIZE
|
| 47 |
|
| 48 | #define AMT_CALIB_LTEA_NVRAM_BASE_ADDR (AMT_CALIB_WCDMA_NVRAM_BASE_ADDR+AMT_CALIB_WCDMA_NVRAM_LENTH)
|
| 49 | #define AMT_CALIB_LTEA_NVRAM_LENTH OS_FLASH_AMT_LTEA_RO_NONFAC_SIZE
|
| 50 |
|
| 51 | //NV-RW-AMT-USER
|
| 52 | #define AMT_USER_LTE_NVRAM_BASE_ADDR (AMT_CALIB_LTEA_NVRAM_BASE_ADDR+AMT_CALIB_LTEA_NVRAM_LENTH)
|
| 53 | #define AMT_USER_LTE_NVRAM_LENTH OS_FLASH_AMT_RW_USER_LTE_SIZE
|
| 54 |
|
| 55 | #define AMT_USER_TDS_NVRAM_BASE_ADDR (AMT_USER_LTE_NVRAM_BASE_ADDR+AMT_USER_LTE_NVRAM_LENTH)
|
| 56 | #define AMT_USER_TDS_NVRAM_LENTH OS_FLASH_AMT_RW_USER_TDS_SIZE
|
| 57 |
|
| 58 | #define AMT_USER_GGE_NVRAM_BASE_ADDR (AMT_USER_TDS_NVRAM_BASE_ADDR+AMT_USER_TDS_NVRAM_LENTH)
|
| 59 | #define AMT_USER_GGE_NVRAM_LENTH OS_FLASH_AMT_RW_USER_GGE_SIZE
|
| 60 |
|
| 61 | #define AMT_USER_WCDMA_NVRAM_BASE_ADDR (AMT_USER_GGE_NVRAM_BASE_ADDR+AMT_USER_GGE_NVRAM_LENTH)
|
| 62 | #define AMT_USER_WCDMA_NVRAM_LENTH OS_FLASH_AMT_RW_USER_WCDMA_SIZE
|
| 63 |
|
| 64 | #define AMT_USER_LTEA_NVRAM_BASE_ADDR (AMT_USER_WCDMA_NVRAM_BASE_ADDR+AMT_USER_WCDMA_NVRAM_LENTH)
|
| 65 | #define AMT_USER_LTEA_NVRAM_LENTH OS_FLASH_AMT_RW_USER_LTEA_SIZE
|
| 66 |
|
| 67 | //NV-RW-PHY
|
| 68 | #define LTEA_PHY_NVRAM_BASE_ADDR (AMT_USER_LTEA_NVRAM_BASE_ADDR+AMT_USER_LTEA_NVRAM_LENTH)
|
| 69 | #define LTEA_PHY_NVRAM_LENTH OS_FLASH_LTEAPHY_RW_NONFAC_SIZE
|
| 70 |
|
| 71 | #define TDS_PHY_NVRAM_BASE_ADDR (LTEA_PHY_NVRAM_BASE_ADDR+LTEA_PHY_NVRAM_LENTH)
|
| 72 | #define TDS_PHY_NVRAM_LENTH OS_FLASH_TDPHY_RW_NONFAC_SIZE
|
| 73 |
|
| 74 | #define GSM_PHY_NVRAM_BASE_ADDR (TDS_PHY_NVRAM_BASE_ADDR+TDS_PHY_NVRAM_LENTH)
|
| 75 | #define GSM_PHY_NVRAM_LENTH OS_FLASH_GSML1G_RW_NONFAC_SIZE
|
| 76 |
|
| 77 | #define WCDMA_PHY_NVRAM_BASE_ADDR (GSM_PHY_NVRAM_BASE_ADDR+GSM_PHY_NVRAM_LENTH)
|
| 78 | #define WCDMA_PHY_NVRAM_LENTH OS_FLASH_WCDMAPHY_RW_NONFAC_SIZE
|
| 79 |
|
| 80 | #define PHY_CFG_NVRAM_BASE_ADDR (WCDMA_PHY_NVRAM_BASE_ADDR+WCDMA_PHY_NVRAM_LENTH)
|
| 81 | #define PHY_CFG_NVRAM_LENTH OS_FLASH_PHYCFG_RW_NONFAC_SIZE
|
| 82 |
|
| 83 | #define PHY_TXETAB_NVRAM_BASE_ADDR (PHY_CFG_NVRAM_BASE_ADDR+PHY_CFG_NVRAM_LENTH)
|
| 84 | #define PHY_TXETAB_NVRAM_LENTH OS_FLASH_TXETAB_RW_NONFAC_SIZE
|
| 85 |
|
| 86 | #define PHY_NV_CFG_END 0xFFFFFFFF
|
| 87 |
|
| 88 | typedef struct _T_zPhyNVCfg
|
| 89 | {
|
| 90 | UINT32 uNVFlashBaseAddr; /*NV src addr(nand flash)*/
|
| 91 | UINT32 uNVRamBaseAddr; /*NV dst addr(DDRAM)*/
|
| 92 | UINT32 uNVSize; /*NV SIZE*/
|
| 93 | }
|
| 94 | T_zPhyNVCfg;
|
| 95 |
|
| 96 | extern T_zPhyNVCfg g_PhyNVCfg[];
|
| 97 |
|
| 98 | #endif /*_NVCONFIG_H*/
|