dm writecache: correct uncommitted_block when discarding uncommitted entry
[linux/fpc-iii.git] / drivers / ptp / idt8a340_reg.h
blob69eedda9f731ef49c554e69e97ca7fed8e2d307a
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /* idt8a340_reg.h
4 * Originally generated by regen.tcl on Thu Feb 14 19:23:44 PST 2019
5 * https://github.com/richardcochran/regen
7 * Hand modified to include some HW registers.
8 * Based on 4.8.0, SCSR rev C commit a03c7ae5
9 */
10 #ifndef HAVE_IDT8A340_REG
11 #define HAVE_IDT8A340_REG
13 #define PAGE_ADDR_BASE 0x0000
14 #define PAGE_ADDR 0x00fc
16 #define HW_REVISION 0x8180
17 #define REV_ID 0x007a
19 #define HW_DPLL_0 (0x8a00)
20 #define HW_DPLL_1 (0x8b00)
21 #define HW_DPLL_2 (0x8c00)
22 #define HW_DPLL_3 (0x8d00)
24 #define HW_DPLL_TOD_SW_TRIG_ADDR__0 (0x080)
25 #define HW_DPLL_TOD_CTRL_1 (0x089)
26 #define HW_DPLL_TOD_CTRL_2 (0x08A)
27 #define HW_DPLL_TOD_OVR__0 (0x098)
28 #define HW_DPLL_TOD_OUT_0__0 (0x0B0)
30 #define HW_Q0_Q1_CH_SYNC_CTRL_0 (0xa740)
31 #define HW_Q0_Q1_CH_SYNC_CTRL_1 (0xa741)
32 #define HW_Q2_Q3_CH_SYNC_CTRL_0 (0xa742)
33 #define HW_Q2_Q3_CH_SYNC_CTRL_1 (0xa743)
34 #define HW_Q4_Q5_CH_SYNC_CTRL_0 (0xa744)
35 #define HW_Q4_Q5_CH_SYNC_CTRL_1 (0xa745)
36 #define HW_Q6_Q7_CH_SYNC_CTRL_0 (0xa746)
37 #define HW_Q6_Q7_CH_SYNC_CTRL_1 (0xa747)
38 #define HW_Q8_CH_SYNC_CTRL_0 (0xa748)
39 #define HW_Q8_CH_SYNC_CTRL_1 (0xa749)
40 #define HW_Q9_CH_SYNC_CTRL_0 (0xa74a)
41 #define HW_Q9_CH_SYNC_CTRL_1 (0xa74b)
42 #define HW_Q10_CH_SYNC_CTRL_0 (0xa74c)
43 #define HW_Q10_CH_SYNC_CTRL_1 (0xa74d)
44 #define HW_Q11_CH_SYNC_CTRL_0 (0xa74e)
45 #define HW_Q11_CH_SYNC_CTRL_1 (0xa74f)
47 #define SYNC_SOURCE_DPLL0_TOD_PPS 0x14
48 #define SYNC_SOURCE_DPLL1_TOD_PPS 0x15
49 #define SYNC_SOURCE_DPLL2_TOD_PPS 0x16
50 #define SYNC_SOURCE_DPLL3_TOD_PPS 0x17
52 #define SYNCTRL1_MASTER_SYNC_RST BIT(7)
53 #define SYNCTRL1_MASTER_SYNC_TRIG BIT(5)
54 #define SYNCTRL1_TOD_SYNC_TRIG BIT(4)
55 #define SYNCTRL1_FBDIV_FRAME_SYNC_TRIG BIT(3)
56 #define SYNCTRL1_FBDIV_SYNC_TRIG BIT(2)
57 #define SYNCTRL1_Q1_DIV_SYNC_TRIG BIT(1)
58 #define SYNCTRL1_Q0_DIV_SYNC_TRIG BIT(0)
60 #define RESET_CTRL 0xc000
61 #define SM_RESET 0x0012
62 #define SM_RESET_CMD 0x5A
64 #define GENERAL_STATUS 0xc014
65 #define HW_REV_ID 0x000A
66 #define BOND_ID 0x000B
67 #define HW_CSR_ID 0x000C
68 #define HW_IRQ_ID 0x000E
70 #define MAJ_REL 0x0010
71 #define MIN_REL 0x0011
72 #define HOTFIX_REL 0x0012
74 #define PIPELINE_ID 0x0014
75 #define BUILD_ID 0x0018
77 #define JTAG_DEVICE_ID 0x001c
78 #define PRODUCT_ID 0x001e
80 #define OTP_SCSR_CONFIG_SELECT 0x0022
82 #define STATUS 0xc03c
83 #define USER_GPIO0_TO_7_STATUS 0x008a
84 #define USER_GPIO8_TO_15_STATUS 0x008b
86 #define GPIO_USER_CONTROL 0xc160
87 #define GPIO0_TO_7_OUT 0x0000
88 #define GPIO8_TO_15_OUT 0x0001
90 #define STICKY_STATUS_CLEAR 0xc164
92 #define GPIO_TOD_NOTIFICATION_CLEAR 0xc16c
94 #define ALERT_CFG 0xc188
96 #define SYS_DPLL_XO 0xc194
98 #define SYS_APLL 0xc19c
100 #define INPUT_0 0xc1b0
102 #define INPUT_1 0xc1c0
104 #define INPUT_2 0xc1d0
106 #define INPUT_3 0xc200
108 #define INPUT_4 0xc210
110 #define INPUT_5 0xc220
112 #define INPUT_6 0xc230
114 #define INPUT_7 0xc240
116 #define INPUT_8 0xc250
118 #define INPUT_9 0xc260
120 #define INPUT_10 0xc280
122 #define INPUT_11 0xc290
124 #define INPUT_12 0xc2a0
126 #define INPUT_13 0xc2b0
128 #define INPUT_14 0xc2c0
130 #define INPUT_15 0xc2d0
132 #define REF_MON_0 0xc2e0
134 #define REF_MON_1 0xc2ec
136 #define REF_MON_2 0xc300
138 #define REF_MON_3 0xc30c
140 #define REF_MON_4 0xc318
142 #define REF_MON_5 0xc324
144 #define REF_MON_6 0xc330
146 #define REF_MON_7 0xc33c
148 #define REF_MON_8 0xc348
150 #define REF_MON_9 0xc354
152 #define REF_MON_10 0xc360
154 #define REF_MON_11 0xc36c
156 #define REF_MON_12 0xc380
158 #define REF_MON_13 0xc38c
160 #define REF_MON_14 0xc398
162 #define REF_MON_15 0xc3a4
164 #define DPLL_0 0xc3b0
165 #define DPLL_CTRL_REG_0 0x0002
166 #define DPLL_CTRL_REG_1 0x0003
167 #define DPLL_CTRL_REG_2 0x0004
168 #define DPLL_TOD_SYNC_CFG 0x0031
169 #define DPLL_COMBO_SLAVE_CFG_0 0x0032
170 #define DPLL_COMBO_SLAVE_CFG_1 0x0033
171 #define DPLL_SLAVE_REF_CFG 0x0034
172 #define DPLL_REF_MODE 0x0035
173 #define DPLL_PHASE_MEASUREMENT_CFG 0x0036
174 #define DPLL_MODE 0x0037
176 #define DPLL_1 0xc400
178 #define DPLL_2 0xc438
180 #define DPLL_3 0xc480
182 #define DPLL_4 0xc4b8
184 #define DPLL_5 0xc500
186 #define DPLL_6 0xc538
188 #define DPLL_7 0xc580
190 #define SYS_DPLL 0xc5b8
192 #define DPLL_CTRL_0 0xc600
193 #define DPLL_CTRL_DPLL_MANU_REF_CFG 0x0001
195 #define DPLL_CTRL_1 0xc63c
197 #define DPLL_CTRL_2 0xc680
199 #define DPLL_CTRL_3 0xc6bc
201 #define DPLL_CTRL_4 0xc700
203 #define DPLL_CTRL_5 0xc73c
205 #define DPLL_CTRL_6 0xc780
207 #define DPLL_CTRL_7 0xc7bc
209 #define SYS_DPLL_CTRL 0xc800
211 #define DPLL_PHASE_0 0xc818
213 /* Signed 42-bit FFO in units of 2^(-53) */
214 #define DPLL_WR_PHASE 0x0000
216 #define DPLL_PHASE_1 0xc81c
218 #define DPLL_PHASE_2 0xc820
220 #define DPLL_PHASE_3 0xc824
222 #define DPLL_PHASE_4 0xc828
224 #define DPLL_PHASE_5 0xc82c
226 #define DPLL_PHASE_6 0xc830
228 #define DPLL_PHASE_7 0xc834
230 #define DPLL_FREQ_0 0xc838
232 /* Signed 42-bit FFO in units of 2^(-53) */
233 #define DPLL_WR_FREQ 0x0000
235 #define DPLL_FREQ_1 0xc840
237 #define DPLL_FREQ_2 0xc848
239 #define DPLL_FREQ_3 0xc850
241 #define DPLL_FREQ_4 0xc858
243 #define DPLL_FREQ_5 0xc860
245 #define DPLL_FREQ_6 0xc868
247 #define DPLL_FREQ_7 0xc870
249 #define DPLL_PHASE_PULL_IN_0 0xc880
250 #define PULL_IN_OFFSET 0x0000 /* Signed 32 bit */
251 #define PULL_IN_SLOPE_LIMIT 0x0004 /* Unsigned 24 bit */
252 #define PULL_IN_CTRL 0x0007
254 #define DPLL_PHASE_PULL_IN_1 0xc888
256 #define DPLL_PHASE_PULL_IN_2 0xc890
258 #define DPLL_PHASE_PULL_IN_3 0xc898
260 #define DPLL_PHASE_PULL_IN_4 0xc8a0
262 #define DPLL_PHASE_PULL_IN_5 0xc8a8
264 #define DPLL_PHASE_PULL_IN_6 0xc8b0
266 #define DPLL_PHASE_PULL_IN_7 0xc8b8
268 #define GPIO_CFG 0xc8c0
269 #define GPIO_CFG_GBL 0x0000
271 #define GPIO_0 0xc8c2
272 #define GPIO_DCO_INC_DEC 0x0000
273 #define GPIO_OUT_CTRL_0 0x0001
274 #define GPIO_OUT_CTRL_1 0x0002
275 #define GPIO_TOD_TRIG 0x0003
276 #define GPIO_DPLL_INDICATOR 0x0004
277 #define GPIO_LOS_INDICATOR 0x0005
278 #define GPIO_REF_INPUT_DSQ_0 0x0006
279 #define GPIO_REF_INPUT_DSQ_1 0x0007
280 #define GPIO_REF_INPUT_DSQ_2 0x0008
281 #define GPIO_REF_INPUT_DSQ_3 0x0009
282 #define GPIO_MAN_CLK_SEL_0 0x000a
283 #define GPIO_MAN_CLK_SEL_1 0x000b
284 #define GPIO_MAN_CLK_SEL_2 0x000c
285 #define GPIO_SLAVE 0x000d
286 #define GPIO_ALERT_OUT_CFG 0x000e
287 #define GPIO_TOD_NOTIFICATION_CFG 0x000f
288 #define GPIO_CTRL 0x0010
290 #define GPIO_1 0xc8d4
292 #define GPIO_2 0xc8e6
294 #define GPIO_3 0xc900
296 #define GPIO_4 0xc912
298 #define GPIO_5 0xc924
300 #define GPIO_6 0xc936
302 #define GPIO_7 0xc948
304 #define GPIO_8 0xc95a
306 #define GPIO_9 0xc980
308 #define GPIO_10 0xc992
310 #define GPIO_11 0xc9a4
312 #define GPIO_12 0xc9b6
314 #define GPIO_13 0xc9c8
316 #define GPIO_14 0xc9da
318 #define GPIO_15 0xca00
320 #define OUT_DIV_MUX 0xca12
322 #define OUTPUT_0 0xca14
323 /* FOD frequency output divider value */
324 #define OUT_DIV 0x0000
325 #define OUT_DUTY_CYCLE_HIGH 0x0004
326 #define OUT_CTRL_0 0x0008
327 #define OUT_CTRL_1 0x0009
328 /* Phase adjustment in FOD cycles */
329 #define OUT_PHASE_ADJ 0x000c
331 #define OUTPUT_1 0xca24
333 #define OUTPUT_2 0xca34
335 #define OUTPUT_3 0xca44
337 #define OUTPUT_4 0xca54
339 #define OUTPUT_5 0xca64
341 #define OUTPUT_6 0xca80
343 #define OUTPUT_7 0xca90
345 #define OUTPUT_8 0xcaa0
347 #define OUTPUT_9 0xcab0
349 #define OUTPUT_10 0xcac0
351 #define OUTPUT_11 0xcad0
353 #define SERIAL 0xcae0
355 #define PWM_ENCODER_0 0xcb00
357 #define PWM_ENCODER_1 0xcb08
359 #define PWM_ENCODER_2 0xcb10
361 #define PWM_ENCODER_3 0xcb18
363 #define PWM_ENCODER_4 0xcb20
365 #define PWM_ENCODER_5 0xcb28
367 #define PWM_ENCODER_6 0xcb30
369 #define PWM_ENCODER_7 0xcb38
371 #define PWM_DECODER_0 0xcb40
373 #define PWM_DECODER_1 0xcb48
375 #define PWM_DECODER_2 0xcb50
377 #define PWM_DECODER_3 0xcb58
379 #define PWM_DECODER_4 0xcb60
381 #define PWM_DECODER_5 0xcb68
383 #define PWM_DECODER_6 0xcb70
385 #define PWM_DECODER_7 0xcb80
387 #define PWM_DECODER_8 0xcb88
389 #define PWM_DECODER_9 0xcb90
391 #define PWM_DECODER_10 0xcb98
393 #define PWM_DECODER_11 0xcba0
395 #define PWM_DECODER_12 0xcba8
397 #define PWM_DECODER_13 0xcbb0
399 #define PWM_DECODER_14 0xcbb8
401 #define PWM_DECODER_15 0xcbc0
403 #define PWM_USER_DATA 0xcbc8
405 #define TOD_0 0xcbcc
407 /* Enable TOD counter, output channel sync and even-PPS mode */
408 #define TOD_CFG 0x0000
410 #define TOD_1 0xcbce
412 #define TOD_2 0xcbd0
414 #define TOD_3 0xcbd2
417 #define TOD_WRITE_0 0xcc00
418 /* 8-bit subns, 32-bit ns, 48-bit seconds */
419 #define TOD_WRITE 0x0000
420 /* Counter increments after TOD write is completed */
421 #define TOD_WRITE_COUNTER 0x000c
422 /* TOD write trigger configuration */
423 #define TOD_WRITE_SELECT_CFG_0 0x000d
424 /* TOD write trigger selection */
425 #define TOD_WRITE_CMD 0x000f
427 #define TOD_WRITE_1 0xcc10
429 #define TOD_WRITE_2 0xcc20
431 #define TOD_WRITE_3 0xcc30
433 #define TOD_READ_PRIMARY_0 0xcc40
434 /* 8-bit subns, 32-bit ns, 48-bit seconds */
435 #define TOD_READ_PRIMARY 0x0000
436 /* Counter increments after TOD write is completed */
437 #define TOD_READ_PRIMARY_COUNTER 0x000b
438 /* Read trigger configuration */
439 #define TOD_READ_PRIMARY_SEL_CFG_0 0x000c
440 /* Read trigger selection */
441 #define TOD_READ_PRIMARY_CMD 0x000e
443 #define TOD_READ_PRIMARY_1 0xcc50
445 #define TOD_READ_PRIMARY_2 0xcc60
447 #define TOD_READ_PRIMARY_3 0xcc80
449 #define TOD_READ_SECONDARY_0 0xcc90
451 #define TOD_READ_SECONDARY_1 0xcca0
453 #define TOD_READ_SECONDARY_2 0xccb0
455 #define TOD_READ_SECONDARY_3 0xccc0
457 #define OUTPUT_TDC_CFG 0xccd0
459 #define OUTPUT_TDC_0 0xcd00
461 #define OUTPUT_TDC_1 0xcd08
463 #define OUTPUT_TDC_2 0xcd10
465 #define OUTPUT_TDC_3 0xcd18
467 #define INPUT_TDC 0xcd20
469 #define SCRATCH 0xcf50
471 #define EEPROM 0xcf68
473 #define OTP 0xcf70
475 #define BYTE 0xcf80
477 /* Bit definitions for the MAJ_REL register */
478 #define MAJOR_SHIFT (1)
479 #define MAJOR_MASK (0x7f)
480 #define PR_BUILD BIT(0)
482 /* Bit definitions for the USER_GPIO0_TO_7_STATUS register */
483 #define GPIO0_LEVEL BIT(0)
484 #define GPIO1_LEVEL BIT(1)
485 #define GPIO2_LEVEL BIT(2)
486 #define GPIO3_LEVEL BIT(3)
487 #define GPIO4_LEVEL BIT(4)
488 #define GPIO5_LEVEL BIT(5)
489 #define GPIO6_LEVEL BIT(6)
490 #define GPIO7_LEVEL BIT(7)
492 /* Bit definitions for the USER_GPIO8_TO_15_STATUS register */
493 #define GPIO8_LEVEL BIT(0)
494 #define GPIO9_LEVEL BIT(1)
495 #define GPIO10_LEVEL BIT(2)
496 #define GPIO11_LEVEL BIT(3)
497 #define GPIO12_LEVEL BIT(4)
498 #define GPIO13_LEVEL BIT(5)
499 #define GPIO14_LEVEL BIT(6)
500 #define GPIO15_LEVEL BIT(7)
502 /* Bit definitions for the GPIO0_TO_7_OUT register */
503 #define GPIO0_DRIVE_LEVEL BIT(0)
504 #define GPIO1_DRIVE_LEVEL BIT(1)
505 #define GPIO2_DRIVE_LEVEL BIT(2)
506 #define GPIO3_DRIVE_LEVEL BIT(3)
507 #define GPIO4_DRIVE_LEVEL BIT(4)
508 #define GPIO5_DRIVE_LEVEL BIT(5)
509 #define GPIO6_DRIVE_LEVEL BIT(6)
510 #define GPIO7_DRIVE_LEVEL BIT(7)
512 /* Bit definitions for the GPIO8_TO_15_OUT register */
513 #define GPIO8_DRIVE_LEVEL BIT(0)
514 #define GPIO9_DRIVE_LEVEL BIT(1)
515 #define GPIO10_DRIVE_LEVEL BIT(2)
516 #define GPIO11_DRIVE_LEVEL BIT(3)
517 #define GPIO12_DRIVE_LEVEL BIT(4)
518 #define GPIO13_DRIVE_LEVEL BIT(5)
519 #define GPIO14_DRIVE_LEVEL BIT(6)
520 #define GPIO15_DRIVE_LEVEL BIT(7)
522 /* Bit definitions for the DPLL_TOD_SYNC_CFG register */
523 #define TOD_SYNC_SOURCE_SHIFT (1)
524 #define TOD_SYNC_SOURCE_MASK (0x3)
525 #define TOD_SYNC_EN BIT(0)
527 /* Bit definitions for the DPLL_MODE register */
528 #define WRITE_TIMER_MODE BIT(6)
529 #define PLL_MODE_SHIFT (3)
530 #define PLL_MODE_MASK (0x7)
531 #define STATE_MODE_SHIFT (0)
532 #define STATE_MODE_MASK (0x7)
534 /* Bit definitions for the GPIO_CFG_GBL register */
535 #define SUPPLY_MODE_SHIFT (0)
536 #define SUPPLY_MODE_MASK (0x3)
538 /* Bit definitions for the GPIO_DCO_INC_DEC register */
539 #define INCDEC_DPLL_INDEX_SHIFT (0)
540 #define INCDEC_DPLL_INDEX_MASK (0x7)
542 /* Bit definitions for the GPIO_OUT_CTRL_0 register */
543 #define CTRL_OUT_0 BIT(0)
544 #define CTRL_OUT_1 BIT(1)
545 #define CTRL_OUT_2 BIT(2)
546 #define CTRL_OUT_3 BIT(3)
547 #define CTRL_OUT_4 BIT(4)
548 #define CTRL_OUT_5 BIT(5)
549 #define CTRL_OUT_6 BIT(6)
550 #define CTRL_OUT_7 BIT(7)
552 /* Bit definitions for the GPIO_OUT_CTRL_1 register */
553 #define CTRL_OUT_8 BIT(0)
554 #define CTRL_OUT_9 BIT(1)
555 #define CTRL_OUT_10 BIT(2)
556 #define CTRL_OUT_11 BIT(3)
557 #define CTRL_OUT_12 BIT(4)
558 #define CTRL_OUT_13 BIT(5)
559 #define CTRL_OUT_14 BIT(6)
560 #define CTRL_OUT_15 BIT(7)
562 /* Bit definitions for the GPIO_TOD_TRIG register */
563 #define TOD_TRIG_0 BIT(0)
564 #define TOD_TRIG_1 BIT(1)
565 #define TOD_TRIG_2 BIT(2)
566 #define TOD_TRIG_3 BIT(3)
568 /* Bit definitions for the GPIO_DPLL_INDICATOR register */
569 #define IND_DPLL_INDEX_SHIFT (0)
570 #define IND_DPLL_INDEX_MASK (0x7)
572 /* Bit definitions for the GPIO_LOS_INDICATOR register */
573 #define REFMON_INDEX_SHIFT (0)
574 #define REFMON_INDEX_MASK (0xf)
575 /* Active level of LOS indicator, 0=low 1=high */
576 #define ACTIVE_LEVEL BIT(4)
578 /* Bit definitions for the GPIO_REF_INPUT_DSQ_0 register */
579 #define DSQ_INP_0 BIT(0)
580 #define DSQ_INP_1 BIT(1)
581 #define DSQ_INP_2 BIT(2)
582 #define DSQ_INP_3 BIT(3)
583 #define DSQ_INP_4 BIT(4)
584 #define DSQ_INP_5 BIT(5)
585 #define DSQ_INP_6 BIT(6)
586 #define DSQ_INP_7 BIT(7)
588 /* Bit definitions for the GPIO_REF_INPUT_DSQ_1 register */
589 #define DSQ_INP_8 BIT(0)
590 #define DSQ_INP_9 BIT(1)
591 #define DSQ_INP_10 BIT(2)
592 #define DSQ_INP_11 BIT(3)
593 #define DSQ_INP_12 BIT(4)
594 #define DSQ_INP_13 BIT(5)
595 #define DSQ_INP_14 BIT(6)
596 #define DSQ_INP_15 BIT(7)
598 /* Bit definitions for the GPIO_REF_INPUT_DSQ_2 register */
599 #define DSQ_DPLL_0 BIT(0)
600 #define DSQ_DPLL_1 BIT(1)
601 #define DSQ_DPLL_2 BIT(2)
602 #define DSQ_DPLL_3 BIT(3)
603 #define DSQ_DPLL_4 BIT(4)
604 #define DSQ_DPLL_5 BIT(5)
605 #define DSQ_DPLL_6 BIT(6)
606 #define DSQ_DPLL_7 BIT(7)
608 /* Bit definitions for the GPIO_REF_INPUT_DSQ_3 register */
609 #define DSQ_DPLL_SYS BIT(0)
610 #define GPIO_DSQ_LEVEL BIT(1)
612 /* Bit definitions for the GPIO_TOD_NOTIFICATION_CFG register */
613 #define DPLL_TOD_SHIFT (0)
614 #define DPLL_TOD_MASK (0x3)
615 #define TOD_READ_SECONDARY BIT(2)
616 #define GPIO_ASSERT_LEVEL BIT(3)
618 /* Bit definitions for the GPIO_CTRL register */
619 #define GPIO_FUNCTION_EN BIT(0)
620 #define GPIO_CMOS_OD_MODE BIT(1)
621 #define GPIO_CONTROL_DIR BIT(2)
622 #define GPIO_PU_PD_MODE BIT(3)
623 #define GPIO_FUNCTION_SHIFT (4)
624 #define GPIO_FUNCTION_MASK (0xf)
626 /* Bit definitions for the OUT_CTRL_1 register */
627 #define OUT_SYNC_DISABLE BIT(7)
628 #define SQUELCH_VALUE BIT(6)
629 #define SQUELCH_DISABLE BIT(5)
630 #define PAD_VDDO_SHIFT (2)
631 #define PAD_VDDO_MASK (0x7)
632 #define PAD_CMOSDRV_SHIFT (0)
633 #define PAD_CMOSDRV_MASK (0x3)
635 /* Bit definitions for the TOD_CFG register */
636 #define TOD_EVEN_PPS_MODE BIT(2)
637 #define TOD_OUT_SYNC_ENABLE BIT(1)
638 #define TOD_ENABLE BIT(0)
640 /* Bit definitions for the TOD_WRITE_SELECT_CFG_0 register */
641 #define WR_PWM_DECODER_INDEX_SHIFT (4)
642 #define WR_PWM_DECODER_INDEX_MASK (0xf)
643 #define WR_REF_INDEX_SHIFT (0)
644 #define WR_REF_INDEX_MASK (0xf)
646 /* Bit definitions for the TOD_WRITE_CMD register */
647 #define TOD_WRITE_SELECTION_SHIFT (0)
648 #define TOD_WRITE_SELECTION_MASK (0xf)
650 /* Bit definitions for the TOD_READ_PRIMARY_SEL_CFG_0 register */
651 #define RD_PWM_DECODER_INDEX_SHIFT (4)
652 #define RD_PWM_DECODER_INDEX_MASK (0xf)
653 #define RD_REF_INDEX_SHIFT (0)
654 #define RD_REF_INDEX_MASK (0xf)
656 /* Bit definitions for the TOD_READ_PRIMARY_CMD register */
657 #define TOD_READ_TRIGGER_MODE BIT(4)
658 #define TOD_READ_TRIGGER_SHIFT (0)
659 #define TOD_READ_TRIGGER_MASK (0xf)
661 #endif