anomaly.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. /*
  2. * File: include/asm-blackfin/mach-bf533/anomaly.h
  3. * Bugs: Enter bugs at http://blackfin.uclinux.org/
  4. *
  5. * Copyright (C) 2004-2008 Analog Devices Inc.
  6. * Licensed under the GPL-2 or later.
  7. */
  8. /* This file shoule be up to date with:
  9. * - Revision C, 02/08/2008; ADSP-BF531/BF532/BF533 Blackfin Processor Anomaly List
  10. */
  11. #ifndef _MACH_ANOMALY_H_
  12. #define _MACH_ANOMALY_H_
  13. /* We do not support 0.1 or 0.2 silicon - sorry */
  14. #if __SILICON_REVISION__ < 3
  15. # error will not work on BF533 silicon version 0.0, 0.1, or 0.2
  16. #endif
  17. #if defined(__ADSPBF531__)
  18. # define ANOMALY_BF531 1
  19. #else
  20. # define ANOMALY_BF531 0
  21. #endif
  22. #if defined(__ADSPBF532__)
  23. # define ANOMALY_BF532 1
  24. #else
  25. # define ANOMALY_BF532 0
  26. #endif
  27. #if defined(__ADSPBF533__)
  28. # define ANOMALY_BF533 1
  29. #else
  30. # define ANOMALY_BF533 0
  31. #endif
  32. /* Multi-Issue Instruction with dsp32shiftimm in slot1 and P-reg Store in slot 2 Not Supported */
  33. #define ANOMALY_05000074 (1)
  34. /* UART Line Status Register (UART_LSR) Bits Are Not Updated at the Same Time */
  35. #define ANOMALY_05000099 (__SILICON_REVISION__ < 5)
  36. /* Watchpoint Status Register (WPSTAT) Bits Are Set on Every Corresponding Match */
  37. #define ANOMALY_05000105 (1)
  38. /* DMA_RUN Bit Is Not Valid after a Peripheral Receive Channel DMA Stops */
  39. #define ANOMALY_05000119 (1)
  40. /* Rx.H Cannot Be Used to Access 16-bit System MMR Registers */
  41. #define ANOMALY_05000122 (1)
  42. /* Instruction DMA Can Cause Data Cache Fills to Fail (Boot Implications) */
  43. #define ANOMALY_05000158 (__SILICON_REVISION__ < 5)
  44. /* PPI Data Lengths Between 8 and 16 Do Not Zero Out Upper Bits */
  45. #define ANOMALY_05000166 (1)
  46. /* Turning Serial Ports on with External Frame Syncs */
  47. #define ANOMALY_05000167 (1)
  48. /* PPI_COUNT Cannot Be Programmed to 0 in General Purpose TX or RX Modes */
  49. #define ANOMALY_05000179 (__SILICON_REVISION__ < 5)
  50. /* PPI_DELAY Not Functional in PPI Modes with 0 Frame Syncs */
  51. #define ANOMALY_05000180 (1)
  52. /* Timer Pin Limitations for PPI TX Modes with External Frame Syncs */
  53. #define ANOMALY_05000183 (__SILICON_REVISION__ < 4)
  54. /* False Protection Exceptions */
  55. #define ANOMALY_05000189 (__SILICON_REVISION__ < 4)
  56. /* False I/O Pin Interrupts on Edge-Sensitive Inputs When Polarity Setting Is Changed */
  57. #define ANOMALY_05000193 (__SILICON_REVISION__ < 4)
  58. /* Restarting SPORT in Specific Modes May Cause Data Corruption */
  59. #define ANOMALY_05000194 (__SILICON_REVISION__ < 4)
  60. /* Failing MMR Accesses When Stalled by Preceding Memory Read */
  61. #define ANOMALY_05000198 (__SILICON_REVISION__ < 5)
  62. /* Current DMA Address Shows Wrong Value During Carry Fix */
  63. #define ANOMALY_05000199 (__SILICON_REVISION__ < 4)
  64. /* SPORT TFS and DT Are Incorrectly Driven During Inactive Channels in Certain Conditions */
  65. #define ANOMALY_05000200 (__SILICON_REVISION__ < 5)
  66. /* Receive Frame Sync Not Ignored During Active Frames in SPORT Multi-Channel Mode */
  67. #define ANOMALY_05000201 (__SILICON_REVISION__ < 4)
  68. /* Possible Infinite Stall with Specific Dual-DAG Situation */
  69. #define ANOMALY_05000202 (__SILICON_REVISION__ < 5)
  70. /* Specific Sequence That Can Cause DMA Error or DMA Stopping */
  71. #define ANOMALY_05000203 (__SILICON_REVISION__ < 4)
  72. /* Incorrect data read with write-through cache and allocate cache lines on reads only mode */
  73. #define ANOMALY_05000204 (__SILICON_REVISION__ < 4 && ANOMALY_BF533)
  74. /* Recovery from "Brown-Out" Condition */
  75. #define ANOMALY_05000207 (__SILICON_REVISION__ < 4)
  76. /* VSTAT Status Bit in PLL_STAT Register Is Not Functional */
  77. #define ANOMALY_05000208 (1)
  78. /* Speed Path in Computational Unit Affects Certain Instructions */
  79. #define ANOMALY_05000209 (__SILICON_REVISION__ < 4)
  80. /* UART TX Interrupt Masked Erroneously */
  81. #define ANOMALY_05000215 (__SILICON_REVISION__ < 5)
  82. /* NMI Event at Boot Time Results in Unpredictable State */
  83. #define ANOMALY_05000219 (1)
  84. /* Incorrect Pulse-Width of UART Start Bit */
  85. #define ANOMALY_05000225 (__SILICON_REVISION__ < 5)
  86. /* Scratchpad Memory Bank Reads May Return Incorrect Data */
  87. #define ANOMALY_05000227 (__SILICON_REVISION__ < 5)
  88. /* SPI Slave Boot Mode Modifies Registers from Reset Value */
  89. #define ANOMALY_05000229 (1)
  90. /* UART Receiver is Less Robust Against Baudrate Differences in Certain Conditions */
  91. #define ANOMALY_05000230 (__SILICON_REVISION__ < 5)
  92. /* UART STB Bit Incorrectly Affects Receiver Setting */
  93. #define ANOMALY_05000231 (__SILICON_REVISION__ < 5)
  94. /* PPI_FS3 Is Not Driven in 2 or 3 Internal Frame Sync Transmit Modes */
  95. #define ANOMALY_05000233 (__SILICON_REVISION__ < 4)
  96. /* Incorrect Revision Number in DSPID Register */
  97. #define ANOMALY_05000234 (__SILICON_REVISION__ == 4)
  98. /* DF Bit in PLL_CTL Register Does Not Respond to Hardware Reset */
  99. #define ANOMALY_05000242 (__SILICON_REVISION__ < 4)
  100. /* If I-Cache Is On, CSYNC/SSYNC/IDLE Around Change of Control Causes Failures */
  101. #define ANOMALY_05000244 (__SILICON_REVISION__ < 5)
  102. /* Spurious Hardware Error from an Access in the Shadow of a Conditional Branch */
  103. #define ANOMALY_05000245 (1)
  104. /* Data CPLBs Should Prevent Spurious Hardware Errors */
  105. #define ANOMALY_05000246 (__SILICON_REVISION__ < 5)
  106. /* Incorrect Bit Shift of Data Word in Multichannel (TDM) Mode in Certain Conditions */
  107. #define ANOMALY_05000250 (__SILICON_REVISION__ == 4)
  108. /* Maximum External Clock Speed for Timers */
  109. #define ANOMALY_05000253 (__SILICON_REVISION__ < 5)
  110. /* Incorrect Timer Pulse Width in Single-Shot PWM_OUT Mode with External Clock */
  111. #define ANOMALY_05000254 (__SILICON_REVISION__ > 4)
  112. /* Entering Hibernate State with RTC Seconds Interrupt Not Functional */
  113. #define ANOMALY_05000255 (__SILICON_REVISION__ < 5)
  114. /* Interrupt/Exception During Short Hardware Loop May Cause Bad Instruction Fetches */
  115. #define ANOMALY_05000257 (__SILICON_REVISION__ < 5)
  116. /* Instruction Cache Is Corrupted When Bits 9 and 12 of the ICPLB Data Registers Differ */
  117. #define ANOMALY_05000258 (__SILICON_REVISION__ < 5)
  118. /* ICPLB_STATUS MMR Register May Be Corrupted */
  119. #define ANOMALY_05000260 (__SILICON_REVISION__ < 5)
  120. /* DCPLB_FAULT_ADDR MMR Register May Be Corrupted */
  121. #define ANOMALY_05000261 (__SILICON_REVISION__ < 5)
  122. /* Stores To Data Cache May Be Lost */
  123. #define ANOMALY_05000262 (__SILICON_REVISION__ < 5)
  124. /* Hardware Loop Corrupted When Taking an ICPLB Exception */
  125. #define ANOMALY_05000263 (__SILICON_REVISION__ < 5)
  126. /* CSYNC/SSYNC/IDLE Causes Infinite Stall in Penultimate Instruction in Hardware Loop */
  127. #define ANOMALY_05000264 (__SILICON_REVISION__ < 5)
  128. /* Sensitivity To Noise with Slow Input Edge Rates on External SPORT TX and RX Clocks */
  129. #define ANOMALY_05000265 (__SILICON_REVISION__ < 5)
  130. /* High I/O Activity Causes Output Voltage of Internal Voltage Regulator (Vddint) to Increase */
  131. #define ANOMALY_05000269 (__SILICON_REVISION__ < 5)
  132. /* High I/O Activity Causes Output Voltage of Internal Voltage Regulator (Vddint) to Decrease */
  133. #define ANOMALY_05000270 (__SILICON_REVISION__ < 5)
  134. /* Spontaneous Reset of Internal Voltage Regulator */
  135. #define ANOMALY_05000271 (__SILICON_REVISION__ < 4)
  136. /* Certain Data Cache Writethrough Modes Fail for Vddint <= 0.9V */
  137. #define ANOMALY_05000272 (1)
  138. /* Writes to Synchronous SDRAM Memory May Be Lost */
  139. #define ANOMALY_05000273 (1)
  140. /* Timing Requirements Change for External Frame Sync PPI Modes with Non-Zero PPI_DELAY */
  141. #define ANOMALY_05000276 (1)
  142. /* Writes to an I/O Data Register One SCLK Cycle after an Edge Is Detected May Clear Interrupt */
  143. #define ANOMALY_05000277 (1)
  144. /* Disabling Peripherals with DMA Running May Cause DMA System Instability */
  145. #define ANOMALY_05000278 (1)
  146. /* False Hardware Error Exception When ISR Context Is Not Restored */
  147. #define ANOMALY_05000281 (1)
  148. /* Memory DMA Corruption with 32-Bit Data and Traffic Control */
  149. #define ANOMALY_05000282 (1)
  150. /* System MMR Write Is Stalled Indefinitely When Killed in a Particular Stage */
  151. #define ANOMALY_05000283 (1)
  152. /* SPORTs May Receive Bad Data If FIFOs Fill Up */
  153. #define ANOMALY_05000288 (1)
  154. /* Memory-To-Memory DMA Source/Destination Descriptors Must Be in Same Memory Space */
  155. #define ANOMALY_05000301 (1)
  156. /* SSYNCs After Writes To DMA MMR Registers May Not Be Handled Correctly */
  157. #define ANOMALY_05000302 (__SILICON_REVISION__ < 5)
  158. /* New Feature: Additional Hysteresis on SPORT Input Pins (Not Available On Older Silicon) */
  159. #define ANOMALY_05000305 (__SILICON_REVISION__ < 5)
  160. /* New Feature: Additional PPI Frame Sync Sampling Options (Not Available On Older Silicon) */
  161. #define ANOMALY_05000306 (__SILICON_REVISION__ < 5)
  162. /* SCKELOW Bit Does Not Maintain State Through Hibernate */
  163. #define ANOMALY_05000307 (1)
  164. /* False Hardware Errors Caused by Fetches at the Boundary of Reserved Memory */
  165. #define ANOMALY_05000310 (1)
  166. /* Erroneous Flag (GPIO) Pin Operations under Specific Sequences */
  167. #define ANOMALY_05000311 (1)
  168. /* Errors When SSYNC, CSYNC, or Loads to LT, LB and LC Registers Are Interrupted */
  169. #define ANOMALY_05000312 (1)
  170. /* PPI Is Level-Sensitive on First Transfer */
  171. #define ANOMALY_05000313 (1)
  172. /* Killed System MMR Write Completes Erroneously On Next System MMR Access */
  173. #define ANOMALY_05000315 (1)
  174. /* Internal Voltage Regulator Values of 1.05V, 1.10V and 1.15V Not Allowed for LQFP Packages */
  175. #define ANOMALY_05000319 (ANOMALY_BF531 || ANOMALY_BF532)
  176. /* Serial Port (SPORT) Multichannel Transmit Failure when Channel 0 Is Disabled */
  177. #define ANOMALY_05000357 (1)
  178. /* UART Break Signal Issues */
  179. #define ANOMALY_05000363 (__SILICON_REVISION__ < 5)
  180. /* PPI Underflow Error Goes Undetected in ITU-R 656 Mode */
  181. #define ANOMALY_05000366 (1)
  182. /* Possible RETS Register Corruption when Subroutine Is under 5 Cycles in Duration */
  183. #define ANOMALY_05000371 (1)
  184. /* PPI Does Not Start Properly In Specific Mode */
  185. #define ANOMALY_05000400 (__SILICON_REVISION__ >= 5)
  186. /* SSYNC Stalls Processor when Executed from Non-Cacheable Memory */
  187. #define ANOMALY_05000402 (__SILICON_REVISION__ >= 5)
  188. /* Level-Sensitive External GPIO Wakeups May Cause Indefinite Stall */
  189. #define ANOMALY_05000403 (1)
  190. /* These anomalies have been "phased" out of analog.com anomaly sheets and are
  191. * here to show running on older silicon just isn't feasible.
  192. */
  193. /* Watchpoints (Hardware Breakpoints) are not supported */
  194. #define ANOMALY_05000067 (__SILICON_REVISION__ < 3)
  195. /* Reserved bits in SYSCFG register not set at power on */
  196. #define ANOMALY_05000109 (__SILICON_REVISION__ < 3)
  197. /* Trace Buffers may record discontinuities into emulation mode and/or exception, NMI, reset handlers */
  198. #define ANOMALY_05000116 (__SILICON_REVISION__ < 3)
  199. /* DTEST_COMMAND initiated memory access may be incorrect if data cache or DMA is active */
  200. #define ANOMALY_05000123 (__SILICON_REVISION__ < 3)
  201. /* DMA Lock-up at CCLK to SCLK ratios of 4:1, 2:1, or 1:1 */
  202. #define ANOMALY_05000124 (__SILICON_REVISION__ < 3)
  203. /* Erroneous exception when enabling cache */
  204. #define ANOMALY_05000125 (__SILICON_REVISION__ < 3)
  205. /* SPI clock polarity and phase bits incorrect during booting */
  206. #define ANOMALY_05000126 (__SILICON_REVISION__ < 3)
  207. /* DMEM_CONTROL is not set on Reset */
  208. #define ANOMALY_05000137 (__SILICON_REVISION__ < 3)
  209. /* SPI boot will not complete if there is a zero fill block in the loader file */
  210. #define ANOMALY_05000138 (__SILICON_REVISION__ < 3)
  211. /* Allowing the SPORT RX FIFO to fill will cause an overflow */
  212. #define ANOMALY_05000140 (__SILICON_REVISION__ < 3)
  213. /* An Infinite Stall occurs with a particular sequence of consecutive dual dag events */
  214. #define ANOMALY_05000141 (__SILICON_REVISION__ < 3)
  215. /* Interrupts may be lost when a programmable input flag is configured to be edge sensitive */
  216. #define ANOMALY_05000142 (__SILICON_REVISION__ < 3)
  217. /* A read from external memory may return a wrong value with data cache enabled */
  218. #define ANOMALY_05000143 (__SILICON_REVISION__ < 3)
  219. /* DMA and TESTSET conflict when both are accessing external memory */
  220. #define ANOMALY_05000144 (__SILICON_REVISION__ < 3)
  221. /* In PWM_OUT mode, you must enable the PPI block to generate a waveform from PPI_CLK */
  222. #define ANOMALY_05000145 (__SILICON_REVISION__ < 3)
  223. /* MDMA may lose the first few words of a descriptor chain */
  224. #define ANOMALY_05000146 (__SILICON_REVISION__ < 3)
  225. /* The source MDMA descriptor may stop with a DMA Error */
  226. #define ANOMALY_05000147 (__SILICON_REVISION__ < 3)
  227. /* When booting from a 16-bit asynchronous memory device, the upper 8-bits of each word must be 0x00 */
  228. #define ANOMALY_05000148 (__SILICON_REVISION__ < 3)
  229. /* Frame Delay in SPORT Multichannel Mode */
  230. #define ANOMALY_05000153 (__SILICON_REVISION__ < 3)
  231. /* SPORT TFS signal is active in Multi-channel mode outside of valid channels */
  232. #define ANOMALY_05000154 (__SILICON_REVISION__ < 3)
  233. /* Timer1 can not be used for PWMOUT mode when a certain PPI mode is in use */
  234. #define ANOMALY_05000155 (__SILICON_REVISION__ < 3)
  235. /* A killed 32-bit System MMR write will lead to the next system MMR access thinking it should be 32-bit. */
  236. #define ANOMALY_05000157 (__SILICON_REVISION__ < 3)
  237. /* SPORT transmit data is not gated by external frame sync in certain conditions */
  238. #define ANOMALY_05000163 (__SILICON_REVISION__ < 3)
  239. /* SDRAM auto-refresh and subsequent Power Ups */
  240. #define ANOMALY_05000168 (__SILICON_REVISION__ < 3)
  241. /* DATA CPLB page miss can result in lost write-through cache data writes */
  242. #define ANOMALY_05000169 (__SILICON_REVISION__ < 3)
  243. /* DMA vs Core accesses to external memory */
  244. #define ANOMALY_05000173 (__SILICON_REVISION__ < 3)
  245. /* Cache Fill Buffer Data lost */
  246. #define ANOMALY_05000174 (__SILICON_REVISION__ < 3)
  247. /* Overlapping Sequencer and Memory Stalls */
  248. #define ANOMALY_05000175 (__SILICON_REVISION__ < 3)
  249. /* Multiplication of (-1) by (-1) followed by an accumulator saturation */
  250. #define ANOMALY_05000176 (__SILICON_REVISION__ < 3)
  251. /* Disabling the PPI resets the PPI configuration registers */
  252. #define ANOMALY_05000181 (__SILICON_REVISION__ < 3)
  253. /* PPI TX Mode with 2 External Frame Syncs */
  254. #define ANOMALY_05000185 (__SILICON_REVISION__ < 3)
  255. /* PPI does not invert the Driving PPICLK edge in Transmit Modes */
  256. #define ANOMALY_05000191 (__SILICON_REVISION__ < 3)
  257. /* In PPI Transmit Modes with External Frame Syncs POLC */
  258. #define ANOMALY_05000192 (__SILICON_REVISION__ < 3)
  259. /* Internal Voltage Regulator may not start up */
  260. #define ANOMALY_05000206 (__SILICON_REVISION__ < 3)
  261. /* Anomalies that don't exist on this proc */
  262. #define ANOMALY_05000266 (0)
  263. #define ANOMALY_05000323 (0)
  264. #define ANOMALY_05000353 (1)
  265. #endif