#ifndef __PTAB__H__
#define __PTAB__H__




/* flash5 */
#undef  FLASH_TABLE_START_ADDR
#define FLASH_TABLE_START_ADDR                             (0x1C000000)
#undef  FLASH_TABLE_SIZE
#define FLASH_TABLE_SIZE                                   (0x00005000)
#undef  FLASH_TABLE_OFFSET
#define FLASH_TABLE_OFFSET                                 (0x00000000)
#define CODE_START_ADDR                                    (FLASH_TABLE_START_ADDR)
#define CODE_SIZE                                          (FLASH_TABLE_SIZE)
#undef  FLASH_BOOT_LOADER_START_ADDR
#define FLASH_BOOT_LOADER_START_ADDR                       (0x1C020000)
#undef  FLASH_BOOT_LOADER_SIZE
#define FLASH_BOOT_LOADER_SIZE                             (0x00020000)
#undef  FLASH_BOOT_LOADER_OFFSET
#define FLASH_BOOT_LOADER_OFFSET                           (0x00020000)


/* psram1 */
#define PSRAM_BL_MODE                                      (0x00000003)
#define PSRAM_BL_SIZE                                      (0x00000008)
#define PSRAM_BL_MPI                                       (0x00000001)
#undef  PSRAM_DATA_START_ADDR
#define PSRAM_DATA_START_ADDR                              (0x60200000)
#undef  PSRAM_DATA_SIZE
#define PSRAM_DATA_SIZE                                    (0x00600000)
#undef  PSRAM_DATA_OFFSET
#define PSRAM_DATA_OFFSET                                  (0x00200000)


/* psram1_cbus */
#undef  HCPU_FLASH_CODE_START_ADDR
#define HCPU_FLASH_CODE_START_ADDR                         (0x10000000)
#undef  HCPU_FLASH_CODE_SIZE
#define HCPU_FLASH_CODE_SIZE                               (0x00200000)
#undef  HCPU_FLASH_CODE_OFFSET
#define HCPU_FLASH_CODE_OFFSET                             (0x00000000)
#undef  DFU_PSRAM_CODE_START_ADDR
#define DFU_PSRAM_CODE_START_ADDR                          (0x10000000)
#undef  DFU_PSRAM_CODE_SIZE
#define DFU_PSRAM_CODE_SIZE                                (0x00080000)
#undef  DFU_PSRAM_CODE_OFFSET
#define DFU_PSRAM_CODE_OFFSET                              (0x00000000)


/* psram2 */
#undef  PSRAM_DATA2_START_ADDR
#define PSRAM_DATA2_START_ADDR                             (0x60800000)
#undef  PSRAM_DATA2_SIZE
#define PSRAM_DATA2_SIZE                                   (0x00400000)
#undef  PSRAM_DATA2_OFFSET
#define PSRAM_DATA2_OFFSET                                 (0x00000000)


