Lines Matching +full:clock +full:- +full:generator

1 /* SPDX-License-Identifier: GPL-2.0 */
24 #define BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2)
108 #define X1CLK 0x0 /* x1 clock mode */
109 #define X16CLK 0x40 /* x16 clock mode */
110 #define X32CLK 0x80 /* x32 clock mode */
111 #define X64CLK 0xC0 /* x64 clock mode */
118 #define SDLC_CRC 0x4 /* SDLC/CRC-16 */
128 /* Write Register 6 (Sync bits 0-7/SDLC Address Field) */
130 /* Write Register 7 (Sync bits 8-15/SDLC 01111110) */
167 /* Write Register 11 (Clock Mode control) */
169 #define TRxCTC 1 /* TRxC = Transmit clock */
170 #define TRxCBR 2 /* TRxC = BR Generator Output */
173 #define TCRTxCP 0 /* Transmit clock = RTxC pin */
174 #define TCTRxCP 8 /* Transmit clock = TRxC pin */
175 #define TCBR 0x10 /* Transmit clock = BR Generator output */
176 #define TCDPLL 0x18 /* Transmit clock = DPLL output */
177 #define RCRTxCP 0 /* Receive clock = RTxC pin */
178 #define RCTRxCP 0x20 /* Receive clock = TRxC pin */
179 #define RCBR 0x40 /* Receive clock = BR Generator output */
180 #define RCDPLL 0x60 /* Receive clock = DPLL output */
183 /* Write Register 12 (lower byte of baud rate generator time constant) */
185 /* Write Register 13 (upper byte of baud rate generator time constant) */
188 #define BRENAB 1 /* Baud rate generator enable */
189 #define BRSRC 2 /* Baud rate generator source */
194 #define RMC 0x40 /* Reset missing clock */
196 #define SSBR 0x80 /* Set DPLL source = BR generator */
239 /* Read Register 2 (channel b only) - Interrupt vector */
268 #define CLK1MIS 0x80 /* One clock missing */
270 /* Read Register 12 (lower byte of baud rate generator constant) */
272 /* Read Register 13 (upper byte of baud rate generator constant) */
277 #define ZS_CLEARERR(channel) do { sbus_writeb(ERR_RES, &channel->control); \
280 #define ZS_CLEARSTAT(channel) do { sbus_writeb(RES_EXT_INT, &channel->control); \
283 #define ZS_CLEARFIFO(channel) do { sbus_readb(&channel->data); \
285 sbus_readb(&channel->data); \
287 sbus_readb(&channel->data); \