mem_map.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /*
  2. * BF533 memory map
  3. *
  4. * Copyright 2004-2009 Analog Devices Inc.
  5. * Licensed under the GPL-2 or later.
  6. */
  7. #ifndef __BFIN_MACH_MEM_MAP_H__
  8. #define __BFIN_MACH_MEM_MAP_H__
  9. #ifndef __BFIN_MEM_MAP_H__
  10. # error "do not include mach/mem_map.h directly -- use asm/mem_map.h"
  11. #endif
  12. /* Async Memory Banks */
  13. #define ASYNC_BANK3_BASE 0x20300000 /* Async Bank 3 */
  14. #define ASYNC_BANK3_SIZE 0x00100000 /* 1M */
  15. #define ASYNC_BANK2_BASE 0x20200000 /* Async Bank 2 */
  16. #define ASYNC_BANK2_SIZE 0x00100000 /* 1M */
  17. #define ASYNC_BANK1_BASE 0x20100000 /* Async Bank 1 */
  18. #define ASYNC_BANK1_SIZE 0x00100000 /* 1M */
  19. #define ASYNC_BANK0_BASE 0x20000000 /* Async Bank 0 */
  20. #define ASYNC_BANK0_SIZE 0x00100000 /* 1M */
  21. /* Boot ROM Memory */
  22. #define BOOT_ROM_START 0xEF000000
  23. #define BOOT_ROM_LENGTH 0x400
  24. /* Level 1 Memory */
  25. #ifdef CONFIG_BFIN_ICACHE
  26. #define BFIN_ICACHESIZE (16*1024)
  27. #else
  28. #define BFIN_ICACHESIZE (0*1024)
  29. #endif
  30. /* Memory Map for ADSP-BF533 processors */
  31. #ifdef CONFIG_BF533
  32. #define L1_CODE_START 0xFFA00000
  33. #define L1_DATA_A_START 0xFF800000
  34. #define L1_DATA_B_START 0xFF900000
  35. #ifdef CONFIG_BFIN_ICACHE
  36. #define L1_CODE_LENGTH (0x14000 - 0x4000)
  37. #else
  38. #define L1_CODE_LENGTH 0x14000
  39. #endif
  40. #ifdef CONFIG_BFIN_DCACHE
  41. #ifdef CONFIG_BFIN_DCACHE_BANKA
  42. #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)
  43. #define L1_DATA_A_LENGTH (0x8000 - 0x4000)
  44. #define L1_DATA_B_LENGTH 0x8000
  45. #define BFIN_DCACHESIZE (16*1024)
  46. #define BFIN_DSUPBANKS 1
  47. #else
  48. #define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0)
  49. #define L1_DATA_A_LENGTH (0x8000 - 0x4000)
  50. #define L1_DATA_B_LENGTH (0x8000 - 0x4000)
  51. #define BFIN_DCACHESIZE (32*1024)
  52. #define BFIN_DSUPBANKS 2
  53. #endif
  54. #else
  55. #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)
  56. #define L1_DATA_A_LENGTH 0x8000
  57. #define L1_DATA_B_LENGTH 0x8000
  58. #define BFIN_DCACHESIZE (0*1024)
  59. #define BFIN_DSUPBANKS 0
  60. #endif /*CONFIG_BFIN_DCACHE*/
  61. #endif
  62. /* Memory Map for ADSP-BF532 processors */
  63. #ifdef CONFIG_BF532
  64. #define L1_CODE_START 0xFFA08000
  65. #define L1_DATA_A_START 0xFF804000
  66. #define L1_DATA_B_START 0xFF904000
  67. #ifdef CONFIG_BFIN_ICACHE
  68. #define L1_CODE_LENGTH (0xC000 - 0x4000)
  69. #else
  70. #define L1_CODE_LENGTH 0xC000
  71. #endif
  72. #ifdef CONFIG_BFIN_DCACHE
  73. #ifdef CONFIG_BFIN_DCACHE_BANKA
  74. #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)
  75. #define L1_DATA_A_LENGTH (0x4000 - 0x4000)
  76. #define L1_DATA_B_LENGTH 0x4000
  77. #define BFIN_DCACHESIZE (16*1024)
  78. #define BFIN_DSUPBANKS 1
  79. #else
  80. #define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0)
  81. #define L1_DATA_A_LENGTH (0x4000 - 0x4000)
  82. #define L1_DATA_B_LENGTH (0x4000 - 0x4000)
  83. #define BFIN_DCACHESIZE (32*1024)
  84. #define BFIN_DSUPBANKS 2
  85. #endif
  86. #else
  87. #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)
  88. #define L1_DATA_A_LENGTH 0x4000
  89. #define L1_DATA_B_LENGTH 0x4000
  90. #define BFIN_DCACHESIZE (0*1024)
  91. #define BFIN_DSUPBANKS 0
  92. #endif /*CONFIG_BFIN_DCACHE*/
  93. #endif
  94. /* Memory Map for ADSP-BF531 processors */
  95. #ifdef CONFIG_BF531
  96. #define L1_CODE_START 0xFFA08000
  97. #define L1_DATA_A_START 0xFF804000
  98. #define L1_DATA_B_START 0xFF904000
  99. #define L1_CODE_LENGTH 0x4000
  100. #define L1_DATA_B_LENGTH 0x0000
  101. #ifdef CONFIG_BFIN_DCACHE
  102. #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)
  103. #define L1_DATA_A_LENGTH (0x4000 - 0x4000)
  104. #define BFIN_DCACHESIZE (16*1024)
  105. #define BFIN_DSUPBANKS 1
  106. #else
  107. #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)
  108. #define L1_DATA_A_LENGTH 0x4000
  109. #define BFIN_DCACHESIZE (0*1024)
  110. #define BFIN_DSUPBANKS 0
  111. #endif
  112. #endif
  113. #endif