soc: stm32: Convert CCM config from DT Kconfig symbol to function
Introduce a Kconfig symbol that utilizes a dt function to determine if we have STM32 CCM functionality being utilized. This removes the dependance on parsing symbols from generated_dts_board.conf. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
07e5d89d86
commit
47fbf5bb4e
2 changed files with 11 additions and 1 deletions
|
@ -3,4 +3,4 @@
|
||||||
zephyr_sources_ifdef(CONFIG_ARM_MPU arm_mpu_regions.c)
|
zephyr_sources_ifdef(CONFIG_ARM_MPU arm_mpu_regions.c)
|
||||||
zephyr_sources(stm32cube_hal.c)
|
zephyr_sources(stm32cube_hal.c)
|
||||||
|
|
||||||
zephyr_linker_sources_ifdef(DT_CCM_BASE_ADDRESS SECTIONS ccm.ld)
|
zephyr_linker_sources_ifdef(CONFIG_STM32_CCM SECTIONS ccm.ld)
|
||||||
|
|
10
soc/arm/st_stm32/common/Kconfig.soc
Normal file
10
soc/arm/st_stm32/common/Kconfig.soc
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Kconfig - ST Microelectronics Common Kconfig
|
||||||
|
|
||||||
|
# Copyright (c) 2019 Linaro Ltd.
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
# Workaround for not being able to have commas in macro arguments
|
||||||
|
DT_CHOSEN_Z_CCM := zephyr,ccm
|
||||||
|
|
||||||
|
config STM32_CCM
|
||||||
|
def_bool $(dt_chosen_enabled,$(DT_CHOSEN_Z_CCM))
|
Loading…
Add table
Add a link
Reference in a new issue