This source file includes following definitions.
- TH_OUTPUT_PARM
- TH_OUTPUT_PARM
- TH_OUTPUT_PARM
- TH_OUTPUT_PARM
- TH_OUTPUT_PARM
- TH_OUTPUT_PARM
1
2
3
4
5
6
7
8 #ifndef __INTEL_TH_GTH_H__
9 #define __INTEL_TH_GTH_H__
10
11
12 #define TH_OUTPUT_PARM(name) \
13 TH_OUTPUT_ ## name
14
15 enum intel_th_output_parm {
16
17 TH_OUTPUT_PARM(port),
18
19 TH_OUTPUT_PARM(null),
20
21 TH_OUTPUT_PARM(drop),
22
23 TH_OUTPUT_PARM(reset),
24
25 TH_OUTPUT_PARM(flush),
26
27 TH_OUTPUT_PARM(smcfreq),
28 };
29
30
31
32
33 enum {
34 REG_GTH_GTHOPT0 = 0x00,
35 REG_GTH_GTHOPT1 = 0x04,
36 REG_GTH_SWDEST0 = 0x08,
37 REG_GTH_GSWTDEST = 0x88,
38 REG_GTH_SMCR0 = 0x9c,
39 REG_GTH_SMCR1 = 0xa0,
40 REG_GTH_SMCR2 = 0xa4,
41 REG_GTH_SMCR3 = 0xa8,
42 REG_GTH_SCR = 0xc8,
43 REG_GTH_STAT = 0xd4,
44 REG_GTH_SCR2 = 0xd8,
45 REG_GTH_DESTOVR = 0xdc,
46 REG_GTH_SCRPD0 = 0xe0,
47 REG_GTH_SCRPD1 = 0xe4,
48 REG_GTH_SCRPD2 = 0xe8,
49 REG_GTH_SCRPD3 = 0xec,
50 REG_TSCU_TSUCTRL = 0x2000,
51 REG_TSCU_TSCUSTAT = 0x2004,
52
53
54 REG_CTS_C0S0_EN = 0x30c0,
55 REG_CTS_C0S0_ACT = 0x3180,
56 REG_CTS_STAT = 0x32a0,
57 REG_CTS_CTL = 0x32a4,
58 };
59
60
61 #define GTH_PLE_WAITLOOP_DEPTH 10000
62
63 #define TSUCTRL_CTCRESYNC BIT(0)
64 #define TSCUSTAT_CTCSYNCING BIT(1)
65
66
67 #define CTS_TRIG_WAITLOOP_DEPTH 10000
68
69 #define CTS_EVENT_ENABLE_IF_ANYTHING BIT(31)
70 #define CTS_ACTION_CONTROL_STATE_OFF 27
71 #define CTS_ACTION_CONTROL_SET_STATE(x) \
72 (((x) & 0x1f) << CTS_ACTION_CONTROL_STATE_OFF)
73 #define CTS_ACTION_CONTROL_TRIGGER BIT(4)
74
75 #define CTS_STATE_IDLE 0x10u
76
77 #define CTS_CTL_SEQUENCER_ENABLE BIT(0)
78
79 #endif