Skip to content

Commit aca4b07

Browse files
yboutreuxgalak
authored andcommitted
clock_control: Add stm32mp157c_dk2 board support
Add support for stm32mp1x RCC with Zephyr clock_control driver Signed-off-by: Yaël Boutreux <[email protected]> Signed-off-by: Arnaud Pouliquen <[email protected]> Signed-off-by: Alexandre Torgue <[email protected]>
1 parent f6343ac commit aca4b07

File tree

7 files changed

+439
-3
lines changed

7 files changed

+439
-3
lines changed

boards/arm/stm32mp157c_dk2/stm32mp157c_dk2_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CONFIG_CORTEX_M_SYSTICK=y
77
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=209000000
88

99
# clock configuration
10-
CONFIG_CLOCK_CONTROL=n
10+
CONFIG_CLOCK_CONTROL=y
1111

1212
#remote proc console
1313
CONFIG_CONSOLE=y

drivers/clock_control/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_QUARK_SE quark_se_clock_con
88
zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_RV32M1_PCC clock_control_rv32m1_pcc.c)
99

1010
if(CONFIG_CLOCK_CONTROL_STM32_CUBE)
11+
if(CONFIG_SOC_SERIES_STM32MP1X)
12+
zephyr_sources(clock_stm32_ll_mp1x.c)
13+
else()
1114
zephyr_sources(clock_stm32_ll_common.c)
12-
1315
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F0X clock_stm32f0x.c)
1416
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F1X clock_stm32f1x.c)
1517
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F2X clock_stm32f2x.c)
@@ -21,3 +23,4 @@ if(CONFIG_CLOCK_CONTROL_STM32_CUBE)
2123
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32L4X clock_stm32l4x.c)
2224
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32WBX clock_stm32wbx.c)
2325
endif()
26+
endif()

drivers/clock_control/Kconfig.stm32

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ if SOC_FAMILY_STM32
1111
menuconfig CLOCK_CONTROL_STM32_CUBE
1212
bool "STM32 Reset & Clock Control"
1313
select USE_STM32_LL_UTILS
14+
select USE_STM32_LL_RCC if SOC_SERIES_STM32MP1X
1415
help
1516
Enable driver for Reset & Clock Control subsystem found
1617
in STM32 family of MCUs

0 commit comments

Comments
 (0)