Lines Matching +full:divider +full:- +full:frac +full:- +full:0

4  * SPDX-License-Identifier: Apache-2.0
24 #define DRP_RESET 0
34 #define DRP_BASE DT_REG_ADDR_BY_IDX(MMCM, 0)
59 BUILD_ASSERT(CLKOUT_DUTY_DEN(N) > 0 && \
60 CLKOUT_DUTY_NUM(N) > 0 && \
64 lcko = &ldev->clkouts[N]; \
65 lcko->id = CLKOUT_ID(N); \
67 lcko->clkout_div = clkout_div; \
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);
92 #define FULL_REG_16 0xFFFF
93 #define ZERO_REG 0x0
94 #define KEEP_IN_MUL_REG1 0xF000
95 #define KEEP_IN_MUL_REG2 0xFF3F
96 #define KEEP_IN_DIV 0xC000
97 #define REG1_FREQ_MASK 0xF000
98 #define REG2_FREQ_MASK 0x803F
99 #define REG1_DUTY_MASK 0xF000
100 #define REG2_DUTY_MASK 0xFF7F
101 #define REG1_PHASE_MASK 0x1FFF
102 #define REG2_PHASE_MASK 0xFCC0
103 #define FILT1_MASK 0x66FF
104 #define FILT2_MASK 0x666F
105 #define LOCK1_MASK 0xFC00
106 #define LOCK23_MASK 0x8000
108 #define HL_TIME_MASK 0x3F
109 #define FRAC_MASK 0x7
110 #define EDGE_MASK 0x1
111 #define NO_CNT_MASK 0x1
112 #define FRAC_EN_MASK 0x1
113 #define PHASE_MUX_MASK 0x7
117 #define LOW_TIME_POS 0
126 #define DELAY_TIME_POS 0
129 #define POWER_REG 0x28
130 #define DIV_REG 0x16
131 #define LOCK_REG1 0x18
132 #define LOCK_REG2 0x19
133 #define LOCK_REG3 0x1A
134 #define FILT_REG1 0x4E
135 #define FILT_REG2 0x4F
136 #define CLKOUT0_REG1 0x08
137 #define CLKOUT0_REG2 0x09
138 #define CLKOUT1_REG1 0x0A
139 #define CLKOUT1_REG2 0x0B
140 #define CLKOUT2_REG1 0x0C
141 #define CLKOUT2_REG2 0x0D
142 #define CLKOUT3_REG1 0x0E
143 #define CLKOUT3_REG2 0x0F
144 #define CLKOUT4_REG1 0x10
145 #define CLKOUT4_REG2 0x11
146 #define CLKOUT5_REG1 0x06
147 #define CLKOUT5_REG2 0x07
148 #define CLKOUT6_REG1 0x12
149 #define CLKOUT6_REG2 0x13
150 #define CLKFBOUT_REG1 0x14
151 #define CLKFBOUT_REG2 0x15
181 /* Divider configuration bits group */
199 uint8_t frac; member
257 struct litex_clk_frac_params frac; member