mem_map.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /*
  2. * Memory MAP
  3. * Common header file for blackfin BF561 of processors.
  4. */
  5. #ifndef _MEM_MAP_561_H_
  6. #define _MEM_MAP_561_H_
  7. #define COREMMR_BASE 0xFFE00000 /* Core MMRs */
  8. #define SYSMMR_BASE 0xFFC00000 /* System MMRs */
  9. /* Async Memory Banks */
  10. #define ASYNC_BANK3_BASE 0x2C000000 /* Async Bank 3 */
  11. #define ASYNC_BANK3_SIZE 0x04000000 /* 64M */
  12. #define ASYNC_BANK2_BASE 0x28000000 /* Async Bank 2 */
  13. #define ASYNC_BANK2_SIZE 0x04000000 /* 64M */
  14. #define ASYNC_BANK1_BASE 0x24000000 /* Async Bank 1 */
  15. #define ASYNC_BANK1_SIZE 0x04000000 /* 64M */
  16. #define ASYNC_BANK0_BASE 0x20000000 /* Async Bank 0 */
  17. #define ASYNC_BANK0_SIZE 0x04000000 /* 64M */
  18. /* Boot ROM Memory */
  19. #define BOOT_ROM_START 0xEF000000
  20. #define BOOT_ROM_LENGTH 0x800
  21. /* Level 1 Memory */
  22. #ifdef CONFIG_BFIN_ICACHE
  23. #define BFIN_ICACHESIZE (16*1024)
  24. #else
  25. #define BFIN_ICACHESIZE (0*1024)
  26. #endif
  27. /* Memory Map for ADSP-BF561 processors */
  28. #ifdef CONFIG_BF561
  29. #define COREA_L1_CODE_START 0xFFA00000
  30. #define COREA_L1_DATA_A_START 0xFF800000
  31. #define COREA_L1_DATA_B_START 0xFF900000
  32. #define COREB_L1_CODE_START 0xFF600000
  33. #define COREB_L1_DATA_A_START 0xFF400000
  34. #define COREB_L1_DATA_B_START 0xFF500000
  35. #define L1_CODE_START COREA_L1_CODE_START
  36. #define L1_DATA_A_START COREA_L1_DATA_A_START
  37. #define L1_DATA_B_START COREA_L1_DATA_B_START
  38. #define L1_CODE_LENGTH 0x4000
  39. #ifdef CONFIG_BFIN_DCACHE
  40. #ifdef CONFIG_BFIN_DCACHE_BANKA
  41. #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)
  42. #define L1_DATA_A_LENGTH (0x8000 - 0x4000)
  43. #define L1_DATA_B_LENGTH 0x8000
  44. #define BFIN_DCACHESIZE (16*1024)
  45. #define BFIN_DSUPBANKS 1
  46. #else
  47. #define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0)
  48. #define L1_DATA_A_LENGTH (0x8000 - 0x4000)
  49. #define L1_DATA_B_LENGTH (0x8000 - 0x4000)
  50. #define BFIN_DCACHESIZE (32*1024)
  51. #define BFIN_DSUPBANKS 2
  52. #endif
  53. #else
  54. #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)
  55. #define L1_DATA_A_LENGTH 0x8000
  56. #define L1_DATA_B_LENGTH 0x8000
  57. #define BFIN_DCACHESIZE (0*1024)
  58. #define BFIN_DSUPBANKS 0
  59. #endif /*CONFIG_BFIN_DCACHE*/
  60. #endif
  61. /* Level 2 Memory */
  62. #define L2_START 0xFEB00000
  63. #define L2_LENGTH 0x20000
  64. /* Scratch Pad Memory */
  65. #define COREA_L1_SCRATCH_START 0xFFB00000
  66. #define COREB_L1_SCRATCH_START 0xFF700000
  67. #define L1_SCRATCH_START COREA_L1_SCRATCH_START
  68. #define L1_SCRATCH_LENGTH 0x1000
  69. #endif /* _MEM_MAP_533_H_ */