mem_map.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. /* Level 1 Memory */
  19. #ifdef CONFIG_BFIN_ICACHE
  20. #define BFIN_ICACHESIZE (16*1024)
  21. #else
  22. #define BFIN_ICACHESIZE (0*1024)
  23. #endif
  24. /* Memory Map for ADSP-BF561 processors */
  25. #ifdef CONFIG_BF561
  26. #define L1_CODE_START 0xFFA00000
  27. #define L1_DATA_A_START 0xFF800000
  28. #define L1_DATA_B_START 0xFF900000
  29. #define L1_CODE_LENGTH 0x4000
  30. #ifdef CONFIG_BFIN_DCACHE
  31. #ifdef CONFIG_BFIN_DCACHE_BANKA
  32. #define DMEM_CNTR (ACACHE_BSRAM | ENDCPLB | PORT_PREF0)
  33. #define L1_DATA_A_LENGTH (0x8000 - 0x4000)
  34. #define L1_DATA_B_LENGTH 0x8000
  35. #define BFIN_DCACHESIZE (16*1024)
  36. #define BFIN_DSUPBANKS 1
  37. #else
  38. #define DMEM_CNTR (ACACHE_BCACHE | ENDCPLB | PORT_PREF0)
  39. #define L1_DATA_A_LENGTH (0x8000 - 0x4000)
  40. #define L1_DATA_B_LENGTH (0x8000 - 0x4000)
  41. #define BFIN_DCACHESIZE (32*1024)
  42. #define BFIN_DSUPBANKS 2
  43. #endif
  44. #else
  45. #define DMEM_CNTR (ASRAM_BSRAM | ENDCPLB | PORT_PREF0)
  46. #define L1_DATA_A_LENGTH 0x8000
  47. #define L1_DATA_B_LENGTH 0x8000
  48. #define BFIN_DCACHESIZE (0*1024)
  49. #define BFIN_DSUPBANKS 0
  50. #endif /*CONFIG_BFIN_DCACHE*/
  51. #endif
  52. /* Level 2 Memory */
  53. #define L2_START 0xFEB00000
  54. #define L2_LENGTH 0x20000
  55. /* Scratch Pad Memory */
  56. #if defined(CONFIG_BF561)
  57. #define L1_SCRATCH_START 0xFFB00000
  58. #define L1_SCRATCH_LENGTH 0x1000
  59. #endif
  60. #endif /* _MEM_MAP_533_H_ */