[rtems commit] bsp/tms570: Conditionalize TMS570LS3137 errata

Sebastian Huber sebh at rtems.org
Mon Jan 15 09:36:31 UTC 2024


Module:    rtems
Branch:    master
Commit:    4d9c9c52aed44558c7a828ab5c95b3112a8ea202
Changeset: http://git.rtems.org/rtems/commit/?id=4d9c9c52aed44558c7a828ab5c95b3112a8ea202

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Dec 21 15:16:48 2023 +0100

bsp/tms570: Conditionalize TMS570LS3137 errata

Update #4982.

---

 bsps/arm/tms570/start/bspstarthooks-hwinit.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bsps/arm/tms570/start/bspstarthooks-hwinit.c b/bsps/arm/tms570/start/bspstarthooks-hwinit.c
index 41f585cad0..561e6a18e6 100644
--- a/bsps/arm/tms570/start/bspstarthooks-hwinit.c
+++ b/bsps/arm/tms570/start/bspstarthooks-hwinit.c
@@ -51,6 +51,7 @@
 
 BSP_START_TEXT_SECTION void bsp_start_hook_0( void )
 {
+#if TMS570_VARIANT == 3137
   /*
    * Work Around for Errata DEVICE#140: ( Only on Rev A silicon)
    *
@@ -62,6 +63,7 @@ BSP_START_TEXT_SECTION void bsp_start_hook_0( void )
   if ( TMS570_SYS1.DEVID == 0x802AAD05U ) {
     _esmCcmErrorsClear_();
   }
+#endif
 
   /* Enable CPU Event Export */
   /* This allows the CPU to signal any single-bit or double-bit errors detected
@@ -69,11 +71,13 @@ BSP_START_TEXT_SECTION void bsp_start_hook_0( void )
    */
   _coreEnableEventBusExport_();
 
+#if TMS570_VARIANT == 3137
   /* Workaround for Errata CORTEXR4 66 */
   _errata_CORTEXR4_66_();
 
   /* Workaround for Errata CORTEXR4 57 */
   _errata_CORTEXR4_57_();
+#endif
 
   /* check for power-on reset condition */
   /*SAFETYMCUSW 139 S MR:13.7 <APPROVED> "Hardware status bit read check" */



More information about the vc mailing list