Lines Matching refs:N
58 #define CLKOUT_INIT(N) \ argument
59 BUILD_ASSERT(CLKOUT_DUTY_DEN(N) > 0 && \
60 CLKOUT_DUTY_NUM(N) > 0 && \
61 CLKOUT_DUTY_NUM(N) <= CLKOUT_DUTY_DEN(N), \
63 BUILD_ASSERT(CLKOUT_ID(N) < NCLKOUT, "Invalid CLKOUT index"); \
64 lcko = &ldev->clkouts[N]; \
65 lcko->id = CLKOUT_ID(N); \
68 lcko->def.freq = CLKOUT_FREQ(N); \
69 lcko->def.phase = CLKOUT_PHASE(N); \
70 lcko->def.duty.num = CLKOUT_DUTY_NUM(N); \
71 lcko->def.duty.den = CLKOUT_DUTY_DEN(N); \
72 lcko->margin.m = CLKOUT_MARGIN(N); \
73 lcko->margin.exp = CLKOUT_MARGIN_EXP(N);
76 #define CLKOUT_EXIST(N) DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(clk##N)) argument
77 #define CLKOUT_ID(N) DT_REG_ADDR(DT_NODELABEL(clk##N)) argument
78 #define CLKOUT_FREQ(N) DT_PROP(DT_NODELABEL(clk##N), \ argument
80 #define CLKOUT_PHASE(N) DT_PROP(DT_NODELABEL(clk##N), \ argument
82 #define CLKOUT_DUTY_NUM(N) DT_PROP(DT_NODELABEL(clk##N), \ argument
84 #define CLKOUT_DUTY_DEN(N) DT_PROP(DT_NODELABEL(clk##N), \ argument
86 #define CLKOUT_MARGIN(N) DT_PROP(DT_NODELABEL(clk##N), \ argument
88 #define CLKOUT_MARGIN_EXP(N) DT_PROP(DT_NODELABEL(clk##N), \ argument