13#ifndef ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NXP_CLOCK_CONTROLLER_SOURCES_H_
14#define ZEPHYR_INCLUDE_DRIVERS_CLOCK_CONTROL_NXP_CLOCK_CONTROLLER_SOURCES_H_
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)
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)
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)
Main header file for clock control driver API.