forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dt-bindings: clock: Add clock sources for stm32f1x/10x for MCO
Add clock sources that can be output by the MCO on the stm32f1x and stm32f10 connectivity line devices. Signed-off-by: Joakim Andersson <[email protected]>
- Loading branch information
1 parent
807ccf5
commit efe72a3
Showing
4 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* Copyright (C) 2024, Joakim Andersson | ||
*/ | ||
|
||
#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32F10X_CLOCK_H_ | ||
#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32F10X_CLOCK_H_ | ||
|
||
#include "stm32_common_clocks.h" | ||
/* Ensure correct order by including generic F1 definitions first. */ | ||
#include "stm32f1_clock.h" | ||
|
||
/** Fixed clocks */ | ||
/* Low speed clocks defined in stm32_common_clocks.h */ | ||
/* Common clocks with stm32f1x defined in stm32f1_clock.h */ | ||
#define STM32_SRC_PLL2CLK (STM32_SRC_PLLCLK + 1) | ||
#define STM32_SRC_PLL3CLK (STM32_SRC_PLL2CLK + 1) | ||
#define STM32_SRC_EXT_HSE (STM32_SRC_PLL3CLK + 1) | ||
|
||
#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_STM32F10X_CLOCK_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters