bf533.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /*
  2. * SYSTEM MMR REGISTER AND MEMORY MAP FOR ADSP-BF561
  3. *
  4. * Copyright 2005-2008 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #ifndef __MACH_BF533_H__
  9. #define __MACH_BF533_H__
  10. #define OFFSET_(x) ((x) & 0x0000FFFF)
  11. /*some misc defines*/
  12. #define IMASK_IVG15 0x8000
  13. #define IMASK_IVG14 0x4000
  14. #define IMASK_IVG13 0x2000
  15. #define IMASK_IVG12 0x1000
  16. #define IMASK_IVG11 0x0800
  17. #define IMASK_IVG10 0x0400
  18. #define IMASK_IVG9 0x0200
  19. #define IMASK_IVG8 0x0100
  20. #define IMASK_IVG7 0x0080
  21. #define IMASK_IVGTMR 0x0040
  22. #define IMASK_IVGHW 0x0020
  23. /***************************/
  24. #define BFIN_DSUBBANKS 4
  25. #define BFIN_DWAYS 2
  26. #define BFIN_DLINES 64
  27. #define BFIN_ISUBBANKS 4
  28. #define BFIN_IWAYS 4
  29. #define BFIN_ILINES 32
  30. #define WAY0_L 0x1
  31. #define WAY1_L 0x2
  32. #define WAY01_L 0x3
  33. #define WAY2_L 0x4
  34. #define WAY02_L 0x5
  35. #define WAY12_L 0x6
  36. #define WAY012_L 0x7
  37. #define WAY3_L 0x8
  38. #define WAY03_L 0x9
  39. #define WAY13_L 0xA
  40. #define WAY013_L 0xB
  41. #define WAY32_L 0xC
  42. #define WAY320_L 0xD
  43. #define WAY321_L 0xE
  44. #define WAYALL_L 0xF
  45. #define DMC_ENABLE (2<<2) /*yes, 2, not 1 */
  46. /* IAR0 BIT FIELDS*/
  47. #define RTC_ERROR_BIT 0x0FFFFFFF
  48. #define UART_ERROR_BIT 0xF0FFFFFF
  49. #define SPORT1_ERROR_BIT 0xFF0FFFFF
  50. #define SPI_ERROR_BIT 0xFFF0FFFF
  51. #define SPORT0_ERROR_BIT 0xFFFF0FFF
  52. #define PPI_ERROR_BIT 0xFFFFF0FF
  53. #define DMA_ERROR_BIT 0xFFFFFF0F
  54. #define PLLWAKE_ERROR_BIT 0xFFFFFFFF
  55. /* IAR1 BIT FIELDS*/
  56. #define DMA7_UARTTX_BIT 0x0FFFFFFF
  57. #define DMA6_UARTRX_BIT 0xF0FFFFFF
  58. #define DMA5_SPI_BIT 0xFF0FFFFF
  59. #define DMA4_SPORT1TX_BIT 0xFFF0FFFF
  60. #define DMA3_SPORT1RX_BIT 0xFFFF0FFF
  61. #define DMA2_SPORT0TX_BIT 0xFFFFF0FF
  62. #define DMA1_SPORT0RX_BIT 0xFFFFFF0F
  63. #define DMA0_PPI_BIT 0xFFFFFFFF
  64. /* IAR2 BIT FIELDS*/
  65. #define WDTIMER_BIT 0x0FFFFFFF
  66. #define MEMDMA1_BIT 0xF0FFFFFF
  67. #define MEMDMA0_BIT 0xFF0FFFFF
  68. #define PFB_BIT 0xFFF0FFFF
  69. #define PFA_BIT 0xFFFF0FFF
  70. #define TIMER2_BIT 0xFFFFF0FF
  71. #define TIMER1_BIT 0xFFFFFF0F
  72. #define TIMER0_BIT 0xFFFFFFFF
  73. /********************************* EBIU Settings ************************************/
  74. #define AMBCTL0VAL ((CONFIG_BANK_1 << 16) | CONFIG_BANK_0)
  75. #define AMBCTL1VAL ((CONFIG_BANK_3 << 16) | CONFIG_BANK_2)
  76. #ifdef CONFIG_C_AMBEN_ALL
  77. #define V_AMBEN AMBEN_ALL
  78. #endif
  79. #ifdef CONFIG_C_AMBEN
  80. #define V_AMBEN 0x0
  81. #endif
  82. #ifdef CONFIG_C_AMBEN_B0
  83. #define V_AMBEN AMBEN_B0
  84. #endif
  85. #ifdef CONFIG_C_AMBEN_B0_B1
  86. #define V_AMBEN AMBEN_B0_B1
  87. #endif
  88. #ifdef CONFIG_C_AMBEN_B0_B1_B2
  89. #define V_AMBEN AMBEN_B0_B1_B2
  90. #endif
  91. #ifdef CONFIG_C_AMCKEN
  92. #define V_AMCKEN AMCKEN
  93. #else
  94. #define V_AMCKEN 0x0
  95. #endif
  96. #ifdef CONFIG_C_CDPRIO
  97. #define V_CDPRIO 0x100
  98. #else
  99. #define V_CDPRIO 0x0
  100. #endif
  101. #define AMGCTLVAL (V_AMBEN | V_AMCKEN | V_CDPRIO)
  102. #ifdef CONFIG_BF533
  103. #define CPU "BF533"
  104. #define CPUID 0x27a5
  105. #endif
  106. #ifdef CONFIG_BF532
  107. #define CPU "BF532"
  108. #define CPUID 0x27a5
  109. #endif
  110. #ifdef CONFIG_BF531
  111. #define CPU "BF531"
  112. #define CPUID 0x27a5
  113. #endif
  114. #ifndef CPU
  115. #error "Unknown CPU type - This kernel doesn't seem to be configured properly"
  116. #endif
  117. #endif /* __MACH_BF533_H__ */