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:
Kumar Gala 2019-11-04 10:24:00 -06:00 committed by Kumar Gala
commit 47fbf5bb4e
2 changed files with 11 additions and 1 deletions

View file

@ -3,4 +3,4 @@
zephyr_sources_ifdef(CONFIG_ARM_MPU arm_mpu_regions.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)

View 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))