Skip to content
Permalink
Browse files

board: mec: Select cortex-M systick-based driver

Disable 32Khz until accuracy issues and timer tests failures
are resolved.

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
  • Loading branch information...
Jose Alberto Meza authored and andrewboie committed Jul 30, 2019
1 parent 1978022 commit 882503f9130359125d6890ad7fe7e792abf751ba
@@ -72,21 +72,42 @@ config I2C_XEC_2

endif # I2C

if SYS_CLOCK_EXISTS
# If the kernel has timer support, enable both clock control and timer
config CLOCK_CONTROL
if ESPI

config ESPI_XEC
default y

endif # ESPI

if RTOS_TIMER

config MCHP_XEC_RTOS_TIMER
bool
default y

endif # SYS_CLOCK_EXISTS
# XEC RTOS timer HW frequency is fixed at 32768
# The driver requires tickless mode and ticks per
# second to be 32768 for accurate operation.

if ESPI
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 32768

config ESPI_XEC
config SYS_CLOCK_TICKS_PER_SEC
default 32768

endif # RTOS_TIMER

if !RTOS_TIMER

config CORTEX_M_SYSTICK
default y

endif # ESPI
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 48000000

config SYS_CLOCK_TICKS_PER_SEC
default 1000

endif # RTOS_TIMER

endif # BOARD_MEC15XXEVB_ASSY6853
@@ -8,13 +8,7 @@ CONFIG_ARM=y
CONFIG_SOC_MEC1501_HSZ=y
CONFIG_SOC_SERIES_MEC1501X=y
CONFIG_BOARD_MEC15XXEVB_ASSY6853=y
CONFIG_CORTEX_M_SYSTICK=n

# XEC RTOS timer HW frequency is fixed at 32768
# The driver requires tickless mode and ticks per
# second to be 32768 for accurate operation.
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32768
CONFIG_SYS_CLOCK_TICKS_PER_SEC=32768
CONFIG_RTOS_TIMER=n

CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

0 comments on commit 882503f

Please sign in to comment.
You can’t perform that action at this time.