summaryrefslogtreecommitdiffstats
path: root/bsps
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-12-21 15:16:49 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2024-01-15 10:33:49 +0100
commitd4c6def68bb8f62b6f80e2329ec1f00e7bf6afdf (patch)
treea9d353d9ea9005aa8cb3410b112f86d9abeaab6f /bsps
parentbsp/tms570: Add header guards (diff)
downloadrtems-d4c6def68bb8f62b6f80e2329ec1f00e7bf6afdf.tar.bz2
bsp/tms570: Use shared bsp_start_hook_1()
Update #4982.
Diffstat (limited to 'bsps')
-rw-r--r--bsps/arm/tms570/start/bspstarthooks-hwinit.c24
-rw-r--r--bsps/arm/tms570/start/bspstarthooks.c2
2 files changed, 4 insertions, 22 deletions
diff --git a/bsps/arm/tms570/start/bspstarthooks-hwinit.c b/bsps/arm/tms570/start/bspstarthooks-hwinit.c
index a0d80da2a9..67c3768a36 100644
--- a/bsps/arm/tms570/start/bspstarthooks-hwinit.c
+++ b/bsps/arm/tms570/start/bspstarthooks-hwinit.c
@@ -5,7 +5,7 @@
*
* @ingroup RTEMSBSPsARMTMS570
*
- * @brief This source file contains the start hooks implementation.
+ * @brief This source file contains the bsp_start_hook_0() implementation.
*/
/*
@@ -335,6 +335,8 @@ static RTEMS_USED void tms570_start_hook_0( void )
/* Configure system response to error conditions signaled to the ESM group1 */
tms570_esm_init();
+ tms570_emif_sdram_init();
+
#if 1
/*
* Do not depend on link register to be restored to
@@ -345,26 +347,6 @@ static RTEMS_USED void tms570_start_hook_0( void )
#endif
}
-BSP_START_TEXT_SECTION void bsp_start_hook_1( void )
-{
- /* At this point we can use objects outside the .start section */
-#if 0
- /* Do not run attempt to initialize MPU when code is running from SDRAM */
- if ( !tms570_running_from_sdram() ) {
- /*
- * MPU background areas setting has to be overlaid
- * if execution of code is required from external memory/SDRAM.
- * This region is non executable by default.
- */
- _mpuInit_();
- }
-#endif
- tms570_emif_sdram_init();
-
- bsp_start_copy_sections();
- bsp_start_clear_bss();
-}
-
/*
* Chip specific list of peripherals which should be tested
* for functional RAM parity reporting
diff --git a/bsps/arm/tms570/start/bspstarthooks.c b/bsps/arm/tms570/start/bspstarthooks.c
index 3e4011ce1c..71ebf9f32d 100644
--- a/bsps/arm/tms570/start/bspstarthooks.c
+++ b/bsps/arm/tms570/start/bspstarthooks.c
@@ -5,7 +5,7 @@
*
* @ingroup RTEMSBSPsARMTMS570
*
- * @brief This source file contains the start hooks implementation.
+ * @brief This source file contains the bsp_start_hook_1(0 implementation.
*/
/*