trxcon/l1sched: clarify TDMA Fn (mod 26) maps
[osmocom-bb.git] / src / target / firmware / include / mtk / tdma_timer.h
blobdec0a8a4cdfe9c953e15adee80f3307434cb9b6f
1 #ifndef _MTK_TDMA_H
2 #define _MTK_TDMA_H
4 /* MTK TDMA Timer */
6 /* MT6235 Section 11 */
8 enum mtk_tdma_reg {
9 /* Read current quarter bit count */
10 TDMA_TQCNT = 0x0000,
11 /* Latched Qbit counter reset position */
12 TDMA_WRAP = 0x0004,
13 /* Direct Qbit counter reset position */
14 TDMA_WRAPIMD = 0x0008,
15 /* Event latch position */
16 TDMA_EVTVAL = 0x000c,
17 /* DSP software control */
18 TDMA_DTIRQ = 0x0010,
19 /* MCU software control */
20 TDMA_CTIRQ1 = 0x0014,
21 TDMA_CTIRQ2 = 0x0018,
22 /* AFC control */
23 TDMA_AFC0 = 0x0020,
24 TDMA_AFC1 = 0x0024,
25 TDMA_AFC2 = 0x0028,
26 TDMA_AFC3 = 0x002c,
28 /* BSI event */
29 TDMA_BSI0 = 0x00b0,
30 /* BPI event */
31 TDMA_BPI0 = 0x0100,
32 /* Auxiliary ADC event */
33 TDMA_AUXEV0 = 0x0400,
34 TDMA_AUXEV1 = 0x0404,
35 /* Event Control */
36 TDMA_EVTENA0 = 0x0150,
37 TDMA_EVTENA1 = 0x0154,
38 TDMA_EVTENA2 = 0x0158,
39 TDMA_EVTENA3 = 0x015c,
40 TDMA_EVTENA4 = 0x0160,
41 TDMA_EVTENA5 = 0x0164,
42 TDMA_EVTENA6 = 0x0168,
43 TDMA_EVTENA6 = 0x016c,
44 TDMA_WRAPOFS = 0x0170,
45 TDMA_REGBIAS = 0x0174,
46 TDMA_DTXCON = 0x0180,
47 TDMA_RXCON = 0x0184,
48 TDMA_BDLCON = 0x0188,
49 TDMA_BULCON1 = 0x018c,
50 TDMA_BULCON2 = 0x0190,
51 TDMA_FB_FLAG = 0x0194,
52 TDMA_FB_CLRI = 0x0198,
55 #define TDMA_BSI(n) (TDMA_BSI0 + (n)*4)
56 #define TDMA_BPI(n) (TDMA_BPI0 + (n)*4)
60 #endif /* _MTK_TDMA_H */