/* flash3 */
#undef  HCPU_FLASH_CODE_LOAD_REGION_START_ADDR
#define HCPU_FLASH_CODE_LOAD_REGION_START_ADDR             (0x64000000)
#undef  HCPU_FLASH_CODE_LOAD_REGION_SIZE
#define HCPU_FLASH_CODE_LOAD_REGION_SIZE                   (0x00200000)
#undef  HCPU_FLASH_CODE_LOAD_REGION_OFFSET
#define HCPU_FLASH_CODE_LOAD_REGION_OFFSET                 (0x00000000)
#undef  DFU_FLASH_CODE_START_ADDR
#define DFU_FLASH_CODE_START_ADDR                          (0x64200000)
#undef  DFU_FLASH_CODE_SIZE
#define DFU_FLASH_CODE_SIZE                                (0x00080000)
#undef  DFU_FLASH_CODE_OFFSET
#define DFU_FLASH_CODE_OFFSET                              (0x00200000)
#undef  DFU_INFO_REGION_START_ADDR
#define DFU_INFO_REGION_START_ADDR                         (0x64280000)
#undef  DFU_INFO_REGION_SIZE
#define DFU_INFO_REGION_SIZE                               (0x00020000)
#undef  DFU_INFO_REGION_OFFSET
#define DFU_INFO_REGION_OFFSET                             (0x00280000)
#undef  DFU_DOWNLOAD_REGION_START_ADDR
#define DFU_DOWNLOAD_REGION_START_ADDR                     (0x642A0000)
#undef  DFU_DOWNLOAD_REGION_SIZE
#define DFU_DOWNLOAD_REGION_SIZE                           (0x00360000)
#undef  DFU_DOWNLOAD_REGION_OFFSET
#define DFU_DOWNLOAD_REGION_OFFSET                         (0x002A0000)
#undef  FS_REGION_START_ADDR
#define FS_REGION_START_ADDR                               (0x64600000)
#undef  FS_REGION_SIZE
#define FS_REGION_SIZE                                     (0x00400000)
#undef  FS_REGION_OFFSET
#define FS_REGION_OFFSET                                   (0x00600000)
#undef  KVDB_DFU_REGION_START_ADDR
#define KVDB_DFU_REGION_START_ADDR                         (0x64A00000)
#undef  KVDB_DFU_REGION_SIZE
#define KVDB_DFU_REGION_SIZE                               (0x00004000)
#undef  KVDB_DFU_REGION_OFFSET
#define KVDB_DFU_REGION_OFFSET                             (0x00A00000)
#undef  KVDB_BLE_REGION_START_ADDR
#define KVDB_BLE_REGION_START_ADDR                         (0x64A04000)
#undef  KVDB_BLE_REGION_SIZE
#define KVDB_BLE_REGION_SIZE                               (0x00004000)
#undef  KVDB_BLE_REGION_OFFSET
#define KVDB_BLE_REGION_OFFSET                             (0x00A04000)


/* hpsys_ram */
#undef  HCPU_RAM_DATA_START_ADDR
#define HCPU_RAM_DATA_START_ADDR                           (0x20000000)
#undef  HCPU_RAM_DATA_SIZE
#define HCPU_RAM_DATA_SIZE                                 (0x000B3800)
#undef  HCPU_RAM_DATA_OFFSET
#define HCPU_RAM_DATA_OFFSET                               (0x00000000)
#undef  HCPU_RO_DATA_START_ADDR
#define HCPU_RO_DATA_START_ADDR                            (0x200B3800)
#undef  HCPU_RO_DATA_SIZE
#define HCPU_RO_DATA_SIZE                                  (0x00014000)
#undef  HCPU_RO_DATA_OFFSET
#define HCPU_RO_DATA_OFFSET                                (0x000B3800)
#undef  HPSYS_MBOX_START_ADDR
#define HPSYS_MBOX_START_ADDR                              (0x200C7800)
#undef  HPSYS_MBOX_SIZE
#define HPSYS_MBOX_SIZE                                    (0x00000400)
#undef  HPSYS_MBOX_OFFSET
#define HPSYS_MBOX_OFFSET                                  (0x000C7800)
#undef  HCPU2LCPU_MB_CH2_BUF_START_ADDR
#define HCPU2LCPU_MB_CH2_BUF_START_ADDR                    (0x200C7C00)
#undef  HCPU2LCPU_MB_CH2_BUF_SIZE
#define HCPU2LCPU_MB_CH2_BUF_SIZE                          (0x00000200)
#undef  HCPU2LCPU_MB_CH2_BUF_OFFSET
#define HCPU2LCPU_MB_CH2_BUF_OFFSET                        (0x000C7C00)
#undef  HCPU2LCPU_MB_CH1_BUF_START_ADDR
#define HCPU2LCPU_MB_CH1_BUF_START_ADDR                    (0x200C7E00)
#undef  HCPU2LCPU_MB_CH1_BUF_SIZE
#define HCPU2LCPU_MB_CH1_BUF_SIZE                          (0x00000200)
#undef  HCPU2LCPU_MB_CH1_BUF_OFFSET
#define HCPU2LCPU_MB_CH1_BUF_OFFSET                        (0x000C7E00)



#endif
