Zephyr API Documentation
4.4.99
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
12
13
#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NXP_CLOCK_CONTROLLER_SOURCES_H_
14
#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NXP_CLOCK_CONTROLLER_SOURCES_H_
15
16
#include <
zephyr/drivers/clock_control.h
>
17
23
24
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(firc), nxp_firc, okay)
26
#define NXP_FIRC_DIV DT_ENUM_IDX(DT_NODELABEL(firc), firc_div)
27
#endif
28
29
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(fxosc), nxp_fxosc, okay)
31
#define NXP_FXOSC_FREQ DT_PROP(DT_NODELABEL(fxosc), freq)
33
#define NXP_FXOSC_WORKMODE \
34
(DT_ENUM_IDX(DT_NODELABEL(fxosc), workmode) == 0 ? kFXOSC_ModeCrystal : kFXOSC_ModeBypass)
36
#define NXP_FXOSC_DELAY DT_PROP(DT_NODELABEL(fxosc), delay)
38
#define NXP_FXOSC_OVERDRIVE DT_PROP(DT_NODELABEL(fxosc), overdrive)
39
#endif
40
41
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(pll), nxp_plldig, okay)
43
#define NXP_PLL_WORKMODE DT_ENUM_IDX(DT_NODELABEL(pll), workmode)
45
#define NXP_PLL_PREDIV DT_PROP(DT_NODELABEL(pll), prediv)
47
#define NXP_PLL_POSTDIV DT_PROP(DT_NODELABEL(pll), postdiv)
49
#define NXP_PLL_MULTIPLIER DT_PROP(DT_NODELABEL(pll), multiplier)
51
#define NXP_PLL_FRACLOOPDIV DT_PROP(DT_NODELABEL(pll), fracloopdiv)
53
#define NXP_PLL_STEPSIZE DT_PROP(DT_NODELABEL(pll), stepsize)
55
#define NXP_PLL_STEPNUM DT_PROP(DT_NODELABEL(pll), stepnum)
57
#define NXP_PLL_ACCURACY DT_ENUM_IDX(DT_NODELABEL(pll), accuracy)
59
#define NXP_PLL_OUTDIV_POINTER DT_PROP(DT_NODELABEL(pll), outdiv)
60
#endif
61
63
64
#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.16.1