aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2011-07-04 03:28:28 -0400
committerPeter Ujfalusi <peter.ujfalusi@ti.com>2011-07-07 07:23:46 -0400
commitcfb7a33bea259d2d72a64adcb3de28532170dc25 (patch)
treec7faae49b5bf6f5396207591ffde2dd1f3d724e8 /include
parent753621c2155bd49bff7d5d3844b3ddc203e44a06 (diff)
MFD: twl6040: Remove enum for PLL tracking
There is no need to have two different types for tracking the selected PLL. Use only the defines, when dealing with the PLLs. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/twl6040.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/include/linux/mfd/twl6040.h b/include/linux/mfd/twl6040.h
index df890a247c36..4c806f6d663e 100644
--- a/include/linux/mfd/twl6040.h
+++ b/include/linux/mfd/twl6040.h
@@ -165,9 +165,6 @@
165#define TWL6040_RESETSPLIT 0x04 165#define TWL6040_RESETSPLIT 0x04
166#define TWL6040_INTCLRMODE 0x08 166#define TWL6040_INTCLRMODE 0x08
167 167
168#define TWL6040_SYSCLK_SEL_LPPLL 1
169#define TWL6040_SYSCLK_SEL_HPPLL 2
170
171/* STATUS (0x2E) fields */ 168/* STATUS (0x2E) fields */
172 169
173#define TWL6040_PLUGCOMP 0x02 170#define TWL6040_PLUGCOMP 0x02
@@ -188,11 +185,9 @@
188#define TWL6040_IRQ_VIB 4 185#define TWL6040_IRQ_VIB 4
189#define TWL6040_IRQ_READY 5 186#define TWL6040_IRQ_READY 5
190 187
191enum twl6040_pll_id { 188/* PLL selection */
192 TWL6040_NOPLL_ID, 189#define TWL6040_SYSCLK_SEL_LPPLL 0
193 TWL6040_LPPLL_ID, 190#define TWL6040_SYSCLK_SEL_HPPLL 1
194 TWL6040_HPPLL_ID,
195};
196 191
197struct twl6040 { 192struct twl6040 {
198 struct device *dev; 193 struct device *dev;
@@ -206,7 +201,7 @@ struct twl6040 {
206 int power_count; 201 int power_count;
207 int rev; 202 int rev;
208 203
209 enum twl6040_pll_id pll; 204 int pll;
210 unsigned int sysclk; 205 unsigned int sysclk;
211 206
212 unsigned int irq; 207 unsigned int irq;
@@ -223,9 +218,9 @@ int twl6040_set_bits(struct twl6040 *twl6040, unsigned int reg,
223int twl6040_clear_bits(struct twl6040 *twl6040, unsigned int reg, 218int twl6040_clear_bits(struct twl6040 *twl6040, unsigned int reg,
224 u8 mask); 219 u8 mask);
225int twl6040_power(struct twl6040 *twl6040, int on); 220int twl6040_power(struct twl6040 *twl6040, int on);
226int twl6040_set_pll(struct twl6040 *twl6040, enum twl6040_pll_id id, 221int twl6040_set_pll(struct twl6040 *twl6040, int pll_id,
227 unsigned int freq_in, unsigned int freq_out); 222 unsigned int freq_in, unsigned int freq_out);
228enum twl6040_pll_id twl6040_get_pll(struct twl6040 *twl6040); 223int twl6040_get_pll(struct twl6040 *twl6040);
229unsigned int twl6040_get_sysclk(struct twl6040 *twl6040); 224unsigned int twl6040_get_sysclk(struct twl6040 *twl6040);
230int twl6040_irq_init(struct twl6040 *twl6040); 225int twl6040_irq_init(struct twl6040 *twl6040);
231void twl6040_irq_exit(struct twl6040 *twl6040); 226void twl6040_irq_exit(struct twl6040 *twl6040);