hal_address_map.h 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. static const halAddressRange_t gHwMap[] = {
  13. {0x00001000, 0x10000000 - 1}, // ap
  14. {0x10000000, 0x20000000 - 1}, // wcn
  15. {0x20000000, 0x30000000 - 1}, // zsp
  16. {0x40000000, 0x50000000 - 1}, // gge
  17. {0x50000000, 0x60000000 - 1}, // aon & rf
  18. {0x60000000, 0x70000000 - 1}, // flash0
  19. {0x70000000, 0x80000000 - 1}, // flash1
  20. {0x80000000, 0x80000000 + CONFIG_RAM_SIZE - 1}, // psram, ddr
  21. };
  22. static const halBsDumpRegion_t gBsDumpRegions[] = {
  23. {0x60000000, CONFIG_FLASH_SIZE, HAL_BS_REGION_FLASH}, // flash
  24. {0x80000000, CONFIG_RAM_SIZE, 0}, // psram
  25. {0x00100000, 0x4000, 0}, //ap_iram
  26. {0x02000000, 0xc4, 0}, //spiflash1_reg
  27. {0x02040000, 0xc4, 0}, //spiflash2_reg
  28. {0x02080000, 0x2e40, 0}, //gouda
  29. {0x020c0000, 0x32c, 0}, //ap_axidma
  30. {0x04006000, 0x290, 0}, //emmc
  31. {0x04008000, 0x7c, 0}, //spi1
  32. {0x04403000, 0x844, 0}, //sdmmc
  33. {0x04404000, 0xf5c, 0}, //camera
  34. {0x04405000, 0xd8, 0}, //ap_ifc
  35. {0x04800000, 0x4c, 0}, //lzma
  36. {0x04801000, 0x40, 0}, //ap_imem
  37. {0x04802000, 0x9c, 0}, //ap_busmon
  38. {0x04803000, 0x148, 0}, //apb_reg
  39. {0x04804000, 0xa4, 0}, //gouda_reg
  40. {0x04805000, 0x28, 0}, //timer1
  41. {0x04806000, 0x3c, 0}, //timer2
  42. {0x04807000, 0x14, 0}, //i2c1
  43. {0x04808000, 0x14, 0}, //i2c2
  44. {0x04809000, 0x44, 0}, //gpt3
  45. {0x0480a000, 0x104, 0}, //ap_clk
  46. {0x10100000, 0x34000, 0}, //cp_iram
  47. {0x12000000, 0x40, 0}, //f8_reg
  48. {0x12040000, 0x32c, 0}, //cp_axidma
  49. {0x120c0000, 0xc8, 0}, //glb_reg
  50. {0x14000000, 0x34, 0}, //sci1
  51. {0x14001000, 0x34, 0}, //sci2
  52. {0x14002000, 0x60, 0}, //cp_ifc
  53. {0x14003000, 0xc0, 0}, //cp_imem
  54. {0x14004000, 0x9c, 0}, //cp_busmon
  55. {0x14006000, 0x28, 0}, //timer3
  56. {0x14007000, 0x3c, 0}, //timer4
  57. {0x14008000, 0xf4, 0}, //wlan_11b
  58. {0x14009000, 0x150, 0}, //cp_irq0
  59. {0x1400a000, 0x150, 0}, //cp_irq1
  60. {0x18000000, 0x1c008, 0}, //txrx
  61. {0x18100000, 0x2004, 0}, //rfad
  62. {0x18200000, 0x18, 0}, //coeff
  63. {0x18500000, 0x38004, 0}, // measpwr
  64. {0x18600000, 0xd004, 0}, //iddet
  65. {0x18700000, 0x3804, 0}, //uldft
  66. {0x18800000, 0x30004, 0}, //pusch
  67. {0x18900000, 0x60, 0}, //ulpcdci
  68. {0x18a00000, 0x100, 0}, //dlfft
  69. {0x18b00000, 0xc004, 0}, //scirs
  70. {0x18c00000, 0x310, 0}, //hsdl
  71. {0x1a000000, 0x16004, 0}, // rxcapt
  72. {0x50000000, 0x8000, 0}, // rf_isram
  73. {0x50008000, 0x4000, 0}, //rf_dsram
  74. {0x50020000, 0x7c44, 0}, // riscv_debug
  75. {0x50028000, 0x10, 0}, //riscv_intc
  76. {0x5002c000, 0x8, 0}, //riscv_sleep
  77. {0x50030000, 0x360, 0}, //rf_interface_reg
  78. {0x50031000, 0x198, 0}, //rf_ana_reg
  79. {0x50032000, 0x658, 0}, //dfe
  80. {0x50033000, 0xb8, 0}, // tx_dlpf
  81. {0x50034000, 0xdc, 0}, //rtc
  82. {0x50035000, 0x15c, 0}, //rf_sys_ctrl
  83. {0x50036000, 0xac, 0}, //lte-gnss-bitmap
  84. {0x50037000, 0xb8, 0}, //rx_dlpf
  85. {0x50038000, 0x20, 0}, //rffe
  86. {0x50039000, 0x1000, 0}, // watchdog
  87. {0x5003a000, 0x1000, 0}, //timer0
  88. {0x5003b000, 0x50, 0}, //test_tsen
  89. {0x50800000, 0x14000, 0}, //aon_iram
  90. {0x51000000, 0x1000, 0}, //spinlock
  91. {0x51100000, 0x60, 0}, //adi_mst
  92. {0x51200000, 0x80, 0}, //efuse
  93. {0x5140a000, 0x1c, 0}, //aif
  94. {0x5140e000, 0x88, 0}, //aon_ifc
  95. {0x5140f000, 0x1c, 0}, //dbg_host
  96. {0x51500000, 0xd4, 0}, //sys_ctrl
  97. {0x51501000, 0x70, 0}, //ana_wrap1
  98. {0x51502000, 0x48, 0}, //mon_ctrl
  99. {0x51503000, 0x50, 0}, //gpio2
  100. {0x51504000, 0x14, 0}, //i2c3
  101. {0x51505000, 0x34, 0}, //scc_top
  102. {0x51506000, 0x680, 0}, //sysmail
  103. {0x51507000, 0x3c4, 0}, //idle_timer
  104. {0x51508000, 0x54, 0}, //aon_clk_pre
  105. {0x51508800, 0x1a4, 0}, //aon_clk_core
  106. {0x5150a000, 0x6c, 0}, //aud_2ad
  107. {0x5150b000, 0x54, 0}, //gpt2
  108. {0x5150c000, 0x7c, 0}, //spi2
  109. {0x5150d000, 0x44, 0}, //gpt1
  110. {0x5150e000, 0x20, 0}, //djtag_cfg
  111. {0x5150f000, 0x18, 0}, //ana_wap2
  112. {0x51510000, 0x1b8, 0}, //iomux
  113. {0x51600000, 0x1000, 0}, //dmc
  114. {0x51601000, 0x730, 0}, //psram_phy
  115. {0x51602000, 0x200, 0}, //pagespy
  116. {0x51603000, 0x38, 0}, //pub_apb_reg
  117. {0x51702000, 0x158, 0}, //idle_lps
  118. {0x51703000, 0x50, 0}, //gpio1
  119. {0x51705000, 0x8, 0}, //apb_reg
  120. {0x51706000, 0x1c, 0}, //keypad
  121. {0x51707000, 0x60, 0}, //pwrctrl
  122. {0x51708000, 0x44, 0}, //rtc_timer
  123. {0x51709000, 0x8, 0}, //ana_warap3
  124. {0x5170e000, 0x38, 0}, //lps_ifc
  125. {0x51800000, 0x6c, 0}, //dap
  126. {0x52042100, 0x3c, 0}, //cp_qos
  127. {0x52043100, 0x3c, 0}, //ap_qos
  128. {0x52044100, 0x3c, 0}, //aon_qos
  129. {0x52045100, 0x3c, 0}, //gnss_qos
  130. {0x1c000000, 0x32fc, 0}, //gnss_ahb
  131. {0x1c010000, 0x0048, 0}, //gnss_clk_rf
  132. {0x1c020000, 0x0144, 0}, //rft
  133. {0x1c040000, 0x0014, 0}, //gnss_spi
  134. {0x1c050000, 0x0040, 0}, //pps
  135. {0x1cc00000, 0x006c, 0}, //gnss_glb_reg
  136. {0x1cc10000, 0x0358, 0}, //pp
  137. {0x1cd00000, 0x0070, 0}, //ae_fifo0
  138. {0x1cd02000, 0x0088, 0}, //axi
  139. {0x1cd04000, 0x0070, 0}, //ae_fifo1
  140. {0x1cd10000, 0x1000, 0}, //ae_reg
  141. {0x1ce00000, 0x0068, 0}, //te_fifo0
  142. {0x1ce04000, 0x0068, 0}, //te_fifo1
  143. {0x1ce0c000, 0x0ffc, 0}, //te_reg
  144. {0x1cf0c000, 0x0018, 0}, //vitebi
  145. {0x1cf14000, 0x0040, 0}, //rtc
  146. {0x1cf18000, 0x001c, 0}, //data2ram
  147. {0x1cf2c000, 0x001c, 0}, //ldpc
  148. {0, 0, HAL_BS_REGION_END},
  149. };