[rtems commit] bsp/tms570: Use TMS570_OSCILLATOR_MAIN
Sebastian Huber
sebh at rtems.org
Mon Jan 15 09:36:31 UTC 2024
Module: rtems
Branch: master
Commit: df378641e68fcd9f27797fb998b7a46e2f54f731
Changeset: http://git.rtems.org/rtems/commit/?id=df378641e68fcd9f27797fb998b7a46e2f54f731
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Jan 9 07:47:50 2024 +0100
bsp/tms570: Use TMS570_OSCILLATOR_MAIN
This option replaces BSP_OSCILATOR_CLOCK. It may be used in PLL setup
calculatios.
Update #4982.
---
bsps/arm/tms570/include/bsp.h | 2 --
spec/build/bsps/arm/tms570/optoscmain.yml | 11 ++++++++---
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/bsps/arm/tms570/include/bsp.h b/bsps/arm/tms570/include/bsp.h
index 9d26309e07..287750295f 100644
--- a/bsps/arm/tms570/include/bsp.h
+++ b/bsps/arm/tms570/include/bsp.h
@@ -62,10 +62,8 @@
#include <bsp/default-initial-extension.h>
#if TMS570_VARIANT == 4357
-#define BSP_OSCILATOR_CLOCK 16000000
#define BSP_PLL_OUT_CLOCK 150000000
#else
-#define BSP_OSCILATOR_CLOCK 8000000
#define BSP_PLL_OUT_CLOCK 160000000
#endif
diff --git a/spec/build/bsps/arm/tms570/optoscmain.yml b/spec/build/bsps/arm/tms570/optoscmain.yml
index 7207801c37..1755fdd85a 100644
--- a/spec/build/bsps/arm/tms570/optoscmain.yml
+++ b/spec/build/bsps/arm/tms570/optoscmain.yml
@@ -4,12 +4,17 @@ actions:
- define: null
build-type: option
copyrights:
-- Copyright (C) 2020 embedded brains GmbH & Co. KG
+- Copyright (C) 2020, 2024 embedded brains GmbH & Co. KG
default:
+- enabled-by:
+ - arm/tms570lc4357_hdk
+ - arm/tms570lc4357_hdk_sdram
+ value: 16000000
- enabled-by: true
- value: 12000000
+ value: 8000000
description: |
- main oscillator frequency in Hz
+ The option value shall be the main oscillator (OSCIN) frequency in Hz of the
+ board.
enabled-by: true
format: '{}'
links: []
More information about the vc
mailing list