From df378641e68fcd9f27797fb998b7a46e2f54f731 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 9 Jan 2024 07:47:50 +0100 Subject: [PATCH] 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 #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: []