Go to the documentation of this file.
15 #define SSP_SPEED _IOR('S', 0, unsigned int)
16 #define SSP_MODE _IOR('S', 1, unsigned int)
17 #define SSP_FRAME_SYNC _IOR('S', 2, unsigned int)
18 #define SSP_IPOLARITY _IOR('S', 3, unsigned int)
19 #define SSP_OPOLARITY _IOR('S', 4, unsigned int)
20 #define SSP_SPI _IOR('S', 5, unsigned int)
21 #define SSP_INBUFCHUNK _IOR('S', 6, unsigned int)
22 #define SSP_INPUT _IOR('S', 7, unsigned int)
41 #define CODEC_f32768 16
53 #define FREQ_4096kHz 16
56 #define CODEC_VAL(freq, clk_per_sync, sync_per_frame) \
57 ((CODEC + ((freq & 0x10) >> 4)) | (freq << 8) | \
58 (clk_per_sync << 16) | (sync_per_frame << 28))
61 #define GET_SPEED(x) (x & 0xff)
62 #define GET_FREQ(x) ((x & 0xff00) >> 8)
63 #define GET_WORD_RATE(x) (((x & 0x0fff0000) >> 16) - 1)
64 #define GET_FRAME_RATE(x) (((x & 0xf0000000) >> 28) - 1)
67 #define MASTER_OUTPUT 0
68 #define SLAVE_OUTPUT 1
69 #define MASTER_INPUT 2
71 #define MASTER_BIDIR 4
77 #define SECOND_WORD_SYNC 0x40000
78 #define LATE_SYNC 0x80000
82 #define EXTENDED_SYNC 0x10
86 #define WORD_SIZE_8 0x80
87 #define WORD_SIZE_12 0x100
88 #define WORD_SIZE_16 0x200
89 #define WORD_SIZE_24 0x400
90 #define WORD_SIZE_32 0x800
91 #define BIT_ORDER_LSB 0x1000
92 #define BIT_ORDER_MSB 0x2000
93 #define FLOW_CONTROL_ENABLE 0x4000
94 #define FLOW_CONTROL_DISABLE 0x8000
95 #define CLOCK_GATED 0x10000
96 #define CLOCK_NOT_GATED 0x20000
99 #define CLOCK_NORMAL 1
100 #define CLOCK_INVERT 2
101 #define CLOCK_INEGEDGE CLOCK_NORMAL
102 #define CLOCK_IPOSEDGE CLOCK_INVERT
103 #define FRAME_NORMAL 4
104 #define FRAME_INVERT 8
105 #define STATUS_NORMAL 0x10
106 #define STATUS_INVERT 0x20
120 #define SSP_INPUT_CHUNK_SIZE 256