soc: mec1501: don't enable SoC timing funcs if CORTEX_M_DWT

In CMakeLists.txt, the MEC1501 specific timing functions are
only compiled if CONFIG_CORTEX_M_DWT=n. However, in SoC's
kconfig, CONFIG_SOC_HAS_TIMING_FUNCTIONS is defaulted to y
unconditionally. This results in the timing subsys looking
for SoC-based timing functions but those are not compiled.
So add a condition to kconfig similar to CMakeLists.txt where
SoC timing functions are only enabled when CONFIG_CORTEX_M_DWT=n.

Fixes #29969

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2020-11-12 10:30:55 -08:00 committed by Kumar Gala
parent a17952237f
commit 353c76919d
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ config MCHP_XEC_RTOS_TIMER
default y
config SOC_HAS_TIMING_FUNCTIONS
default y
default y if !CORTEX_M_DWT
config ARCH_HAS_CUSTOM_BUSY_WAIT
default y