diff options
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/ads1015.h | 36 | ||||
-rw-r--r-- | include/linux/i2c/atmel_mxt_ts.h (renamed from include/linux/i2c/qt602240_ts.h) | 34 | ||||
-rw-r--r-- | include/linux/i2c/max6639.h | 14 | ||||
-rw-r--r-- | include/linux/i2c/mcs.h | 1 | ||||
-rw-r--r-- | include/linux/i2c/pmbus.h | 45 | ||||
-rw-r--r-- | include/linux/i2c/twl.h | 4 |
6 files changed, 118 insertions, 16 deletions
diff --git a/include/linux/i2c/ads1015.h b/include/linux/i2c/ads1015.h new file mode 100644 index 000000000000..d5aa2a045669 --- /dev/null +++ b/include/linux/i2c/ads1015.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | * Platform Data for ADS1015 12-bit 4-input ADC | ||
3 | * (C) Copyright 2010 | ||
4 | * Dirk Eibach, Guntermann & Drunck GmbH <eibach@gdsys.de> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef LINUX_ADS1015_H | ||
22 | #define LINUX_ADS1015_H | ||
23 | |||
24 | #define ADS1015_CHANNELS 8 | ||
25 | |||
26 | struct ads1015_channel_data { | ||
27 | bool enabled; | ||
28 | unsigned int pga; | ||
29 | unsigned int data_rate; | ||
30 | }; | ||
31 | |||
32 | struct ads1015_platform_data { | ||
33 | struct ads1015_channel_data channel_data[ADS1015_CHANNELS]; | ||
34 | }; | ||
35 | |||
36 | #endif /* LINUX_ADS1015_H */ | ||
diff --git a/include/linux/i2c/qt602240_ts.h b/include/linux/i2c/atmel_mxt_ts.h index c5033e101094..f027f7a63511 100644 --- a/include/linux/i2c/qt602240_ts.h +++ b/include/linux/i2c/atmel_mxt_ts.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * AT42QT602240/ATMXT224 Touchscreen driver | 2 | * Atmel maXTouch Touchscreen driver |
3 | * | 3 | * |
4 | * Copyright (C) 2010 Samsung Electronics Co.Ltd | 4 | * Copyright (C) 2010 Samsung Electronics Co.Ltd |
5 | * Author: Joonyoung Shim <jy0922.shim@samsung.com> | 5 | * Author: Joonyoung Shim <jy0922.shim@samsung.com> |
@@ -10,21 +10,26 @@ | |||
10 | * option) any later version. | 10 | * option) any later version. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #ifndef __LINUX_QT602240_TS_H | 13 | #ifndef __LINUX_ATMEL_MXT_TS_H |
14 | #define __LINUX_QT602240_TS_H | 14 | #define __LINUX_ATMEL_MXT_TS_H |
15 | |||
16 | #include <linux/types.h> | ||
15 | 17 | ||
16 | /* Orient */ | 18 | /* Orient */ |
17 | #define QT602240_NORMAL 0x0 | 19 | #define MXT_NORMAL 0x0 |
18 | #define QT602240_DIAGONAL 0x1 | 20 | #define MXT_DIAGONAL 0x1 |
19 | #define QT602240_HORIZONTAL_FLIP 0x2 | 21 | #define MXT_HORIZONTAL_FLIP 0x2 |
20 | #define QT602240_ROTATED_90_COUNTER 0x3 | 22 | #define MXT_ROTATED_90_COUNTER 0x3 |
21 | #define QT602240_VERTICAL_FLIP 0x4 | 23 | #define MXT_VERTICAL_FLIP 0x4 |
22 | #define QT602240_ROTATED_90 0x5 | 24 | #define MXT_ROTATED_90 0x5 |
23 | #define QT602240_ROTATED_180 0x6 | 25 | #define MXT_ROTATED_180 0x6 |
24 | #define QT602240_DIAGONAL_COUNTER 0x7 | 26 | #define MXT_DIAGONAL_COUNTER 0x7 |
27 | |||
28 | /* The platform data for the Atmel maXTouch touchscreen driver */ | ||
29 | struct mxt_platform_data { | ||
30 | const u8 *config; | ||
31 | size_t config_length; | ||
25 | 32 | ||
26 | /* The platform data for the AT42QT602240/ATMXT224 touchscreen driver */ | ||
27 | struct qt602240_platform_data { | ||
28 | unsigned int x_line; | 33 | unsigned int x_line; |
29 | unsigned int y_line; | 34 | unsigned int y_line; |
30 | unsigned int x_size; | 35 | unsigned int x_size; |
@@ -33,6 +38,7 @@ struct qt602240_platform_data { | |||
33 | unsigned int threshold; | 38 | unsigned int threshold; |
34 | unsigned int voltage; | 39 | unsigned int voltage; |
35 | unsigned char orient; | 40 | unsigned char orient; |
41 | unsigned long irqflags; | ||
36 | }; | 42 | }; |
37 | 43 | ||
38 | #endif /* __LINUX_QT602240_TS_H */ | 44 | #endif /* __LINUX_ATMEL_MXT_TS_H */ |
diff --git a/include/linux/i2c/max6639.h b/include/linux/i2c/max6639.h new file mode 100644 index 000000000000..6011c42034da --- /dev/null +++ b/include/linux/i2c/max6639.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef _LINUX_MAX6639_H | ||
2 | #define _LINUX_MAX6639_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | |||
6 | /* platform data for the MAX6639 temperature sensor and fan control */ | ||
7 | |||
8 | struct max6639_platform_data { | ||
9 | bool pwm_polarity; /* Polarity low (0) or high (1, default) */ | ||
10 | int ppr; /* Pulses per rotation 1..4 (default == 2) */ | ||
11 | int rpm_range; /* 2000, 4000 (default), 8000 or 16000 */ | ||
12 | }; | ||
13 | |||
14 | #endif /* _LINUX_MAX6639_H */ | ||
diff --git a/include/linux/i2c/mcs.h b/include/linux/i2c/mcs.h index 725ae7c313ff..61bb18a4fd3c 100644 --- a/include/linux/i2c/mcs.h +++ b/include/linux/i2c/mcs.h | |||
@@ -18,6 +18,7 @@ | |||
18 | #define MCS_KEY_CODE(v) ((v) & 0xffff) | 18 | #define MCS_KEY_CODE(v) ((v) & 0xffff) |
19 | 19 | ||
20 | struct mcs_platform_data { | 20 | struct mcs_platform_data { |
21 | void (*poweron)(bool); | ||
21 | void (*cfg_pin)(void); | 22 | void (*cfg_pin)(void); |
22 | 23 | ||
23 | /* touchscreen */ | 24 | /* touchscreen */ |
diff --git a/include/linux/i2c/pmbus.h b/include/linux/i2c/pmbus.h new file mode 100644 index 000000000000..69280db02c41 --- /dev/null +++ b/include/linux/i2c/pmbus.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * Hardware monitoring driver for PMBus devices | ||
3 | * | ||
4 | * Copyright (c) 2010, 2011 Ericsson AB. | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License as published by | ||
8 | * the Free Software Foundation; either version 2 of the License, or | ||
9 | * (at your option) any later version. | ||
10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | * GNU General Public License for more details. | ||
15 | * | ||
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | ||
19 | */ | ||
20 | |||
21 | #ifndef _PMBUS_H_ | ||
22 | #define _PMBUS_H_ | ||
23 | |||
24 | /* flags */ | ||
25 | |||
26 | /* | ||
27 | * PMBUS_SKIP_STATUS_CHECK | ||
28 | * | ||
29 | * During register detection, skip checking the status register for | ||
30 | * communication or command errors. | ||
31 | * | ||
32 | * Some PMBus chips respond with valid data when trying to read an unsupported | ||
33 | * register. For such chips, checking the status register is mandatory when | ||
34 | * trying to determine if a chip register exists or not. | ||
35 | * Other PMBus chips don't support the STATUS_CML register, or report | ||
36 | * communication errors for no explicable reason. For such chips, checking | ||
37 | * the status register must be disabled. | ||
38 | */ | ||
39 | #define PMBUS_SKIP_STATUS_CHECK (1 << 0) | ||
40 | |||
41 | struct pmbus_platform_data { | ||
42 | u32 flags; /* Device specific flags */ | ||
43 | }; | ||
44 | |||
45 | #endif /* _PMBUS_H_ */ | ||
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 61b9609e55f2..58afd9d2c438 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h | |||
@@ -600,6 +600,8 @@ struct twl4030_usb_data { | |||
600 | int (*phy_power)(struct device *dev, int iD, int on); | 600 | int (*phy_power)(struct device *dev, int iD, int on); |
601 | /* enable/disable phy clocks */ | 601 | /* enable/disable phy clocks */ |
602 | int (*phy_set_clock)(struct device *dev, int on); | 602 | int (*phy_set_clock)(struct device *dev, int on); |
603 | /* suspend/resume of phy */ | ||
604 | int (*phy_suspend)(struct device *dev, int suspend); | ||
603 | }; | 605 | }; |
604 | 606 | ||
605 | struct twl4030_ins { | 607 | struct twl4030_ins { |
@@ -637,7 +639,6 @@ extern void twl4030_power_init(struct twl4030_power_data *triton2_scripts); | |||
637 | extern int twl4030_remove_script(u8 flags); | 639 | extern int twl4030_remove_script(u8 flags); |
638 | 640 | ||
639 | struct twl4030_codec_audio_data { | 641 | struct twl4030_codec_audio_data { |
640 | unsigned int audio_mclk; /* not used, will be removed */ | ||
641 | unsigned int digimic_delay; /* in ms */ | 642 | unsigned int digimic_delay; /* in ms */ |
642 | unsigned int ramp_delay_value; | 643 | unsigned int ramp_delay_value; |
643 | unsigned int offset_cncl_path; | 644 | unsigned int offset_cncl_path; |
@@ -648,7 +649,6 @@ struct twl4030_codec_audio_data { | |||
648 | }; | 649 | }; |
649 | 650 | ||
650 | struct twl4030_codec_vibra_data { | 651 | struct twl4030_codec_vibra_data { |
651 | unsigned int audio_mclk; | ||
652 | unsigned int coexist; | 652 | unsigned int coexist; |
653 | }; | 653 | }; |
654 | 654 | ||