Skip to content

Commit

Permalink
clock_control: Add stm32mp157c_dk2 board support
Browse files Browse the repository at this point in the history
Add support for stm32mp1x RCC with Zephyr clock_control driver

Signed-off-by: Yaël Boutreux <yael.boutreux@st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
  • Loading branch information
yboutreux authored and galak committed Apr 26, 2019
1 parent f6343ac commit aca4b07
Show file tree
Hide file tree
Showing 7 changed files with 439 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boards/arm/stm32mp157c_dk2/stm32mp157c_dk2_defconfig
Expand Up @@ -7,7 +7,7 @@ CONFIG_CORTEX_M_SYSTICK=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=209000000 CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=209000000


# clock configuration # clock configuration
CONFIG_CLOCK_CONTROL=n CONFIG_CLOCK_CONTROL=y


#remote proc console #remote proc console
CONFIG_CONSOLE=y CONFIG_CONSOLE=y
Expand Down
5 changes: 4 additions & 1 deletion drivers/clock_control/CMakeLists.txt
Expand Up @@ -8,8 +8,10 @@ zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_QUARK_SE quark_se_clock_con
zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_RV32M1_PCC clock_control_rv32m1_pcc.c) zephyr_sources_ifdef(CONFIG_CLOCK_CONTROL_RV32M1_PCC clock_control_rv32m1_pcc.c)


if(CONFIG_CLOCK_CONTROL_STM32_CUBE) if(CONFIG_CLOCK_CONTROL_STM32_CUBE)
if(CONFIG_SOC_SERIES_STM32MP1X)
zephyr_sources(clock_stm32_ll_mp1x.c)
else()
zephyr_sources(clock_stm32_ll_common.c) zephyr_sources(clock_stm32_ll_common.c)

zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F0X clock_stm32f0x.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F0X clock_stm32f0x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F1X clock_stm32f1x.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F1X clock_stm32f1x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F2X clock_stm32f2x.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32F2X clock_stm32f2x.c)
Expand All @@ -21,3 +23,4 @@ if(CONFIG_CLOCK_CONTROL_STM32_CUBE)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32L4X clock_stm32l4x.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32L4X clock_stm32l4x.c)
zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32WBX clock_stm32wbx.c) zephyr_sources_ifdef(CONFIG_SOC_SERIES_STM32WBX clock_stm32wbx.c)
endif() endif()
endif()
1 change: 1 addition & 0 deletions drivers/clock_control/Kconfig.stm32
Expand Up @@ -11,6 +11,7 @@ if SOC_FAMILY_STM32
menuconfig CLOCK_CONTROL_STM32_CUBE menuconfig CLOCK_CONTROL_STM32_CUBE
bool "STM32 Reset & Clock Control" bool "STM32 Reset & Clock Control"
select USE_STM32_LL_UTILS select USE_STM32_LL_UTILS
select USE_STM32_LL_RCC if SOC_SERIES_STM32MP1X
help help
Enable driver for Reset & Clock Control subsystem found Enable driver for Reset & Clock Control subsystem found
in STM32 family of MCUs in STM32 family of MCUs
Expand Down

0 comments on commit aca4b07

Please sign in to comment.