newlib-cygwin/libgloss/bfin/include/sys/anomaly_macros_rtl.h

757 lines
26 KiB
C
Raw Normal View History

2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
/*
* The authors hereby grant permission to use, copy, modify, distribute,
* and license this software and its documentation for any purpose, provided
* that existing copyright notices are retained in all copies and that this
* notice is included verbatim in any distributions. No written agreement,
* license, or royalty fee is required for any of the authorized uses.
* Modifications to this software may be copyrighted by their authors
* and need not follow the licensing terms described here, provided that
* the new terms are clearly indicated on the first page of each file where
* they apply.
*/
/************************************************************************
*
* anomaly_macros_rtl.h : $Revision$
*
* (c) Copyright 2005-2009 Analog Devices, Inc. All rights reserved.
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
*
* This file defines macros used within the run-time libraries to enable
* certain anomaly workarounds for the appropriate chips and silicon
* revisions. Certain macros are defined for silicon-revision none - this
* is to ensure behaviour is unchanged from libraries supplied with
* earlier tools versions, where a small number of anomaly workarounds
* were applied in all library flavours. __FORCE_LEGACY_WORKAROUNDS__
* is defined in this case.
*
* This file defines macros for a subset of all anomalies that may impact
* the run-time libraries.
*
************************************************************************/
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
#ifdef _MISRA_RULES
#pragma diag(push)
#pragma diag(suppress:misra_rule_2_4:"Assembly code in comment used to illustrate anomalous behaviour")
#pragma diag(suppress:misra_rule_19_4:"The definition of WA_05000204_CHECK_AVOID_FOR_REV cannot be parenthasised as it would fail when used in assembly library code.")
#endif /* _MISRA_RULES */
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
#if !defined(__SILICON_REVISION__)
#define __FORCE_LEGACY_WORKAROUNDS__
#endif
/* 05-00-0096 - PREFETCH, FLUSH, and FLUSHINV must be followed by a CSYNC
**
** ADSP-BF531/2/3 - revs 0.0-0.1,
** ADSP-BF561 - revs 0.0-0.1 (not supported in VDSP++ 4.0)
**
*/
#define WA_05000096 \
((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__) || \
defined(__ADSPBF561__)) && \
((defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ <= 0x1)) || \
defined(__FORCE_LEGACY_WORKAROUNDS__)))
/* 05-00-0109 - Reserved bits in SYSCFG register not set at power on
**
** ADSP-BF531/2/3 - revs 0.0-0.2 (fixed 0.3)
** ADSP-BF561 - revs 0.0-0.2 (fixed 0.3. 0.0, 0.1 not supported in VDSP++ 4.0)
**
** Changes to start code.
*/
#define WA_05000109 \
((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__) || \
defined(__ADSPBF561__)) && \
((defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ <= 0x2)) || \
defined(__FORCE_LEGACY_WORKAROUNDS__)))
/* 05-00-0123 - DTEST_COMMAND initiated memory access may be incorrect if
** data cache or DMA is active.
**
** ADSP-BF531/2/3 - revs 0.1-0.2 (fixed 0.3)
** ADSP-BF561 - revs 0.0-0.2 (0.0 and 0.1 not supported in VDSP++ 4.0)
*/
#define WA_05000123 \
((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__) || \
defined(__ADSPBF561__)) && \
((defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ <= 0x2)) || \
defined(__FORCE_LEGACY_WORKAROUNDS__)))
/* 05-00-0125 - Erroneous exception when enabling cache
**
** ADSP-BF531/2/3 - revs 0.1-0.2 (fixed 0.3)
** ADSP-BF561 - revs 0.0-0.2 (0.0 and 0.1 not supported in VDSP++ 4.0)
**
*/
#define WA_05000125 \
((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__) || \
defined(__ADSPBF561__)) && \
((defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ <= 0x2)) || \
defined(__FORCE_LEGACY_WORKAROUNDS__)))
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
/* 05-00-0127 - Signbits instruction not functional under certain conditions
**
** ADSP-BF561 - from rev 0.0 (not yet fixed)
**
** The SIGNBITS instruction requires a NOP before it if one of its operands
** is defined in the preceding instruction.
**
*/
#define WA_05000127 \
(defined(__SILICON_REVISION__) && defined(__ADSPBF561__))
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
/* 05-00-0137 - DMEM_CONTROL<12> is not set on Reset
**
** ADSP-BF531/2/3 - revs 0.0-0.2 (fixed 0.3)
**
** Changes to start code.
**
*/
#define WA_05000137 \
((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__)) && \
((defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ <= 0x2)) || \
defined(__FORCE_LEGACY_WORKAROUNDS__)))
/* 05-00-0158 - "Boot fails when data cache enabled: Data from a Data Cache
** fill can be corrupted after or during instruction DMA if certain core
** stalls exist"
**
** Impacted:
** BF533/3/1 : 0.0-0.4 (fixed 0.5)
**
** The workaround we have only works for si-revisions >= 0.3. No workaround for
** ealier revisions.
*/
#define WA_05000158 \
((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__)) && \
((defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || \
(__SILICON_REVISION__ >= 0x3 && \
__SILICON_REVISION__ < 0x5))) || \
defined(__FORCE_LEGACY_WORKAROUNDS__)))
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
/* 05-00-0162 - DMEM_CONTROL<12> is not set on Reset
**
** ADSP-BF561 - revs 0.0-0.2 (fixed 0.3)
**
** Changes to start code.
**
*/
#define WA_05000162 \
(defined(__ADSPBF561__) && \
((defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ <= 0x2)) || \
defined(__FORCE_LEGACY_WORKAROUNDS__)))
/* 05-00-0198 - System MMR accesses may fail when stalled by preceding memory
** read.
**
** Impacted:
** ADSP-BF531 - rev 0.1-0.4 (fixed 0.5)
** ADSP-BF532 - rev 0.1-0.4 (fixed 0.5)
** ADSP-BF533 - rev 0.1-0.4 (fixed 0.5)
** ADSP-BF534 - rev 0.0 (fixed 0.1)
** ADSP-BF536 - rev 0.0 (fixed 0.1)
** ADSP-BF537 - rev 0.0 (fixed 0.1)
** ADSP-BF561 - rev 0.2-0.3 (fixed 0.4)
**
*/
#define WA_05000198 \
(((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__)) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x4 || __SILICON_REVISION__ == 0xffff))) || \
((defined(__ADSPBF534__) || \
defined(__ADSPBF536__) || \
defined(__ADSPBF537__) || \
defined(__ADSPBF539__)) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0x0 || __SILICON_REVISION__ == 0xffff))) || \
(defined(__ADSPBF561__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x3 || __SILICON_REVISION__ == 0xffff))))
/* 05-00-0199 - Current DMA Address Shows Wrong Value During Carry Fix
**
** Impacted:
** ADSP-BF53[123] - rev 0.0-0.3 (fixed 0.4)
** ADSP-BF53[89] - rev 0.0-0.3 (fixed 0.4)
** ADSP-BF561 - rev 0.0-0.3 (fixed 0.4)
**
** Use by System Services/Device Drivers.
*/
#define WA_05000199 \
((defined(__ADSPBF533_FAMILY__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x3 || __SILICON_REVISION__ == 0xffff))) || \
(defined(__ADSPBF538_FAMILY__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x3 || __SILICON_REVISION__ == 0xffff))) || \
(defined(__ADSPBF561__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x3 || __SILICON_REVISION__ == 0xffff))))
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
/* 05-00-0204 - "Incorrect data read with write-through cache and
** allocate cache lines on reads only mode.
**
** This problem is cache related with high speed clocks. It apparently does
** not impact BF531 and BF532 because they cannot run at high enough clock
** to cause the anomaly. We build libs for BF532 though so that means we will
** need to do the workaround for BF532 and BF531 also.
**
** Also the 0.3 to 0.4 revision is not an inflexion for libs BF532 and BF561.
** This means a RT check may be required to avoid doing the WA for 0.4.
**
** Impacted:
** BF533 - 0.0-0.3 (fixed 0.4)
** BF534 - 0.0 (fixed 0.1)
** BF536 - 0.0 (fixed 0.1)
** BF537 - 0.0 (fixed 0.1)
** BF538 - 0.0 (fixed 0.1)
** BF539 - 0.0 (fixed 0.1)
** BF561 - 0.0-0.3 (fixed 0.4)
*/
#if defined(__ADI_LIB_BUILD__)
# define __BUILDBF53123 1 /* building one single library for BF531/2/3 */
#else
# define __BUILDBF53123 0
#endif
#define WA_05000204 \
((((__BUILDBF53123==1 && \
(defined(__ADSPBF531__) || defined(__ADSPBF532__))) || \
(defined(__ADSPBF533__) || defined(__ADSPBF561__))) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ <= 0x3))) || \
((defined(__ADSPBF534__) || defined(__ADSPBF536__) || \
defined(__ADSPBF537__) || defined(__ADSPBF538__) || \
defined(__ADSPBF539__)) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ == 0x0))))
#if ((defined(__ADSPBF531__) || defined(__ADSPBF532__) || \
defined(__ADSPBF533__) || defined(__ADSPBF561__)) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ == 0x3)))
/* check at RT for 0.4 revs when doing 204 workaround */
# define WA_05000204_CHECK_AVOID_FOR_REV <=3
#elif ((defined(__ADSPBF534__) || defined(__ADSPBF536__) || \
defined(__ADSPBF537__) || defined(__ADSPBF538__) || \
defined(__ADSPBF539__)) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0xffff || __SILICON_REVISION__ == 0x0)))
/* check at RT for 0.4 revs when doing 204 workaround */
# define WA_05000204_CHECK_AVOID_FOR_REV <1
#else
/* do not check at RT for 0.4 revs when doing 204 workaround */
#endif
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
/* 05-00-0209 - Speed Path in Computational Unit Affects Certain Instructions
**
** ADSP-BF531/2/3 - revs 0.0 - 0.3 (fixed in 0.4)
** ADSP-BF534/6/7 - rev 0.0 (fixed in 0.1)
** ADSP-BF538/9 - rev 0.0 (fixed in 0.1)
** ADSP-BF561 - revs 0.0 - 0.3 (fixed in 0.4)
**
** SIGNBITS, EXTRACT, DEPOSIT, EXPADJ require a NOP before them if
** one of their operands is defined in the preceding instruction.
*/
#define WA_05000209 \
(defined(__SILICON_REVISION__) && \
(((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__)) && \
(__SILICON_REVISION__ <= 0x3 || __SILICON_REVISION__ == 0xffff)) || \
((defined(__ADSPBF534__) || \
defined(__ADSPBF536__) || \
defined(__ADSPBF537__) || \
defined(__ADSPBF538__) || \
defined(__ADSPBF539__)) && \
(__SILICON_REVISION__ == 0x0 || __SILICON_REVISION__ == 0xffff)) || \
((defined(__ADSPBF561__)) && \
(__SILICON_REVISION__ <= 0x3 || __SILICON_REVISION__ == 0xffff))))
/* 05-00-0212 - PORTx_FER, PORT_MUX Registers Do Not accept "writes" correctly
**
** Impacted:
** ADSP-BF53[467] - rev 0.0 (fixed 0.1)
**
** Use by System Services/Device Drivers.
*/
#define WA_05000212 \
(defined(__ADSPBF537_FAMILY__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ == 0x0 || __SILICON_REVISION__ == 0xffff)))
/* 050000244 - "If I-Cache Is On, CSYNC/SSYNC/IDLE Around Change of Control
** Causes Failures"
**
** When instruction cache is enabled, a CSYNC/SSYNC/IDLE around a
** change of control (including asynchronous exceptions/interrupts)
** can cause unpredictable results.
**
** This macro is used by System Services/Device Drivers.
**
** Impacted:
**
** BF531/2/3 - 0.0-0.4 (fixed 0.5)
** BF534/6/7 - 0.0-0.2 (fixed 0.3)
** BF534/8/9 - 0.0-0.1 (fixed 0.2)
** BF561 - 0.0-0.3 (fixed 0.5)
*/
#define WA_05000244 \
(defined(__SILICON_REVISION__) && \
((defined(__ADSPBF533_FAMILY__) && \
(__SILICON_REVISION__ <= 0x4 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF537_FAMILY__) && \
(__SILICON_REVISION__ <= 0x2 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF538_FAMILY__) && \
(__SILICON_REVISION__ <= 0x1 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF561_FAMILY__) && \
(__SILICON_REVISION__ <= 0x3 || __SILICON_REVISION__ == 0xffff))))
/* 050000245 - "False Hardware Error from an Access in the Shadow of a
** Conditional Branch"
**
** If a load accesses reserved or illegal memory on the opposite control
** flow of a conditional jump to the taken path, a false hardware error
** will occur.
**
** This macro is used by System Services/Device Drivers.
**
** This is for all Blackfin LP parts.
*/
#define WA_05000245 \
(defined(__ADSPLPBLACKFIN__) && defined(__SILICON_REVISION__))
/* 050000248 - "TESTSET Operation Forces Stall on the Other Core "
**
** Use by System Services/Device Drivers.
**
** Succeed any testset to L2 with a write to L2 to avoid the other core
** stalling. This must be atomic, as an interrupt between the two would
** cause the lockout to occur until the interrupt is fully serviced.
**
** This macro is used by System Services/Device Drivers.
**
** Impacted:
**
** BF561 - 0.0-0.3 (fixed 0.5)
**
*/
#define WA_05000248 \
(defined (__SILICON_REVISION__) && defined(__ADSPBF561_FAMILY__) && \
(__SILICON_REVISION__ <= 0x3 || __SILICON_REVISION__ == 0xffff))
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
/* 05-00-0258 - "Instruction Cache is corrupted when bit 9 and 12 of
* the ICPLB Data registers differ"
*
* When bit 9 and bit 12 of the ICPLB Data MMR differ, the cache may
* not update properly. For example, for a particular cache line,
* the cache tag may be valid while the contents of that cache line
* are not present in the cache.
*
* Impacted:
*
* BF531/2/3 - 0.0-0.4 (fixed 0.5)
* BF534/6/7/8/9 - 0.0-0.2 (fixed 0.3)
* BF561 - 0.0-0.4 (fixed 0.5)
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
* BF566 - 0.0-0.1 (fixed 0.2)
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
* BF535/AD6532/AD6900 - all revs
*/
#define WA_05000258 \
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
(((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__)) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x4 || \
__SILICON_REVISION__ == 0xffff))) || \
((defined(__ADSPBF534__) || \
defined(__ADSPBF536__) || \
defined(__ADSPBF537__) || \
defined(__ADSPBF538__) || \
defined(__ADSPBF539__)) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x2 || \
__SILICON_REVISION__ == 0xffff))) || \
(defined(__ADSPBF561__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x4 || \
__SILICON_REVISION__ == 0xffff))) || \
(defined(__ADSPBF566__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x1 || \
__SILICON_REVISION__ == 0xffff))) || \
(!defined(__ADSPLPBLACKFIN__) && defined(__SILICON_REVISION__)))
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
/* 05-00-0261 - "DCPLB_FAULT_ADDR MMR may be corrupted".
* The DCPLB_FAULT_ADDR MMR may contain the fault address of a
* aborted memory access which generated both a protection exception
* and a stall.
*
* We work around this by initially ignoring a DCPLB miss exception
* on the assumption that the faulting address might be invalid.
* We return without servicing. The exception will be raised
* again when the faulting instruction is re-executed. The fault
* address is correct this time round so the miss exception can
* be serviced as normal. The only complication is we have to
* ensure that we are about to service the same miss rather than
* a miss raised within a higher-priority interrupt handler, where
* the fault address could again be invalid. We therefore record
* the last seen RETX and only service an exception when RETX and
* the last seen RETX are equal.
*
* This problem impacts:
* BF531/2/3 - rev 0.0-0.4 (fixed 0.5)
* BF534/6/7/8/9 - rev 0.0-0.2 (fixed 0.3)
* BF561 - rev 0.0-0.4 (fixed 0.5)
*
*/
#define WA_05000261 \
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
(((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__)) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x4 || \
__SILICON_REVISION__ == 0xffff))) || \
((defined(__ADSPBF534__) || \
defined(__ADSPBF536__) || \
defined(__ADSPBF537__) || \
defined(__ADSPBF538__) || \
defined(__ADSPBF539__)) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x2 || \
__SILICON_REVISION__ == 0xffff))) || \
(defined(__ADSPBF561__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x4 || \
__SILICON_REVISION__ == 0xffff))))
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
/* 05-00-0229 - "SPI Slave Boot Mode Modifies Registers".
* When the SPI slave boot completes, the final DMA IRQ is cleared
* but the DMA5_CONFIG and SPI_CTL registers are not reset to their
* default states.
*
* We work around this by resetting the registers to their default
* values at the beginning of the CRT. The only issue would be when
* users boot from flash and make use of the DMA or serial port.
* In this case, users would need to modify the CRT.
*
* This problem impacts all revisions of ADSP-BF531/2/3/8/9
*/
#define WA_05000229 \
(defined(__ADSPBLACKFIN__) && defined (__SILICON_REVISION__) && \
(defined(__ADSPBF531__) || defined(__ADSPBF532__) || \
defined(__ADSPBF533__) || defined(__ADSPBF538__) || \
defined(__ADSPBF539__)))
/* 05-00-0283 - "A system MMR write is stalled indefinitely when killed in a
* particular stage".
*
* Where an interrupt occurs killing a stalled system MMR write, and the ISR
* executes an SSYNC, execution execution may stall indefinitely".
*
* The workaround is to execute a mispredicted jump over a dummy MMR read,
* thus killing the read. Also to avoid a system MMR write in two slots
* after a not predicted conditional jump.
*
* This problem impacts:
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
* BF531/2/3 - < 0.6
* BF534/6/7 - < 0.3
* BF538/9 - < 0.4
* BF561/6 - < 0.5
*
* Since this impacts 538/9 0.3 but not 534 0.3 (the libraries that they use)
* we have to enable this workaround for the 534 0.3 libraries (see bottom
* two lines).
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
*/
#define WA_05000283 \
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
(defined (__SILICON_REVISION__) && \
(((defined(__ADSPBF531__) || \
defined(__ADSPBF532__) || \
defined(__ADSPBF533__)) && \
(__SILICON_REVISION__ == 0xffff || \
__SILICON_REVISION__ < 0x6)) || \
((defined(__ADSPBF534__) || \
defined(__ADSPBF536__) || \
defined(__ADSPBF537__)) && \
(__SILICON_REVISION__ == 0xffff || \
__SILICON_REVISION__ < 0x3)) || \
((defined(__ADSPBF538__) || \
defined(__ADSPBF539__)) && \
(__SILICON_REVISION__ == 0xffff || \
__SILICON_REVISION__ < 0x4)) || \
(defined(__ADSPBF561__)) || \
(defined(__ADSPBF534__) && __SILICON_REVISION__ == 0x3 && \
defined(__ADI_LIB_BUILD__))))
/* 05-00-0311 - Erroneous Flag (GPIO) Pin Operations under Specific Sequences
**
** Impacted:
** ADSP-BF53[123] - 0.0-0.5 (fixed in 0.6)
**
** Use by System Services/Device Drivers.
*/
#define WA_05000311 \
(defined(__ADSPBF533_FAMILY__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x5 || __SILICON_REVISION__ == 0xffff)))
/* 05-00-0312 - Errors when SSYNC, CSYNC, or Loads to LT, LB and LC Registers
** Are Interrupted
**
** Impacted:
** ADSP-BF53[123] - 0.0-0.5 (fixed in 0.6)
** ADSP-BF53[467] - all supported revisions
** ADSP-BF53[89] - 0.0-0.4 (fixed in 0.5)
** ADSP-BF561 - all supported revisions
** ADSP-BF54[24789] - 0.0 (fixed in 0.1)
**
** Used by VDK
*/
#define WA_05000312 \
(defined(__SILICON_REVISION__) && \
(defined(__ADSPBF533_FAMILY__) && \
(__SILICON_REVISION__ <= 0x5 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF537_FAMILY__)) || \
(defined(__ADSPBF538_FAMILY__) && \
(__SILICON_REVISION__ <= 0x4 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF548_FAMILY__) && \
(__SILICON_REVISION__ == 0x0 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF561_FAMILY__)))
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
/* 05-00-0323 - Erroneous Flag (GPIO) Pin Operations under Specific Sequences
**
** Impacted:
** ADSP-BF561 - all supported revisions
**
** Use by System Services/Device Drivers.
*/
#define WA_05000323 \
(defined(__ADSPBF561__) && defined(__SILICON_REVISION__))
/* 05-00-0365 - DMAs that Go Urgent during Tight Core Writes to External
** Memory Are Blocked
**
** Impacted:
** ADSP-BF54[24789] - all supported revisions
** ADSP-BF54[24789]M - all supported revisions
**
** Use by System Services/Device Drivers.
*/
#define WA_05000365 \
((defined(__ADSPBF548_FAMILY__) || defined(__ADSPBF548M_FAMILY__)) && \
defined(__SILICON_REVISION__))
/* 05-00-0371 - Possible RETS Register Corruption when Subroutine Is under
** 5 Cycles in Duration
**
** This problem impacts:
** BF531/2/3 - 0.0-0.5 (fixed in 0.6)
** BF534/6/7 - 0.0-0.3
** BF538/9 - 0.0-0.4 (fixed in 0.5)
** BF561 - 0.0-0.5
** BF542/4/7/8/9 - 0.0-0.1 (fixed in 0.2)
** BF523/5/7 - 0.0-0.1 (fixed in 0.2)
**
*/
#define WA_05000371 \
(defined(__SILICON_REVISION__) && \
(defined(__ADSPBF533_FAMILY__) && \
(__SILICON_REVISION__ <= 0x5 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF537_FAMILY__) && \
(__SILICON_REVISION__ <= 0x3 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF538_FAMILY__) && \
(__SILICON_REVISION__ <= 0x4 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF548_FAMILY__) && \
(__SILICON_REVISION__ <= 0x1 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF527_FAMILY__) && \
(__SILICON_REVISION__ <= 0x1 || __SILICON_REVISION__ == 0xffff)) || \
(defined(__ADSPBF561__) || defined(__ADSPBF566__)))
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
/* 05-00-0380 - Data Read From L3 Memory by USB DMA May be Corrupted
**
** Impacted:
** ADSP-BF52[357] - rev 0.0-0.1 (fixed 0.2)
**
** Use by System Services/Device Drivers.
*/
#define WA_05000380 \
(defined(__ADSPBF527_FAMILY__) && \
(defined(__SILICON_REVISION__) && \
(__SILICON_REVISION__ <= 0x1 || __SILICON_REVISION__ == 0xffff)))
/* 05-00-0412 - "TESTSET Instruction Causes Data Corruption with Writeback Data
* Cache Enabled"
*
* If you use the testset instruction to operate on L2 memory and you have data
* in external memory that is cached using WB mode, data in external memory
* and/or L2 memory can be corrupted.
*
* Workaround: Either do not use writeback cache or precede the TESTSET
* instruction with an SSYNC instruction. If preceding the TESTSET instruction
* by an SSYNC instruction, do the following:
*
* CLI R0
* R1 = [P0] // perform a dummy read to make sure CPLB is installed
* NOP
* NOP
* SSYNC
* TESTSET (P0)
* STI R0
*
* This problem impacts:
* BF561/6 - rev 0.0-0.5
*
*/
#define WA_05000412 \
(defined (__SILICON_REVISION__) && defined(__ADSPBF561__))
/* 05-00-0426 - Speculative Fetches of Indirect-Pointer Instructions Can
** Cause False Hardware Errors
**
**
** A false hardware error is generated if there is an indirect jump or
** call through a pointer which may point to reserved or illegal memory
** on the opposite control flow of a conditional jump to the taken path.
** This commonly occurs when using function pointers, which can be
** invalid (e.g., set to -1).
**
** Workaround: If instruction cache is on or the ICPLBs are enabled,
** this anomaly does not apply. If instruction cache is off and ICPLBs
** are disabled, the indirect pointer instructions must be 2 instructions
** away from the branch instruction, which can be implemented using NOPs:
**
**
** Impacted:
** All parts and revisions other than BF535 based parts.
**
** Used by System Services/Device Drivers.
*/
#define WA_05000426 \
(defined(__ADSPLPBLACKFIN__) && defined(__SILICON_REVISION__))
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
/* 05-00-0428 - "Lost/Corrupted Write to L2 Memory Following Speculative Read
* by Core B from L2 Memory"
*
* This issue occurs only when the accesses are performed by core B of a BF561.
*
* When a write to internal L2 memory follows a speculative read from internal
* L2 memory, the L2 write may be lost or corrupted. For this anomaly to occur,
* the speculative read must be caused by a read in the shadow of a branch. The
* accesses do not have to be consecutive accesses. In other words, the problem
* can occur even if there are multiple instructions between the speculative
* read and the write, as shown in the following example:
*
* R1 = 1; R2 = 1;
* CC = R1 == R2;
* IF CC JUMP X; // Always true...
* R0 = [P0]; // If any of these three loads accesses L2 memory from Core
* R1 = [P1]; // B, speculative execution in the pipeline causes the
* R2 = [P2]; // anomaly trigger condition.
* X:
* ... // Any number of instructions...
* [P0] = R0; // This write can be corrupted or lost.
*
* The issue does not occur if the speculative read access is caused by an
* interrupt or exception.
*
* The workaround required depends upon the conditional branch instruction.
* If the evaluated condition is true and the branch is predicted, then the
* workaround is to ensure that the target instruction is not be a load
* instruction, for example:
*
* IF CC JUMP X (BP);
* ...
* X: <load that might be from L2 memory>
*
* If the evaluated condition is false and the branch is not predicted, then
* the workaround is to make sure that none of the three instructions that
* are executed after the conditional JUMP are load instructions, for example:
*
* IF CC JUMP ...;
* <load that might be from L2 memory>
* <load that might be from L2 memory>
* <load that might be from L2 memory>
*
* This problem impacts:
* BF561 - rev 0.4,0.5
*
*/
#define WA_05000428 \
(defined(__SILICON_REVISION__) && \
defined(__ADSPBF561__) && \
((__SILICON_REVISION__ == 0xffff) || \
(__SILICON_REVISION__ == 0x4) || \
(__SILICON_REVISION__ == 0x5)))
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00
/* 05-00-0443 - IFLUSH Instruction at End of Hardware Loop Causes Infinite Stall
**
** Impacted:
** All parts and revisions other than BF535 based parts.
**
** Used by System Services/Device Drivers.
*/
#define WA_05000443 \
(defined(__ADSPLPBLACKFIN__) && defined(__SILICON_REVISION__))
2009-09-16 Mike Frysinger <michael.frysinger@analog.com> * bfin/include/cdefBF512.h, bfin/include/cdefBF514.h, bfin/include/cdefBF516.h, bfin/include/cdefBF518.h, bfin/include/cdefBF51x_base.h, bfin/include/cdefBF523.h, bfin/include/cdefBF524.h, bfin/include/cdefBF526.h, bfin/include/cdefBF542M.h, bfin/include/cdefBF544M.h, bfin/include/cdefBF547M.h, bfin/include/cdefBF548M.h, bfin/include/cdefBF549M.h, bfin/include/defBF512.h, bfin/include/defBF514.h, bfin/include/defBF516.h, bfin/include/defBF518.h, bfin/include/defBF51x_base.h, bfin/include/defBF523.h, bfin/include/defBF524.h, bfin/include/defBF526.h, bfin/include/defBF542M.h, bfin/include/defBF544M.h, bfin/include/defBF547M.h, bfin/include/defBF548M.h, bfin/include/defBF549M.h: New file. * bfin/include/ccblkfn.h, bfin/include/cdefBF525.h, bfin/include/cdefBF527.h, bfin/include/cdefBF52x_base.h, bfin/include/cdefBF532.h, bfin/include/cdefBF534.h, bfin/include/cdefBF535.h, bfin/include/cdefBF538.h, bfin/include/cdefBF539.h, bfin/include/cdefBF542.h, bfin/include/cdefBF544.h, bfin/include/cdefBF547.h, bfin/include/cdefBF548.h, bfin/include/cdefBF549.h, bfin/include/cdefBF54x_base.h, bfin/include/cdefBF561.h, bfin/include/cdefblackfin.h, bfin/include/cdef_LPBlackfin.h, bfin/include/cplb.h, bfin/include/defBF527.h, bfin/include/defBF52x_base.h, bfin/include/defBF532.h, bfin/include/defBF534.h, bfin/include/defBF535.h, bfin/include/defBF537.h, bfin/include/defBF538.h, bfin/include/defBF539.h, bfin/include/defBF542.h, bfin/include/defBF544.h, bfin/include/defBF547.h, bfin/include/defBF548.h, bfin/include/defBF549.h, bfin/include/defBF54x_base.h, bfin/include/defBF561.h, bfin/include/defblackfin.h, bfin/include/def_LPBlackfin.h, bfin/include/sys/_adi_platform.h, bfin/include/sys/anomaly_macros_rtl.h, bfin/include/sys/exception.h, bfin/include/sysreg.h: Update to Visual DSP 5.0 Update 6.
2009-09-17 00:08:27 +08:00
#ifdef _MISRA_RULES
#pragma diag(pop)
#endif /* _MISRA_RULES */
2008-08-14 Jie Zhang <jie.zhang@analog.com> * bfin/Makefile.in: (top_srcdir): Define. (mkinstalldirs): Define. (BOARD_SCRIPTS): Define. (BOARD_LDFLAGS): Define. (BOARD_BSP): Define. (BOARD_CRT0S): Define. (BOARD_OBJS): Define. (BOARD_TEST): Define. (BOARD_INSTALL): Define. (INCLUDES): Add -I$(srcdir)/include. (all): Add ${BOARD_CRT0S} and ${BOARD_BSP}. (.c.S): Remove target. (crt0.o): New target. (basiccrt.o): Likewise. (basiccrtb.o): Likewise. (basiccrts.o): Likewise. (basiccrt561.o, basiccrt561s.o, basiccrt561b.o): Likewise (clean mostlyclean): Remove ${BOARD_BSP}. (install): Depend on ${BOARD_INSTALL}. (install-sim): Reformat. (install-board): New target. * bfin/basiccrt.S: Remove useless __ADSPBF561_COREB__ in workaround code for 05000229. * bfin/syscalls.c (do_syscall): Use `EXCPT 0' instead of `RAISE 0' for syscall. * bfin/basiccrt.S: New file. * bfin/bf5*ld: New file. * bfin/bfin-common-mc.ld: New file. * bfin/bfin-common-sc.ld: New file. * bfin/include/blackfin.h: New file. * bfin/include/cdefBF5*.h: New file. * bfin/include/cdef_LPBlackfin.h: New file. * bfin/include/cdefblackfin.h: New file. * bfin/include/cplb.h: New file. * bfin/include/cplbtab.h: New file. * bfin/include/defBF5*.h: New files. * bfin/include/def_LPBlackfin.h: New files. * bfin/include/defblackfin.h: New file. * bfin/include/sys/_adi_platform.h: New file. * bfin/include/sys/anomaly_macros_rtl.h: New file. * bfin/include/sys/excause.h: New file. * bfin/include/sys/exception.h: New file. * bfin/include/sys/mc_typedef.h: New file. * bfin/include/sys/platform.h: New file. * bfin/include/sys/pll.h: New file. * bfin/include/sysreg.h: New file. * libnosys/configure.in (MISSING_SYSCALL_NAMES): Don't define for bfin. * libnosys/configure: Regenerate.
2008-08-15 06:00:47 +08:00