blob: 57c128cc3b6480a57762e5269bbccfb9365a6718 [file] [log] [blame]
Bryan Wu1394f032007-05-06 14:50:22 -07001/*
Mike Frysinger287050f2007-07-24 15:23:20 +08002 * File: include/asm-blackfin/mach-bf537/anomaly.h
3 * Bugs: Enter bugs at http://blackfin.uclinux.org/
Bryan Wu1394f032007-05-06 14:50:22 -07004 *
Mike Frysingerc18e99c2009-03-04 17:36:49 +08005 * Copyright (C) 2004-2009 Analog Devices Inc.
Mike Frysinger287050f2007-07-24 15:23:20 +08006 * Licensed under the GPL-2 or later.
Bryan Wu1394f032007-05-06 14:50:22 -07007 */
8
Mike Frysingera4136472009-05-08 07:40:25 +00009/* This file should be up to date with:
Mike Frysinger6651ece2009-01-07 23:14:38 +080010 * - Revision D, 09/18/2008; ADSP-BF534/ADSP-BF536/ADSP-BF537 Blackfin Processor Anomaly List
Bryan Wu1394f032007-05-06 14:50:22 -070011 */
12
13#ifndef _MACH_ANOMALY_H_
14#define _MACH_ANOMALY_H_
15
16/* We do not support 0.1 silicon - sorry */
Mike Frysinger1aafd902007-07-25 11:19:14 +080017#if __SILICON_REVISION__ < 2
Mike Frysinger7cc1c4b2007-12-24 20:05:09 +080018# error will not work on BF537 silicon version 0.0 or 0.1
Bryan Wu1394f032007-05-06 14:50:22 -070019#endif
20
Mike Frysinger1aafd902007-07-25 11:19:14 +080021#if defined(__ADSPBF534__)
22# define ANOMALY_BF534 1
23#else
24# define ANOMALY_BF534 0
Bryan Wu1394f032007-05-06 14:50:22 -070025#endif
Mike Frysinger1aafd902007-07-25 11:19:14 +080026#if defined(__ADSPBF536__)
27# define ANOMALY_BF536 1
28#else
29# define ANOMALY_BF536 0
30#endif
31#if defined(__ADSPBF537__)
32# define ANOMALY_BF537 1
33#else
34# define ANOMALY_BF537 0
Bryan Wu1394f032007-05-06 14:50:22 -070035#endif
36
Mike Frysingera200ad22009-06-13 06:37:14 -040037/* Multi-Issue Instruction with dsp32shiftimm in slot1 and P-reg Store in slot2 Not Supported */
Mike Frysinger1aafd902007-07-25 11:19:14 +080038#define ANOMALY_05000074 (1)
Mike Frysingera4136472009-05-08 07:40:25 +000039/* DMA_RUN Bit Is Not Valid after a Peripheral Receive Channel DMA Stops */
Mike Frysinger1aafd902007-07-25 11:19:14 +080040#define ANOMALY_05000119 (1)
Mike Frysingera4136472009-05-08 07:40:25 +000041/* Rx.H Cannot Be Used to Access 16-bit System MMR Registers */
Mike Frysinger1aafd902007-07-25 11:19:14 +080042#define ANOMALY_05000122 (1)
Mike Frysingera200ad22009-06-13 06:37:14 -040043/* Killed 32-Bit MMR Write Leads to Next System MMR Access Thinking It Should Be 32-Bit */
Mike Frysinger1aafd902007-07-25 11:19:14 +080044#define ANOMALY_05000157 (__SILICON_REVISION__ < 2)
Mike Frysingera4136472009-05-08 07:40:25 +000045/* PPI_DELAY Not Functional in PPI Modes with 0 Frame Syncs */
Mike Frysinger1aafd902007-07-25 11:19:14 +080046#define ANOMALY_05000180 (1)
47/* Instruction Cache Is Not Functional */
48#define ANOMALY_05000237 (__SILICON_REVISION__ < 2)
Mike Frysingera4136472009-05-08 07:40:25 +000049/* If I-Cache Is On, CSYNC/SSYNC/IDLE Around Change of Control Causes Failures */
Mike Frysinger1aafd902007-07-25 11:19:14 +080050#define ANOMALY_05000244 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000051/* False Hardware Error from an Access in the Shadow of a Conditional Branch */
Mike Frysinger1aafd902007-07-25 11:19:14 +080052#define ANOMALY_05000245 (1)
Mike Frysingera200ad22009-06-13 06:37:14 -040053/* Buffered CLKIN Output Is Disabled by Default */
Mike Frysinger1aafd902007-07-25 11:19:14 +080054#define ANOMALY_05000247 (1)
Mike Frysingera4136472009-05-08 07:40:25 +000055/* Incorrect Bit Shift of Data Word in Multichannel (TDM) Mode in Certain Conditions */
Mike Frysinger1aafd902007-07-25 11:19:14 +080056#define ANOMALY_05000250 (__SILICON_REVISION__ < 3)
Mike Frysingera200ad22009-06-13 06:37:14 -040057/* EMAC TX DMA Error After an Early Frame Abort */
Mike Frysinger1aafd902007-07-25 11:19:14 +080058#define ANOMALY_05000252 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000059/* Maximum External Clock Speed for Timers */
Mike Frysinger1aafd902007-07-25 11:19:14 +080060#define ANOMALY_05000253 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000061/* Incorrect Timer Pulse Width in Single-Shot PWM_OUT Mode with External Clock */
Mike Frysinger1aafd902007-07-25 11:19:14 +080062#define ANOMALY_05000254 (__SILICON_REVISION__ > 2)
Mike Frysingera4136472009-05-08 07:40:25 +000063/* Entering Hibernate State with RTC Seconds Interrupt Not Functional */
Mike Frysinger1aafd902007-07-25 11:19:14 +080064#define ANOMALY_05000255 (__SILICON_REVISION__ < 3)
Mike Frysingera200ad22009-06-13 06:37:14 -040065/* EMAC MDIO Input Latched on Wrong MDC Edge */
Mike Frysinger1aafd902007-07-25 11:19:14 +080066#define ANOMALY_05000256 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000067/* Interrupt/Exception During Short Hardware Loop May Cause Bad Instruction Fetches */
Mike Frysinger1aafd902007-07-25 11:19:14 +080068#define ANOMALY_05000257 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000069/* Instruction Cache Is Corrupted When Bits 9 and 12 of the ICPLB Data Registers Differ */
Mike Frysinger1aafd902007-07-25 11:19:14 +080070#define ANOMALY_05000258 (((ANOMALY_BF536 || ANOMALY_BF537) && __SILICON_REVISION__ == 1) || __SILICON_REVISION__ == 2)
Mike Frysingera4136472009-05-08 07:40:25 +000071/* ICPLB_STATUS MMR Register May Be Corrupted */
Mike Frysinger1aafd902007-07-25 11:19:14 +080072#define ANOMALY_05000260 (__SILICON_REVISION__ == 2)
Mike Frysingera4136472009-05-08 07:40:25 +000073/* DCPLB_FAULT_ADDR MMR Register May Be Corrupted */
Mike Frysinger1aafd902007-07-25 11:19:14 +080074#define ANOMALY_05000261 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000075/* Stores To Data Cache May Be Lost */
Mike Frysinger1aafd902007-07-25 11:19:14 +080076#define ANOMALY_05000262 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000077/* Hardware Loop Corrupted When Taking an ICPLB Exception */
Mike Frysinger1aafd902007-07-25 11:19:14 +080078#define ANOMALY_05000263 (__SILICON_REVISION__ == 2)
Mike Frysingera4136472009-05-08 07:40:25 +000079/* CSYNC/SSYNC/IDLE Causes Infinite Stall in Penultimate Instruction in Hardware Loop */
Mike Frysinger1aafd902007-07-25 11:19:14 +080080#define ANOMALY_05000264 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000081/* Sensitivity To Noise with Slow Input Edge Rates on External SPORT TX and RX Clocks */
Mike Frysinger1aafd902007-07-25 11:19:14 +080082#define ANOMALY_05000265 (1)
Mike Frysingera200ad22009-06-13 06:37:14 -040083/* Memory DMA Error when Peripheral DMA Is Running with Non-Zero DEB_TRAFFIC_PERIOD */
Mike Frysinger1aafd902007-07-25 11:19:14 +080084#define ANOMALY_05000268 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000085/* High I/O Activity Causes Output Voltage of Internal Voltage Regulator (Vddint) to Decrease */
Mike Frysinger1aafd902007-07-25 11:19:14 +080086#define ANOMALY_05000270 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000087/* Certain Data Cache Writethrough Modes Fail for Vddint <= 0.9V */
Mike Frysinger1aafd902007-07-25 11:19:14 +080088#define ANOMALY_05000272 (1)
Mike Frysingera4136472009-05-08 07:40:25 +000089/* Writes to Synchronous SDRAM Memory May Be Lost */
Mike Frysinger1aafd902007-07-25 11:19:14 +080090#define ANOMALY_05000273 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000091/* Writes to an I/O Data Register One SCLK Cycle after an Edge Is Detected May Clear Interrupt */
Mike Frysinger1aafd902007-07-25 11:19:14 +080092#define ANOMALY_05000277 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000093/* Disabling Peripherals with DMA Running May Cause DMA System Instability */
Mike Frysinger1aafd902007-07-25 11:19:14 +080094#define ANOMALY_05000278 (((ANOMALY_BF536 || ANOMALY_BF537) && __SILICON_REVISION__ < 3) || (ANOMALY_BF534 && __SILICON_REVISION__ < 2))
Mike Frysingera200ad22009-06-13 06:37:14 -040095/* SPI Master Boot Mode Does Not Work Well with Atmel Data Flash Devices */
Mike Frysinger1aafd902007-07-25 11:19:14 +080096#define ANOMALY_05000280 (1)
Mike Frysingera200ad22009-06-13 06:37:14 -040097/* False Hardware Error Exception when ISR Context Is Not Restored */
Mike Frysinger1aafd902007-07-25 11:19:14 +080098#define ANOMALY_05000281 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +000099/* Memory DMA Corruption with 32-Bit Data and Traffic Control */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800100#define ANOMALY_05000282 (__SILICON_REVISION__ < 3)
Mike Frysingera200ad22009-06-13 06:37:14 -0400101/* System MMR Write Is Stalled Indefinitely when Killed in a Particular Stage */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800102#define ANOMALY_05000283 (__SILICON_REVISION__ < 3)
Mike Frysingera200ad22009-06-13 06:37:14 -0400103/* TXDWA Bit in EMAC_SYSCTL Register Is Not Functional */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800104#define ANOMALY_05000285 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +0000105/* SPORTs May Receive Bad Data If FIFOs Fill Up */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800106#define ANOMALY_05000288 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +0000107/* Memory-To-Memory DMA Source/Destination Descriptors Must Be in Same Memory Space */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800108#define ANOMALY_05000301 (1)
109/* SSYNCs After Writes To CAN/DMA MMR Registers Are Not Always Handled Correctly */
110#define ANOMALY_05000304 (__SILICON_REVISION__ < 3)
Mike Frysingerc18e99c2009-03-04 17:36:49 +0800111/* SPORT_HYS Bit in PLL_CTL Register Is Not Functional */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800112#define ANOMALY_05000305 (__SILICON_REVISION__ < 3)
113/* SCKELOW Bit Does Not Maintain State Through Hibernate */
114#define ANOMALY_05000307 (__SILICON_REVISION__ < 3)
Mike Frysingera200ad22009-06-13 06:37:14 -0400115/* Writing UART_THR While UART Clock Is Disabled Sends Erroneous Start Bit */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800116#define ANOMALY_05000309 (__SILICON_REVISION__ < 3)
Mike Frysingera4136472009-05-08 07:40:25 +0000117/* False Hardware Errors Caused by Fetches at the Boundary of Reserved Memory */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800118#define ANOMALY_05000310 (1)
Mike Frysingera200ad22009-06-13 06:37:14 -0400119/* Errors when SSYNC, CSYNC, or Loads to LT, LB and LC Registers Are Interrupted */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800120#define ANOMALY_05000312 (1)
Mike Frysingera4136472009-05-08 07:40:25 +0000121/* PPI Is Level-Sensitive on First Transfer In Single Frame Sync Modes */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800122#define ANOMALY_05000313 (1)
Mike Frysingera200ad22009-06-13 06:37:14 -0400123/* Killed System MMR Write Completes Erroneously on Next System MMR Access */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800124#define ANOMALY_05000315 (__SILICON_REVISION__ < 3)
Mike Frysingera200ad22009-06-13 06:37:14 -0400125/* EMAC RMII Mode: Collisions Occur in Full Duplex Mode */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800126#define ANOMALY_05000316 (__SILICON_REVISION__ < 3)
Mike Frysingera200ad22009-06-13 06:37:14 -0400127/* EMAC RMII Mode: TX Frames in Half Duplex Fail with Status "No Carrier" */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800128#define ANOMALY_05000321 (__SILICON_REVISION__ < 3)
Mike Frysingera200ad22009-06-13 06:37:14 -0400129/* EMAC RMII Mode at 10-Base-T Speed: RX Frames Not Received Properly */
Mike Frysinger1aafd902007-07-25 11:19:14 +0800130#define ANOMALY_05000322 (1)
Mike Frysinger7cc1c4b2007-12-24 20:05:09 +0800131/* Ethernet MAC MDIO Reads Do Not Meet IEEE Specification */
132#define ANOMALY_05000341 (__SILICON_REVISION__ >= 3)
Mike Frysingera200ad22009-06-13 06:37:14 -0400133/* UART Gets Disabled after UART Boot */
Mike Frysingera70ce072008-05-31 15:47:17 +0800134#define ANOMALY_05000350 (__SILICON_REVISION__ >= 3)
Sonic Zhang4d555632008-04-25 03:28:10 +0800135/* Regulator Programming Blocked when Hibernate Wakeup Source Remains Active */
136#define ANOMALY_05000355 (1)
Mike Frysinger7cc1c4b2007-12-24 20:05:09 +0800137/* Serial Port (SPORT) Multichannel Transmit Failure when Channel 0 Is Disabled */
138#define ANOMALY_05000357 (1)
139/* DMAs that Go Urgent during Tight Core Writes to External Memory Are Blocked */
140#define ANOMALY_05000359 (1)
Sonic Zhang4d555632008-04-25 03:28:10 +0800141/* PPI Underflow Error Goes Undetected in ITU-R 656 Mode */
142#define ANOMALY_05000366 (1)
143/* Possible RETS Register Corruption when Subroutine Is under 5 Cycles in Duration */
144#define ANOMALY_05000371 (1)
145/* SSYNC Stalls Processor when Executed from Non-Cacheable Memory */
Mike Frysingera70ce072008-05-31 15:47:17 +0800146#define ANOMALY_05000402 (__SILICON_REVISION__ >= 5)
Sonic Zhang4d555632008-04-25 03:28:10 +0800147/* Level-Sensitive External GPIO Wakeups May Cause Indefinite Stall */
148#define ANOMALY_05000403 (1)
Mike Frysinger6651ece2009-01-07 23:14:38 +0800149/* Speculative Fetches Can Cause Undesired External FIFO Operations */
150#define ANOMALY_05000416 (1)
151/* Multichannel SPORT Channel Misalignment Under Specific Configuration */
152#define ANOMALY_05000425 (1)
153/* Speculative Fetches of Indirect-Pointer Instructions Can Cause False Hardware Errors */
154#define ANOMALY_05000426 (1)
Mike Frysinger3529e0412008-10-28 16:22:41 +0800155/* IFLUSH Instruction at End of Hardware Loop Causes Infinite Stall */
156#define ANOMALY_05000443 (1)
Mike Frysingera200ad22009-06-13 06:37:14 -0400157/* False Hardware Error when RETI Points to Invalid Memory */
Mike Frysingera4136472009-05-08 07:40:25 +0000158#define ANOMALY_05000461 (1)
Sonic Zhang4d555632008-04-25 03:28:10 +0800159
Mike Frysinger1aafd902007-07-25 11:19:14 +0800160/* Anomalies that don't exist on this proc */
Mike Frysingera4136472009-05-08 07:40:25 +0000161#define ANOMALY_05000099 (0)
162#define ANOMALY_05000120 (0)
Mike Frysinger1aafd902007-07-25 11:19:14 +0800163#define ANOMALY_05000125 (0)
Mike Frysingera4136472009-05-08 07:40:25 +0000164#define ANOMALY_05000149 (0)
Robin Getz3bebca22007-10-10 23:55:26 +0800165#define ANOMALY_05000158 (0)
Mike Frysingera4136472009-05-08 07:40:25 +0000166#define ANOMALY_05000171 (0)
167#define ANOMALY_05000179 (0)
Mike Frysingera200ad22009-06-13 06:37:14 -0400168#define ANOMALY_05000182 (0)
Mike Frysinger1aafd902007-07-25 11:19:14 +0800169#define ANOMALY_05000183 (0)
170#define ANOMALY_05000198 (0)
Mike Frysingera200ad22009-06-13 06:37:14 -0400171#define ANOMALY_05000202 (0)
Mike Frysingera4136472009-05-08 07:40:25 +0000172#define ANOMALY_05000215 (0)
173#define ANOMALY_05000220 (0)
174#define ANOMALY_05000227 (0)
Mike Frysinger0174dd52007-08-05 16:53:10 +0800175#define ANOMALY_05000230 (0)
Mike Frysingera4136472009-05-08 07:40:25 +0000176#define ANOMALY_05000231 (0)
177#define ANOMALY_05000233 (0)
Mike Frysingera200ad22009-06-13 06:37:14 -0400178#define ANOMALY_05000234 (0)
Mike Frysingera4136472009-05-08 07:40:25 +0000179#define ANOMALY_05000242 (0)
180#define ANOMALY_05000248 (0)
Mike Frysinger1aafd902007-07-25 11:19:14 +0800181#define ANOMALY_05000266 (0)
Mike Frysingera4136472009-05-08 07:40:25 +0000182#define ANOMALY_05000274 (0)
183#define ANOMALY_05000287 (0)
Mike Frysinger1aafd902007-07-25 11:19:14 +0800184#define ANOMALY_05000311 (0)
Michael Hennerich2b393312007-10-10 16:58:49 +0800185#define ANOMALY_05000323 (0)
Mike Frysinger4e8086d2008-10-10 21:07:55 +0800186#define ANOMALY_05000353 (1)
Mike Frysingera4136472009-05-08 07:40:25 +0000187#define ANOMALY_05000362 (1)
Sonic Zhang4d555632008-04-25 03:28:10 +0800188#define ANOMALY_05000363 (0)
Mike Frysingeree554be2009-03-03 16:52:55 +0800189#define ANOMALY_05000380 (0)
Mike Frysinger4e8086d2008-10-10 21:07:55 +0800190#define ANOMALY_05000386 (1)
Mike Frysingera4136472009-05-08 07:40:25 +0000191#define ANOMALY_05000389 (0)
192#define ANOMALY_05000400 (0)
Mike Frysinger6651ece2009-01-07 23:14:38 +0800193#define ANOMALY_05000412 (0)
Mike Frysingera4136472009-05-08 07:40:25 +0000194#define ANOMALY_05000430 (0)
Mike Frysinger6651ece2009-01-07 23:14:38 +0800195#define ANOMALY_05000432 (0)
Mike Frysinger94b28212008-11-18 17:48:21 +0800196#define ANOMALY_05000435 (0)
Mike Frysinger7dbc3f62009-03-06 00:20:49 +0800197#define ANOMALY_05000447 (0)
198#define ANOMALY_05000448 (0)
Mike Frysingera4136472009-05-08 07:40:25 +0000199#define ANOMALY_05000456 (0)
200#define ANOMALY_05000450 (0)
Mike Frysingera200ad22009-06-13 06:37:14 -0400201#define ANOMALY_05000465 (0)
202#define ANOMALY_05000467 (0)
Mike Frysinger1aafd902007-07-25 11:19:14 +0800203
204#endif