Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
clock_control_ifx.h File Reference

Infineon clock control driver public API. More...

#include <stdint.h>
#include <zephyr/devicetree.h>

Go to the source code of this file.

Data Structures

struct  ifx_clk
 Infineon clock specifier. More...
struct  ifx_clk_peri
 Infineon peripheral clock specifier. More...

Macros

#define IFX_CLK_PLL   0
 PLL clock type.
#define IFX_CLK_HF   1
 High-frequency clock type.
#define IFX_CLK_LF   2
 Low-frequency clock type.
#define IFX_CLK_PERI_DT_SPEC_GET(node_id)
 Build a struct ifx_clk_peri from a peripheral's clocks property and clock destination property (peripheral clock ID).
#define IFX_CLK_PERI_DT_INST_SPEC_GET(inst)
 Like IFX_CLK_PERI_DT_SPEC_GET(), by DT_DRV_COMPAT instance number.

Detailed Description

Infineon clock control driver public API.

Macro Definition Documentation

◆ IFX_CLK_HF

#define IFX_CLK_HF   1

High-frequency clock type.

◆ IFX_CLK_LF

#define IFX_CLK_LF   2

Low-frequency clock type.

◆ IFX_CLK_PERI_DT_INST_SPEC_GET

#define IFX_CLK_PERI_DT_INST_SPEC_GET ( inst)
Value:
#define IFX_CLK_PERI_DT_SPEC_GET(node_id)
Build a struct ifx_clk_peri from a peripheral's clocks property and clock destination property (perip...
Definition clock_control_ifx.h:47
#define DT_DRV_INST(inst)
Node identifier for an instance of a DT_DRV_COMPAT compatible.
Definition devicetree.h:4765

Like IFX_CLK_PERI_DT_SPEC_GET(), by DT_DRV_COMPAT instance number.

◆ IFX_CLK_PERI_DT_SPEC_GET

#define IFX_CLK_PERI_DT_SPEC_GET ( node_id)
Value:
{ \
.rootclk_id = DT_PROP(node_id, clk_dst), \
.div_ord = DT_DEP_ORD(DT_CLOCKS_CTLR(node_id)), \
}
#define DT_CLOCKS_CTLR(node_id)
Equivalent to DT_CLOCKS_CTLR_BY_IDX(node_id, 0).
Definition clocks.h:145
#define DT_DEP_ORD(node_id)
Get a node's dependency ordinal.
Definition ordinals.h:25
#define DT_PROP(node_id, prop)
Get a devicetree property value.
Definition devicetree.h:873

Build a struct ifx_clk_peri from a peripheral's clocks property and clock destination property (peripheral clock ID).

◆ IFX_CLK_PLL

#define IFX_CLK_PLL   0

PLL clock type.