Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
mchp_xec_pcr.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Microchip Technology Inc.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_MCHP_XEC_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_MCHP_XEC_H_
9
10/* PLL and Peripheral 32 KHz clock source */
11#define MCHP_XEC_CLK32K_SRC_SIL_OSC 0U
12#define MCHP_XEC_CLK32K_SRC_XTAL 1U
13#define MCHP_XEC_CLK32K_SRC_PIN 2U
14
15/* Crystal connection */
16#define MCHP_XEC_XTAL_PARALLEL 0U
17#define MCHP_XEC_XTAL_SINGLE_ENDED 1U
18
19/*
20 * When the 32KHz pin goes down fall back
21 * to either internal silicon oscillator
22 * or crystal.
23 */
24#define MCHP_XEC_PIN32K_FB_SIL_OSC 0U
25#define MCHP_XEC_PIN32K_FB_XTAL 1U
26
27/* clocks supported by the driver */
28#define MCHP_XEC_PCR_CLK_CORE 0
29#define MCHP_XEC_PCR_CLK_CPU 1
30#define MCHP_XEC_PCR_CLK_BUS 2
31#define MCHP_XEC_PCR_CLK_PERIPH 3
32#define MCHP_XEC_PCR_CLK_PERIPH_FAST 4
33#define MCHP_XEC_PCR_CLK_PERIPH_SLOW 5
34
35#endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_MCHP_XEC_H_ */