diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-12-21 15:16:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2024-01-15 10:33:33 +0100 |
commit | 75dd82407980a227a39aef70b383090778361f70 (patch) | |
tree | 0c2e6353c8656361858cb66858ebdc8c239ae4d3 /bsps/arm/tms570/include/bsp/ti_herc | |
parent | bsp/tms570: Conditionalize TMS570LS3137 errata (diff) | |
download | rtems-75dd82407980a227a39aef70b383090778361f70.tar.bz2 |
bsp/tms570: Add errata SSWF021#45 handling
Update #4982.
Diffstat (limited to 'bsps/arm/tms570/include/bsp/ti_herc')
-rwxr-xr-x | bsps/arm/tms570/include/bsp/ti_herc/errata_SSWF021_45.h | 56 | ||||
-rw-r--r-- | bsps/arm/tms570/include/bsp/ti_herc/reg_dcc.h | 6 |
2 files changed, 62 insertions, 0 deletions
diff --git a/bsps/arm/tms570/include/bsp/ti_herc/errata_SSWF021_45.h b/bsps/arm/tms570/include/bsp/ti_herc/errata_SSWF021_45.h new file mode 100755 index 0000000000..e1821f8e6e --- /dev/null +++ b/bsps/arm/tms570/include/bsp/ti_herc/errata_SSWF021_45.h @@ -0,0 +1,56 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ + +/** + * @file + * + * @ingroup RTEMSBSPsARMTMS570 + * + * @brief This header file provides errata SSWF021#45 interfaces. + * + * Pulled in from Halcogen v4.7.1. This is a rare but high-severity errata + * that should always be checked for at system start. + */ + +/* +* Copyright (C) 2009-2018 Texas Instruments Incorporated - www.ti.com +* +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions +* are met: +* +* Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* +* Redistributions in binary form must reproduce the above copyright +* notice, this list of conditions and the following disclaimer in the +* documentation and/or other materials provided with the +* distribution. +* +* Neither the name of Texas Instruments Incorporated nor the names of +* its contributors may be used to endorse or promote products derived +* from this software without specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +* +*/ +#ifndef INCLUDE_ERRATA_SSWF021_45_H_ +#define INCLUDE_ERRATA_SSWF021_45_H_ +#include <stdint.h> + +uint32_t _errata_SSWF021_45_both_plls(uint32_t count); +uint32_t _errata_SSWF021_45_pll1(uint32_t count); +uint32_t _errata_SSWF021_45_pll2(uint32_t count); + + +#endif /* INCLUDE_HL_ERRATA_SSWF021_45_H_ */ diff --git a/bsps/arm/tms570/include/bsp/ti_herc/reg_dcc.h b/bsps/arm/tms570/include/bsp/ti_herc/reg_dcc.h index f5d35719fa..12edca3eb1 100644 --- a/bsps/arm/tms570/include/bsp/ti_herc/reg_dcc.h +++ b/bsps/arm/tms570/include/bsp/ti_herc/reg_dcc.h @@ -51,6 +51,12 @@ #include <bsp/utility.h> +enum tms570_dcc1_cnt0_clksrc { + DCC1_CNT0_HF_LPO = 0x5U, /**< Alias for DCC1 CNT 0 CLOCK SOURCE 0*/ + DCC1_CNT0_TCK = 0xAU, /**< Alias for DCC1 CNT 0 CLOCK SOURCE 1*/ + DCC1_CNT0_OSCIN = 0xFU, /**< Alias for DCC1 CNT 0 CLOCK SOURCE 2*/ +}; + typedef struct{ uint32_t GCTRL; /*DCC Global Control Register*/ uint32_t REV; /*DCC Revision Id Register*/ |