diff options
-rw-r--r-- | drivers/mfd/wm831x-core.c | 64 | ||||
-rw-r--r-- | include/linux/mfd/wm831x/regulator.h | 21 |
2 files changed, 85 insertions, 0 deletions
diff --git a/drivers/mfd/wm831x-core.c b/drivers/mfd/wm831x-core.c index 33eaea2f988e..49b7885c2702 100644 --- a/drivers/mfd/wm831x-core.c +++ b/drivers/mfd/wm831x-core.c | |||
@@ -24,6 +24,70 @@ | |||
24 | #include <linux/mfd/wm831x/irq.h> | 24 | #include <linux/mfd/wm831x/irq.h> |
25 | #include <linux/mfd/wm831x/auxadc.h> | 25 | #include <linux/mfd/wm831x/auxadc.h> |
26 | #include <linux/mfd/wm831x/otp.h> | 26 | #include <linux/mfd/wm831x/otp.h> |
27 | #include <linux/mfd/wm831x/regulator.h> | ||
28 | |||
29 | /* Current settings - values are 2*2^(reg_val/4) microamps. These are | ||
30 | * exported since they are used by multiple drivers. | ||
31 | */ | ||
32 | int wm831x_isinkv_values[WM831X_ISINK_MAX_ISEL] = { | ||
33 | 2, | ||
34 | 2, | ||
35 | 3, | ||
36 | 3, | ||
37 | 4, | ||
38 | 5, | ||
39 | 6, | ||
40 | 7, | ||
41 | 8, | ||
42 | 10, | ||
43 | 11, | ||
44 | 13, | ||
45 | 16, | ||
46 | 19, | ||
47 | 23, | ||
48 | 27, | ||
49 | 32, | ||
50 | 38, | ||
51 | 45, | ||
52 | 54, | ||
53 | 64, | ||
54 | 76, | ||
55 | 91, | ||
56 | 108, | ||
57 | 128, | ||
58 | 152, | ||
59 | 181, | ||
60 | 215, | ||
61 | 256, | ||
62 | 304, | ||
63 | 362, | ||
64 | 431, | ||
65 | 512, | ||
66 | 609, | ||
67 | 724, | ||
68 | 861, | ||
69 | 1024, | ||
70 | 1218, | ||
71 | 1448, | ||
72 | 1722, | ||
73 | 2048, | ||
74 | 2435, | ||
75 | 2896, | ||
76 | 3444, | ||
77 | 4096, | ||
78 | 4871, | ||
79 | 5793, | ||
80 | 6889, | ||
81 | 8192, | ||
82 | 9742, | ||
83 | 11585, | ||
84 | 13777, | ||
85 | 16384, | ||
86 | 19484, | ||
87 | 23170, | ||
88 | 27554, | ||
89 | }; | ||
90 | EXPORT_SYMBOL_GPL(wm831x_isinkv_values); | ||
27 | 91 | ||
28 | enum wm831x_parent { | 92 | enum wm831x_parent { |
29 | WM8310 = 0, | 93 | WM8310 = 0, |
diff --git a/include/linux/mfd/wm831x/regulator.h b/include/linux/mfd/wm831x/regulator.h new file mode 100644 index 000000000000..b5d58fb38b4e --- /dev/null +++ b/include/linux/mfd/wm831x/regulator.h | |||
@@ -0,0 +1,21 @@ | |||
1 | /* | ||
2 | * linux/mfd/wm831x/regulator.h -- Regulator definitons for wm831x | ||
3 | * | ||
4 | * Copyright 2009 Wolfson Microelectronics PLC. | ||
5 | * | ||
6 | * Author: Mark Brown <broonie@opensource.wolfsonmicro.com> | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of the GNU General Public License as published by the | ||
10 | * Free Software Foundation; either version 2 of the License, or (at your | ||
11 | * option) any later version. | ||
12 | * | ||
13 | */ | ||
14 | |||
15 | #ifndef __MFD_WM831X_REGULATOR_H__ | ||
16 | #define __MFD_WM831X_REGULATOR_H__ | ||
17 | |||
18 | #define WM831X_ISINK_MAX_ISEL 56 | ||
19 | extern int wm831x_isinkv_values[WM831X_ISINK_MAX_ISEL]; | ||
20 | |||
21 | #endif | ||