Go to the documentation of this file.
23 #ifndef __LINUX_MFD_DAVINCI_VOICECODEC_H_
24 #define __LINUX_MFD_DAVINIC_VOICECODEC_H_
26 #include <linux/kernel.h>
35 #define DAVINCI_VC_PID 0x00
36 #define DAVINCI_VC_CTRL 0x04
37 #define DAVINCI_VC_INTEN 0x08
38 #define DAVINCI_VC_INTSTATUS 0x0c
39 #define DAVINCI_VC_INTCLR 0x10
40 #define DAVINCI_VC_EMUL_CTRL 0x14
41 #define DAVINCI_VC_RFIFO 0x20
42 #define DAVINCI_VC_WFIFO 0x24
43 #define DAVINCI_VC_FIFOSTAT 0x28
44 #define DAVINCI_VC_TST_CTRL 0x2C
45 #define DAVINCI_VC_REG05 0x94
46 #define DAVINCI_VC_REG09 0xA4
47 #define DAVINCI_VC_REG12 0xB0
50 #define DAVINCI_VC_CTRL_MASK 0x5500
51 #define DAVINCI_VC_CTRL_RSTADC BIT(0)
52 #define DAVINCI_VC_CTRL_RSTDAC BIT(1)
53 #define DAVINCI_VC_CTRL_RD_BITS_8 BIT(4)
54 #define DAVINCI_VC_CTRL_RD_UNSIGNED BIT(5)
55 #define DAVINCI_VC_CTRL_WD_BITS_8 BIT(6)
56 #define DAVINCI_VC_CTRL_WD_UNSIGNED BIT(7)
57 #define DAVINCI_VC_CTRL_RFIFOEN BIT(8)
58 #define DAVINCI_VC_CTRL_RFIFOCL BIT(9)
59 #define DAVINCI_VC_CTRL_RFIFOMD_WORD_1 BIT(10)
60 #define DAVINCI_VC_CTRL_WFIFOEN BIT(12)
61 #define DAVINCI_VC_CTRL_WFIFOCL BIT(13)
62 #define DAVINCI_VC_CTRL_WFIFOMD_WORD_1 BIT(14)
65 #define DAVINCI_VC_INT_MASK 0x3F
66 #define DAVINCI_VC_INT_RDRDY_MASK BIT(0)
67 #define DAVINCI_VC_INT_RERROVF_MASK BIT(1)
68 #define DAVINCI_VC_INT_RERRUDR_MASK BIT(2)
69 #define DAVINCI_VC_INT_WDREQ_MASK BIT(3)
70 #define DAVINCI_VC_INT_WERROVF_MASKBIT BIT(4)
71 #define DAVINCI_VC_INT_WERRUDR_MASK BIT(5)
74 #define DAVINCI_VC_REG05_PGA_GAIN 0x07
77 #define DAVINCI_VC_REG09_MUTE 0x40
78 #define DAVINCI_VC_REG09_DIG_ATTEN 0x3F
81 #define DAVINCI_VC_REG12_POWER_ALL_ON 0xFD
82 #define DAVINCI_VC_REG12_POWER_ALL_OFF 0x00
84 #define DAVINCI_VC_CELLS 2