Go to the documentation of this file.
20 #ifndef _BFIN_SPORT3_H_
21 #define _BFIN_SPORT3_H_
23 #include <linux/types.h>
25 #define SPORT_CTL_SPENPRI 0x00000001
26 #define SPORT_CTL_DTYPE 0x00000006
27 #define SPORT_CTL_RJUSTIFY_ZFILL 0x00000000
28 #define SPORT_CTL_RJUSTIFY_SFILL 0x00000002
29 #define SPORT_CTL_USE_U_LAW 0x00000004
30 #define SPORT_CTL_USE_A_LAW 0x00000006
31 #define SPORT_CTL_LSBF 0x00000008
32 #define SPORT_CTL_SLEN 0x000001F0
33 #define SPORT_CTL_PACK 0x00000200
34 #define SPORT_CTL_ICLK 0x00000400
35 #define SPORT_CTL_OPMODE 0x00000800
36 #define SPORT_CTL_CKRE 0x00001000
37 #define SPORT_CTL_FSR 0x00002000
38 #define SPORT_CTL_IFS 0x00004000
39 #define SPORT_CTL_DIFS 0x00008000
40 #define SPORT_CTL_LFS 0x00010000
41 #define SPORT_CTL_LAFS 0x00020000
42 #define SPORT_CTL_RJUST 0x00040000
43 #define SPORT_CTL_FSED 0x00080000
44 #define SPORT_CTL_TFIEN 0x00100000
45 #define SPORT_CTL_GCLKEN 0x00200000
46 #define SPORT_CTL_SPENSEC 0x01000000
47 #define SPORT_CTL_SPTRAN 0x02000000
48 #define SPORT_CTL_DERRSEC 0x04000000
49 #define SPORT_CTL_DXSSEC 0x18000000
50 #define SPORT_CTL_SEC_EMPTY 0x00000000
51 #define SPORT_CTL_SEC_PART_FULL 0x10000000
52 #define SPORT_CTL_SEC_FULL 0x18000000
53 #define SPORT_CTL_DERRPRI 0x20000000
54 #define SPORT_CTL_DXSPRI 0xC0000000
55 #define SPORT_CTL_PRM_EMPTY 0x00000000
56 #define SPORT_CTL_PRM_PART_FULL 0x80000000
57 #define SPORT_CTL_PRM_FULL 0xC0000000
59 #define SPORT_DIV_CLKDIV 0x0000FFFF
60 #define SPORT_DIV_FSDIV 0xFFFF0000
62 #define SPORT_MCTL_MCE 0x00000001
63 #define SPORT_MCTL_MCPDE 0x00000004
64 #define SPORT_MCTL_MFD 0x000000F0
65 #define SPORT_MCTL_WSIZE 0x00007F00
66 #define SPORT_MCTL_WOFFSET 0x03FF0000
68 #define SPORT_CNT_CLKCNT 0x0000FFFF
69 #define SPORT_CNT_FSDIVCNT 0xFFFF0000
71 #define SPORT_ERR_DERRPMSK 0x00000001
72 #define SPORT_ERR_DERRSMSK 0x00000002
73 #define SPORT_ERR_FSERRMSK 0x00000004
74 #define SPORT_ERR_DERRPSTAT 0x00000010
75 #define SPORT_ERR_DERRSSTAT 0x00000020
76 #define SPORT_ERR_FSERRSTAT 0x00000040
78 #define SPORT_MSTAT_CURCHAN 0x000003FF
80 #define SPORT_CTL2_FSMUXSEL 0x00000001
81 #define SPORT_CTL2_CKMUXSEL 0x00000002
82 #define SPORT_CTL2_LBSEL 0x00000004