diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-29 14:53:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-05-29 14:53:11 -0400 |
commit | 4b781474682434e7881f20e9dfbe6687ea619795 (patch) | |
tree | bdd976645ead7f04900e60017502e6a41b03e601 /include/linux/mfd/da9052 | |
parent | 53f2c4a8fd882009a2a75c5b72d6898c0808616e (diff) | |
parent | 29f772d41c01ad6b72c3de705e79779857badcde (diff) |
Merge tag 'mfd-3.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
Pull MFD changes from Samuel Ortiz:
"Besides the usual cleanups, this one brings:
* Support for 5 new chipsets: Intel's ICH LPC and SCH Centerton,
ST-E's STAX211, Samsung's MAX77693 and TI's LM3533.
* Device tree support for the twl6040, tps65910, da9502 and ab8500
drivers.
* Fairly big tps56910, ab8500 and db8500 updates.
* i2c support for mc13xxx.
* Our regular update for the wm8xxx driver from Mark."
Fix up various conflicts with other trees, largely due to ab5500 removal
etc.
* tag 'mfd-3.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (106 commits)
mfd: Fix build break of max77693 by adding REGMAP_I2C option
mfd: Fix twl6040 build failure
mfd: Fix max77693 build failure
mfd: ab8500-core should depend on MFD_DB8500_PRCMU
gpio: tps65910: dt: process gpio specific device node info
mfd: Remove the parsing of dt info for tps65910 gpio
mfd: Save device node parsed platform data for tps65910 sub devices
mfd: Add r_select to lm3533 platform data
gpio: Add Intel Centerton support to gpio-sch
mfd: Emulate active low IRQs as well as active high IRQs for wm831x
mfd: Mark two lm3533 zone registers as volatile
mfd: Fix return type of lm533 attribute is_visible
mfd: Enable Device Tree support in the ab8500-pwm driver
mfd: Enable Device Tree support in the ab8500-sysctrl driver
mfd: Add support for Device Tree to twl6040
mfd: Register the twl6040 child for the ASoC codec unconditionally
mfd: Allocate twl6040 IRQ numbers dynamically
mfd: twl6040 code cleanup in interrupt initialization part
mfd: Enable ab8500-gpadc driver for Device Tree
mfd: Prevent unassigned pointer from being used in ab8500-gpadc driver
...
Diffstat (limited to 'include/linux/mfd/da9052')
-rw-r--r-- | include/linux/mfd/da9052/da9052.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/mfd/da9052/da9052.h b/include/linux/mfd/da9052/da9052.h index 8313cd9658e3..0507c4c21a7d 100644 --- a/include/linux/mfd/da9052/da9052.h +++ b/include/linux/mfd/da9052/da9052.h | |||
@@ -33,6 +33,18 @@ | |||
33 | 33 | ||
34 | #include <linux/mfd/da9052/reg.h> | 34 | #include <linux/mfd/da9052/reg.h> |
35 | 35 | ||
36 | /* Common - HWMON Channel Definations */ | ||
37 | #define DA9052_ADC_VDDOUT 0 | ||
38 | #define DA9052_ADC_ICH 1 | ||
39 | #define DA9052_ADC_TBAT 2 | ||
40 | #define DA9052_ADC_VBAT 3 | ||
41 | #define DA9052_ADC_IN4 4 | ||
42 | #define DA9052_ADC_IN5 5 | ||
43 | #define DA9052_ADC_IN6 6 | ||
44 | #define DA9052_ADC_TSI 7 | ||
45 | #define DA9052_ADC_TJUNC 8 | ||
46 | #define DA9052_ADC_VBBAT 9 | ||
47 | |||
36 | #define DA9052_IRQ_DCIN 0 | 48 | #define DA9052_IRQ_DCIN 0 |
37 | #define DA9052_IRQ_VBUS 1 | 49 | #define DA9052_IRQ_VBUS 1 |
38 | #define DA9052_IRQ_DCINREM 2 | 50 | #define DA9052_IRQ_DCINREM 2 |
@@ -79,6 +91,9 @@ struct da9052 { | |||
79 | struct device *dev; | 91 | struct device *dev; |
80 | struct regmap *regmap; | 92 | struct regmap *regmap; |
81 | 93 | ||
94 | struct mutex auxadc_lock; | ||
95 | struct completion done; | ||
96 | |||
82 | int irq_base; | 97 | int irq_base; |
83 | struct regmap_irq_chip_data *irq_data; | 98 | struct regmap_irq_chip_data *irq_data; |
84 | u8 chip_id; | 99 | u8 chip_id; |
@@ -86,6 +101,10 @@ struct da9052 { | |||
86 | int chip_irq; | 101 | int chip_irq; |
87 | }; | 102 | }; |
88 | 103 | ||
104 | /* ADC API */ | ||
105 | int da9052_adc_manual_read(struct da9052 *da9052, unsigned char channel); | ||
106 | int da9052_adc_read_temp(struct da9052 *da9052); | ||
107 | |||
89 | /* Device I/O API */ | 108 | /* Device I/O API */ |
90 | static inline int da9052_reg_read(struct da9052 *da9052, unsigned char reg) | 109 | static inline int da9052_reg_read(struct da9052 *da9052, unsigned char reg) |
91 | { | 110 | { |