soc : arm : microchip_mec Move custom busy wait config to MEC1501 SoC
Configuration item custom busy wait is required for all MEC1501 series if its RTOS timer driver is enabled. We moved the selection of the timer from board level to MEC1501 SoC level. Frequency selection remains at the board level. Signed-off-by: Scott Worley <scott.worley@microchip.com>
This commit is contained in:
parent
8e6aaaf919
commit
6be78f36df
2 changed files with 23 additions and 9 deletions
|
@ -81,10 +81,6 @@ endif # ESPI
|
||||||
|
|
||||||
if RTOS_TIMER
|
if RTOS_TIMER
|
||||||
|
|
||||||
config MCHP_XEC_RTOS_TIMER
|
|
||||||
bool
|
|
||||||
default y
|
|
||||||
|
|
||||||
# XEC RTOS timer HW frequency is fixed at 32768
|
# XEC RTOS timer HW frequency is fixed at 32768
|
||||||
# The driver requires tickless mode and ticks per
|
# The driver requires tickless mode and ticks per
|
||||||
# second to be 32768 for accurate operation.
|
# second to be 32768 for accurate operation.
|
||||||
|
@ -95,15 +91,14 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
config SYS_CLOCK_TICKS_PER_SEC
|
config SYS_CLOCK_TICKS_PER_SEC
|
||||||
default 32768
|
default 32768
|
||||||
|
|
||||||
config ARCH_HAS_CUSTOM_BUSY_WAIT
|
|
||||||
default y
|
|
||||||
|
|
||||||
endif # RTOS_TIMER
|
endif # RTOS_TIMER
|
||||||
|
|
||||||
if !RTOS_TIMER
|
if !RTOS_TIMER
|
||||||
|
|
||||||
config CORTEX_M_SYSTICK
|
# If RTOS timer is not enabled we use ARM Cortex-M
|
||||||
default y
|
# SYSTICK. SYSTICK frequency is 48MHz divided by
|
||||||
|
# SOC_MEC1501_PROC_CLK_DIV.
|
||||||
|
#
|
||||||
|
|
||||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||||
default 48000000
|
default 48000000
|
||||||
|
|
|
@ -19,4 +19,23 @@ config NUM_IRQS
|
||||||
default 174
|
default 174
|
||||||
|
|
||||||
source "soc/arm/microchip_mec/mec1501/Kconfig.defconfig.mec1501*"
|
source "soc/arm/microchip_mec/mec1501/Kconfig.defconfig.mec1501*"
|
||||||
|
|
||||||
|
if RTOS_TIMER
|
||||||
|
|
||||||
|
config MCHP_XEC_RTOS_TIMER
|
||||||
|
bool
|
||||||
|
default y
|
||||||
|
|
||||||
|
config ARCH_HAS_CUSTOM_BUSY_WAIT
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # RTOS_TIMER
|
||||||
|
|
||||||
|
if !RTOS_TIMER
|
||||||
|
|
||||||
|
config CORTEX_M_SYSTICK
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # RTOS_TIMER
|
||||||
|
|
||||||
endif # SOC_SERIES_MEC1501X
|
endif # SOC_SERIES_MEC1501X
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue