diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 20:42:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-26 20:42:18 -0400 |
commit | b0189cd087aa82bd23277cb5c8960ab030e13e5c (patch) | |
tree | 7b1a4c152cd62ce136fd5b0e4379d58eb2244e66 /sound/soc/codecs/twl6040.h | |
parent | 69f1d1a6acbaa7d83ef3f4ee26209c58cd000204 (diff) | |
parent | bc574e190d3fbed37d724e33a16aee326d6f2ac4 (diff) |
Merge branch 'next/devel2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc
* 'next/devel2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc: (47 commits)
OMAP: Add debugfs node to show the summary of all clocks
OMAP2+: hwmod: Follow the recommended PRCM module enable sequence
OMAP2+: clock: allow per-SoC clock init code to prevent clockdomain calls from clock code
OMAP2+: clockdomain: Add per clkdm lock to prevent concurrent state programming
OMAP2+: PM: idle clkdms only if already in idle
OMAP2+: clockdomain: add clkdm_in_hwsup()
OMAP2+: clockdomain: Add 2 APIs to control clockdomain from hwmod framework
OMAP: clockdomain: Remove redundant call to pwrdm_wait_transition()
OMAP4: hwmod: Introduce the module control in hwmod control
OMAP4: cm: Add two new APIs for modulemode control
OMAP4: hwmod data: Add modulemode entry in omap_hwmod structure
OMAP4: hwmod data: Add PRM context register offset
OMAP4: prm: Remove deprecated functions
OMAP4: prm: Replace warm reset API with the offset based version
OMAP4: hwmod: Replace RSTCTRL absolute address with offset macros
OMAP: hwmod: Wait the idle status to be disabled
OMAP4: hwmod: Replace CLKCTRL absolute address with offset macros
OMAP2+: hwmod: Init clkdm field at boot time
OMAP4: hwmod data: Add clock domain attribute
OMAP4: clock data: Add missing divider selection for auxclks
...
Diffstat (limited to 'sound/soc/codecs/twl6040.h')
-rw-r--r-- | sound/soc/codecs/twl6040.h | 119 |
1 files changed, 1 insertions, 118 deletions
diff --git a/sound/soc/codecs/twl6040.h b/sound/soc/codecs/twl6040.h index 23aeed0963e6..d8de67869dd9 100644 --- a/sound/soc/codecs/twl6040.h +++ b/sound/soc/codecs/twl6040.h | |||
@@ -22,125 +22,8 @@ | |||
22 | #ifndef __TWL6040_H__ | 22 | #ifndef __TWL6040_H__ |
23 | #define __TWL6040_H__ | 23 | #define __TWL6040_H__ |
24 | 24 | ||
25 | #define TWL6040_REG_ASICID 0x01 | ||
26 | #define TWL6040_REG_ASICREV 0x02 | ||
27 | #define TWL6040_REG_INTID 0x03 | ||
28 | #define TWL6040_REG_INTMR 0x04 | ||
29 | #define TWL6040_REG_NCPCTL 0x05 | ||
30 | #define TWL6040_REG_LDOCTL 0x06 | ||
31 | #define TWL6040_REG_HPPLLCTL 0x07 | ||
32 | #define TWL6040_REG_LPPLLCTL 0x08 | ||
33 | #define TWL6040_REG_LPPLLDIV 0x09 | ||
34 | #define TWL6040_REG_AMICBCTL 0x0A | ||
35 | #define TWL6040_REG_DMICBCTL 0x0B | ||
36 | #define TWL6040_REG_MICLCTL 0x0C | ||
37 | #define TWL6040_REG_MICRCTL 0x0D | ||
38 | #define TWL6040_REG_MICGAIN 0x0E | ||
39 | #define TWL6040_REG_LINEGAIN 0x0F | ||
40 | #define TWL6040_REG_HSLCTL 0x10 | ||
41 | #define TWL6040_REG_HSRCTL 0x11 | ||
42 | #define TWL6040_REG_HSGAIN 0x12 | ||
43 | #define TWL6040_REG_EARCTL 0x13 | ||
44 | #define TWL6040_REG_HFLCTL 0x14 | ||
45 | #define TWL6040_REG_HFLGAIN 0x15 | ||
46 | #define TWL6040_REG_HFRCTL 0x16 | ||
47 | #define TWL6040_REG_HFRGAIN 0x17 | ||
48 | #define TWL6040_REG_VIBCTLL 0x18 | ||
49 | #define TWL6040_REG_VIBDATL 0x19 | ||
50 | #define TWL6040_REG_VIBCTLR 0x1A | ||
51 | #define TWL6040_REG_VIBDATR 0x1B | ||
52 | #define TWL6040_REG_HKCTL1 0x1C | ||
53 | #define TWL6040_REG_HKCTL2 0x1D | ||
54 | #define TWL6040_REG_GPOCTL 0x1E | ||
55 | #define TWL6040_REG_ALB 0x1F | ||
56 | #define TWL6040_REG_DLB 0x20 | ||
57 | #define TWL6040_REG_TRIM1 0x28 | ||
58 | #define TWL6040_REG_TRIM2 0x29 | ||
59 | #define TWL6040_REG_TRIM3 0x2A | ||
60 | #define TWL6040_REG_HSOTRIM 0x2B | ||
61 | #define TWL6040_REG_HFOTRIM 0x2C | ||
62 | #define TWL6040_REG_ACCCTL 0x2D | ||
63 | #define TWL6040_REG_STATUS 0x2E | ||
64 | |||
65 | #define TWL6040_CACHEREGNUM (TWL6040_REG_STATUS + 1) | ||
66 | |||
67 | #define TWL6040_VIOREGNUM 18 | ||
68 | #define TWL6040_VDDREGNUM 21 | ||
69 | |||
70 | /* INTID (0x03) fields */ | ||
71 | |||
72 | #define TWL6040_THINT 0x01 | ||
73 | #define TWL6040_PLUGINT 0x02 | ||
74 | #define TWL6040_UNPLUGINT 0x04 | ||
75 | #define TWL6040_HOOKINT 0x08 | ||
76 | #define TWL6040_HFINT 0x10 | ||
77 | #define TWL6040_VIBINT 0x20 | ||
78 | #define TWL6040_READYINT 0x40 | ||
79 | |||
80 | /* INTMR (0x04) fields */ | ||
81 | |||
82 | #define TWL6040_PLUGMSK 0x02 | ||
83 | #define TWL6040_READYMSK 0x40 | ||
84 | #define TWL6040_ALLINT_MSK 0x7B | ||
85 | |||
86 | /* NCPCTL (0x05) fields */ | ||
87 | |||
88 | #define TWL6040_NCPENA 0x01 | ||
89 | #define TWL6040_NCPOPEN 0x40 | ||
90 | |||
91 | /* LDOCTL (0x06) fields */ | ||
92 | |||
93 | #define TWL6040_LSLDOENA 0x01 | ||
94 | #define TWL6040_HSLDOENA 0x04 | ||
95 | #define TWL6040_REFENA 0x40 | ||
96 | #define TWL6040_OSCENA 0x80 | ||
97 | |||
98 | /* HPPLLCTL (0x07) fields */ | ||
99 | |||
100 | #define TWL6040_HPLLENA 0x01 | ||
101 | #define TWL6040_HPLLRST 0x02 | ||
102 | #define TWL6040_HPLLBP 0x04 | ||
103 | #define TWL6040_HPLLSQRENA 0x08 | ||
104 | #define TWL6040_HPLLSQRBP 0x10 | ||
105 | #define TWL6040_MCLK_12000KHZ (0 << 5) | ||
106 | #define TWL6040_MCLK_19200KHZ (1 << 5) | ||
107 | #define TWL6040_MCLK_26000KHZ (2 << 5) | ||
108 | #define TWL6040_MCLK_38400KHZ (3 << 5) | ||
109 | #define TWL6040_MCLK_MSK 0x60 | ||
110 | |||
111 | /* LPPLLCTL (0x08) fields */ | ||
112 | |||
113 | #define TWL6040_LPLLENA 0x01 | ||
114 | #define TWL6040_LPLLRST 0x02 | ||
115 | #define TWL6040_LPLLSEL 0x04 | ||
116 | #define TWL6040_LPLLFIN 0x08 | ||
117 | #define TWL6040_HPLLSEL 0x10 | ||
118 | |||
119 | /* HSLCTL (0x10) fields */ | ||
120 | |||
121 | #define TWL6040_HSDACMODEL 0x02 | ||
122 | #define TWL6040_HSDRVMODEL 0x08 | ||
123 | |||
124 | /* HSRCTL (0x11) fields */ | ||
125 | |||
126 | #define TWL6040_HSDACMODER 0x02 | ||
127 | #define TWL6040_HSDRVMODER 0x08 | ||
128 | |||
129 | /* ACCCTL (0x2D) fields */ | ||
130 | |||
131 | #define TWL6040_RESETSPLIT 0x04 | ||
132 | |||
133 | #define TWL6040_SYSCLK_SEL_LPPLL 1 | ||
134 | #define TWL6040_SYSCLK_SEL_HPPLL 2 | ||
135 | |||
136 | #define TWL6040_HPPLL_ID 1 | ||
137 | #define TWL6040_LPPLL_ID 2 | ||
138 | |||
139 | /* STATUS (0x2E) fields */ | ||
140 | |||
141 | #define TWL6040_PLUGCOMP 0x02 | ||
142 | |||
143 | void twl6040_hs_jack_detect(struct snd_soc_codec *codec, | 25 | void twl6040_hs_jack_detect(struct snd_soc_codec *codec, |
144 | struct snd_soc_jack *jack, int report); | 26 | struct snd_soc_jack *jack, int report); |
27 | int twl6040_get_clk_id(struct snd_soc_codec *codec); | ||
145 | 28 | ||
146 | #endif /* End of __TWL6040_H__ */ | 29 | #endif /* End of __TWL6040_H__ */ |