mem_map.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*
  2. * File: include/asm-blackfin/mach-bf533/mem_map.h
  3. * Based on:
  4. * Author:
  5. *
  6. * Created:
  7. * Description:
  8. *
  9. * Rev:
  10. *
  11. * Modified:
  12. *
  13. * Bugs: Enter bugs at http://blackfin.uclinux.org/
  14. *
  15. * This program is free software; you can redistribute it and/or modify
  16. * it under the terms of the GNU General Public License as published by
  17. * the Free Software Foundation; either version 2, or (at your option)
  18. * any later version.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU General Public License
  26. * along with this program; see the file COPYING.
  27. * If not, write to the Free Software Foundation,
  28. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  29. */
  30. #ifndef _MEM_MAP_533_H_
  31. #define _MEM_MAP_533_H_
  32. #define COREMMR_BASE 0xFFE00000 /* Core MMRs */
  33. #define SYSMMR_BASE 0xFFC00000 /* System MMRs */
  34. /* Async Memory Banks */
  35. #define ASYNC_BANK3_BASE 0x20300000 /* Async Bank 3 */
  36. #define ASYNC_BANK3_SIZE 0x00100000 /* 1M */
  37. #define ASYNC_BANK2_BASE 0x20200000 /* Async Bank 2 */
  38. #define ASYNC_BANK2_SIZE 0x00100000 /* 1M */
  39. #define ASYNC_BANK1_BASE 0x20100000 /* Async Bank 1 */
  40. #define ASYNC_BANK1_SIZE 0x00100000 /* 1M */
  41. #define ASYNC_BANK0_BASE 0x20000000 /* Async Bank 0 */
  42. #define ASYNC_BANK0_SIZE 0x00100000 /* 1M */
  43. /* Boot ROM Memory */
  44. #define BOOT_ROM_START 0xEF000000
  45. #define BOOT_ROM_LENGTH 0x400
  46. /* Level 1 Memory */
  47. #ifdef CONFIG_BFIN_ICACHE
  48. #define BFIN_ICACHESIZE (16*1024)
  49. #else
  50. #define BFIN_ICACHESIZE (0*1024)
  51. #endif
  52. /* Memory Map for ADSP-BF533 processors */
  53. #ifdef CONFIG_BF533
  54. #define L1_CODE_START 0xFFA00000
  55. #define L1_DATA_A_START 0xFF800000
  56. #define L1_DATA_B_START 0xFF900000
  57. #ifdef CONFIG_BFIN_ICACHE
  58. #define L1_CODE_LENGTH (0x14000 - 0x4000)
  59. #else
  60. #define L1_CODE_LENGTH 0x14000
  61. #endif
  62. #ifdef CONFIG_BFIN_DCACHE
  63. #ifdef CONFIG_BFIN_DCACHE_BANKA
  64. #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)
  65. #define L1_DATA_A_LENGTH (0x8000 - 0x4000)
  66. #define L1_DATA_B_LENGTH 0x8000
  67. #define BFIN_DCACHESIZE (16*1024)
  68. #define BFIN_DSUPBANKS 1
  69. #else
  70. #define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0)
  71. #define L1_DATA_A_LENGTH (0x8000 - 0x4000)
  72. #define L1_DATA_B_LENGTH (0x8000 - 0x4000)
  73. #define BFIN_DCACHESIZE (32*1024)
  74. #define BFIN_DSUPBANKS 2
  75. #endif
  76. #else
  77. #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)
  78. #define L1_DATA_A_LENGTH 0x8000
  79. #define L1_DATA_B_LENGTH 0x8000
  80. #define BFIN_DCACHESIZE (0*1024)
  81. #define BFIN_DSUPBANKS 0
  82. #endif /*CONFIG_BFIN_DCACHE*/
  83. #endif
  84. /* Memory Map for ADSP-BF532 processors */
  85. #ifdef CONFIG_BF532
  86. #define L1_CODE_START 0xFFA08000
  87. #define L1_DATA_A_START 0xFF804000
  88. #define L1_DATA_B_START 0xFF904000
  89. #ifdef CONFIG_BFIN_ICACHE
  90. #define L1_CODE_LENGTH (0xC000 - 0x4000)
  91. #else
  92. #define L1_CODE_LENGTH 0xC000
  93. #endif
  94. #ifdef CONFIG_BFIN_DCACHE
  95. #ifdef CONFIG_BFIN_DCACHE_BANKA
  96. #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)
  97. #define L1_DATA_A_LENGTH (0x4000 - 0x4000)
  98. #define L1_DATA_B_LENGTH 0x4000
  99. #define BFIN_DCACHESIZE (16*1024)
  100. #define BFIN_DSUPBANKS 1
  101. #else
  102. #define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0)
  103. #define L1_DATA_A_LENGTH (0x4000 - 0x4000)
  104. #define L1_DATA_B_LENGTH (0x4000 - 0x4000)
  105. #define BFIN_DCACHESIZE (32*1024)
  106. #define BFIN_DSUPBANKS 2
  107. #endif
  108. #else
  109. #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)
  110. #define L1_DATA_A_LENGTH 0x4000
  111. #define L1_DATA_B_LENGTH 0x4000
  112. #define BFIN_DCACHESIZE (0*1024)
  113. #define BFIN_DSUPBANKS 0
  114. #endif /*CONFIG_BFIN_DCACHE*/
  115. #endif
  116. /* Memory Map for ADSP-BF531 processors */
  117. #ifdef CONFIG_BF531
  118. #define L1_CODE_START 0xFFA08000
  119. #define L1_DATA_A_START 0xFF804000
  120. #define L1_DATA_B_START 0xFF904000
  121. #define L1_CODE_LENGTH 0x4000
  122. #define L1_DATA_B_LENGTH 0x0000
  123. #ifdef CONFIG_BFIN_DCACHE
  124. #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)
  125. #define L1_DATA_A_LENGTH (0x4000 - 0x4000)
  126. #define BFIN_DCACHESIZE (16*1024)
  127. #define BFIN_DSUPBANKS 1
  128. #else
  129. #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)
  130. #define L1_DATA_A_LENGTH 0x4000
  131. #define BFIN_DCACHESIZE (0*1024)
  132. #define BFIN_DSUPBANKS 0
  133. #endif
  134. #endif
  135. /* Level 2 Memory - none */
  136. #define L2_START 0
  137. #define L2_LENGTH 0
  138. /* Scratch Pad Memory */
  139. #define L1_SCRATCH_START 0xFFB00000
  140. #define L1_SCRATCH_LENGTH 0x1000
  141. #endif /* _MEM_MAP_533_H_ */