Zephyr API Documentation
4.3.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
nxp_clock_controller_sources.h
Go to the documentation of this file.
1
/*
2
* Copyright 2025 NXP
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NXP_CLOCK_CONTROLLER_SOURCES_H_
8
#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NXP_CLOCK_CONTROLLER_SOURCES_H_
9
10
#include <
zephyr/drivers/clock_control.h
>
11
12
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(firc), nxp_firc, okay)
13
#define NXP_FIRC_DIV DT_ENUM_IDX(DT_NODELABEL(firc), firc_div)
14
#endif
15
16
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(fxosc), nxp_fxosc, okay)
17
#define NXP_FXOSC_FREQ DT_PROP(DT_NODELABEL(fxosc), freq)
18
#define NXP_FXOSC_WORKMODE \
19
(DT_ENUM_IDX(DT_NODELABEL(fxosc), workmode) == 0 ? kFXOSC_ModeCrystal : kFXOSC_ModeBypass)
20
#define NXP_FXOSC_DELAY DT_PROP(DT_NODELABEL(fxosc), delay)
21
#define NXP_FXOSC_OVERDRIVE DT_PROP(DT_NODELABEL(fxosc), overdrive)
22
#endif
23
24
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(pll), nxp_plldig, okay)
25
#define NXP_PLL_WORKMODE DT_ENUM_IDX(DT_NODELABEL(pll), workmode)
26
#define NXP_PLL_PREDIV DT_PROP(DT_NODELABEL(pll), prediv)
27
#define NXP_PLL_POSTDIV DT_PROP(DT_NODELABEL(pll), postdiv)
28
#define NXP_PLL_MULTIPLIER DT_PROP(DT_NODELABEL(pll), multiplier)
29
#define NXP_PLL_FRACLOOPDIV DT_PROP(DT_NODELABEL(pll), fracloopdiv)
30
#define NXP_PLL_STEPSIZE DT_PROP(DT_NODELABEL(pll), stepsize)
31
#define NXP_PLL_STEPNUM DT_PROP(DT_NODELABEL(pll), stepnum)
32
#define NXP_PLL_ACCURACY DT_ENUM_IDX(DT_NODELABEL(pll), accuracy)
33
#define NXP_PLL_OUTDIV_POINTER DT_PROP(DT_NODELABEL(pll), outdiv)
34
#endif
35
36
#endif
/* ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NXP_CLOCK_CONTROLLER_SOURCES_H_ */
clock_control.h
Main header file for clock control driver API.
zephyr
drivers
clock_control
nxp_clock_controller_sources.h
Generated on
for Zephyr API Documentation by
1.14.0