bf527.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. * File: include/asm-blackfin/mach-bf527/bf527.h
  3. * Based on: include/asm-blackfin/mach-bf537/bf537.h
  4. * Author: Michael Hennerich (michael.hennerich@analog.com)
  5. *
  6. * Created:
  7. * Description: SYSTEM MMR REGISTER AND MEMORY MAP FOR ADSP-BF527
  8. *
  9. * Modified:
  10. * Copyright 2004-2007 Analog Devices Inc.
  11. *
  12. * Bugs: Enter bugs at http://blackfin.uclinux.org/
  13. *
  14. * This program is free software; you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License as published by
  16. * the Free Software Foundation; either version 2 of the License, or
  17. * (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program; if not, see the file COPYING, or write
  26. * to the Free Software Foundation, Inc.,
  27. * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  28. */
  29. #ifndef __MACH_BF527_H__
  30. #define __MACH_BF527_H__
  31. #define SUPPORTED_REVID 2
  32. #define OFFSET_(x) ((x) & 0x0000FFFF)
  33. /*some misc defines*/
  34. #define IMASK_IVG15 0x8000
  35. #define IMASK_IVG14 0x4000
  36. #define IMASK_IVG13 0x2000
  37. #define IMASK_IVG12 0x1000
  38. #define IMASK_IVG11 0x0800
  39. #define IMASK_IVG10 0x0400
  40. #define IMASK_IVG9 0x0200
  41. #define IMASK_IVG8 0x0100
  42. #define IMASK_IVG7 0x0080
  43. #define IMASK_IVGTMR 0x0040
  44. #define IMASK_IVGHW 0x0020
  45. /***************************/
  46. #define BFIN_DSUBBANKS 4
  47. #define BFIN_DWAYS 2
  48. #define BFIN_DLINES 64
  49. #define BFIN_ISUBBANKS 4
  50. #define BFIN_IWAYS 4
  51. #define BFIN_ILINES 32
  52. #define WAY0_L 0x1
  53. #define WAY1_L 0x2
  54. #define WAY01_L 0x3
  55. #define WAY2_L 0x4
  56. #define WAY02_L 0x5
  57. #define WAY12_L 0x6
  58. #define WAY012_L 0x7
  59. #define WAY3_L 0x8
  60. #define WAY03_L 0x9
  61. #define WAY13_L 0xA
  62. #define WAY013_L 0xB
  63. #define WAY32_L 0xC
  64. #define WAY320_L 0xD
  65. #define WAY321_L 0xE
  66. #define WAYALL_L 0xF
  67. #define DMC_ENABLE (2<<2) /*yes, 2, not 1 */
  68. /********************************* EBIU Settings ************************************/
  69. #define AMBCTL0VAL ((CONFIG_BANK_1 << 16) | CONFIG_BANK_0)
  70. #define AMBCTL1VAL ((CONFIG_BANK_3 << 16) | CONFIG_BANK_2)
  71. #ifdef CONFIG_C_AMBEN_ALL
  72. #define V_AMBEN AMBEN_ALL
  73. #endif
  74. #ifdef CONFIG_C_AMBEN
  75. #define V_AMBEN 0x0
  76. #endif
  77. #ifdef CONFIG_C_AMBEN_B0
  78. #define V_AMBEN AMBEN_B0
  79. #endif
  80. #ifdef CONFIG_C_AMBEN_B0_B1
  81. #define V_AMBEN AMBEN_B0_B1
  82. #endif
  83. #ifdef CONFIG_C_AMBEN_B0_B1_B2
  84. #define V_AMBEN AMBEN_B0_B1_B2
  85. #endif
  86. #ifdef CONFIG_C_AMCKEN
  87. #define V_AMCKEN AMCKEN
  88. #else
  89. #define V_AMCKEN 0x0
  90. #endif
  91. #ifdef CONFIG_C_CDPRIO
  92. #define V_CDPRIO 0x100
  93. #else
  94. #define V_CDPRIO 0x0
  95. #endif
  96. #define AMGCTLVAL (V_AMBEN | V_AMCKEN | V_CDPRIO)
  97. #ifdef CONFIG_BF527
  98. #define CPU "BF527"
  99. #endif
  100. #ifdef CONFIG_BF525
  101. #define CPU "BF525"
  102. #endif
  103. #ifdef CONFIG_BF522
  104. #define CPU "BF522"
  105. #endif
  106. #ifndef CPU
  107. #define CPU "UNKNOWN"
  108. #define CPUID 0x0
  109. #endif
  110. #endif /* __MACH_BF527_H__ */