Zephyr API Documentation
4.5.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-2026 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(sirc), nxp_sirc, okay)
31
#define NXP_SIRC_STANDBY_ENABLE DT_PROP(DT_NODELABEL(sirc), standby_enable)
32
#endif
33
34
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(fxosc), nxp_fxosc, okay)
36
#define NXP_FXOSC_FREQ DT_PROP(DT_NODELABEL(fxosc), freq)
38
#define NXP_FXOSC_WORKMODE \
39
(DT_ENUM_IDX(DT_NODELABEL(fxosc), workmode) == 0 ? kFXOSC_ModeCrystal : kFXOSC_ModeBypass)
41
#define NXP_FXOSC_DELAY DT_PROP(DT_NODELABEL(fxosc), delay)
43
#define NXP_FXOSC_OVERDRIVE DT_PROP(DT_NODELABEL(fxosc), overdrive)
44
#endif
45
46
#if DT_NODE_HAS_COMPAT_STATUS(DT_NODELABEL(pll), nxp_plldig, okay)
48
#define NXP_PLL_WORKMODE DT_ENUM_IDX(DT_NODELABEL(pll), workmode)
50
#define NXP_PLL_PREDIV DT_PROP(DT_NODELABEL(pll), prediv)
52
#define NXP_PLL_POSTDIV DT_PROP(DT_NODELABEL(pll), postdiv)
54
#define NXP_PLL_MULTIPLIER DT_PROP(DT_NODELABEL(pll), multiplier)
56
#define NXP_PLL_FRACLOOPDIV DT_PROP(DT_NODELABEL(pll), fracloopdiv)
58
#define NXP_PLL_STEPSIZE DT_PROP(DT_NODELABEL(pll), stepsize)
60
#define NXP_PLL_STEPNUM DT_PROP(DT_NODELABEL(pll), stepnum)
62
#define NXP_PLL_ACCURACY DT_ENUM_IDX(DT_NODELABEL(pll), accuracy)
64
#define NXP_PLL_OUTDIV_POINTER DT_PROP(DT_NODELABEL(pll), outdiv)
65
#endif
66
68
69
#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