1# Copyright (c) 2021 Microchip Technology Inc.
2# SPDX-License-Identifier: Apache-2.0
3
4if BOARD_MEC172XEVB_ASSY6906
5
6if RTOS_TIMER
7
8# XEC RTOS timer HW frequency is fixed at 32768 Hz.
9# The driver requires tickless mode and ticks per second to be 32768 for
10# accurate operation.
11
12config SYS_CLOCK_HW_CYCLES_PER_SEC
13	default 32768
14
15config SYS_CLOCK_TICKS_PER_SEC
16	default 32768
17
18endif # RTOS_TIMER
19
20if !RTOS_TIMER
21
22# If RTOS timer is not enabled we use ARM Cortex-M
23# SYSTICK. SYSTICK frequency is 96 MHz divided down by the MEC172x PCR
24# processor clock divider register. We assume PCR processor clock divider
25# is set to 1. Refer to SOC_MEC_PROC_CLK_DIV
26#
27
28config SYS_CLOCK_HW_CYCLES_PER_SEC
29	default 96000000
30
31config SYS_CLOCK_TICKS_PER_SEC
32	default 1000
33
34endif # RTOS_TIMER
35
36endif # BOARD_MEC172XEVB_ASSY6906
37