aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mfd/pcf50633/core.h7
-rw-r--r--include/linux/mfd/pcf50633/mbc.h13
-rw-r--r--include/linux/ts_filter.h2
3 files changed, 20 insertions, 2 deletions
diff --git a/include/linux/mfd/pcf50633/core.h b/include/linux/mfd/pcf50633/core.h
index bf107d3794e..4ee3f527172 100644
--- a/include/linux/mfd/pcf50633/core.h
+++ b/include/linux/mfd/pcf50633/core.h
@@ -34,6 +34,8 @@ struct pcf50633_platform_data {
char **batteries;
int num_batteries;
+ int good_main_battery_adc_threshold;
+
/* Callbacks */
void (*probe_done)(struct pcf50633 *);
void (*mbc_event_callback)(struct pcf50633 *, int);
@@ -78,6 +80,7 @@ int pcf50633_reg_clear_bits(struct pcf50633 *pcf, u8 reg, u8 bits);
#define PCF50633_REG_INT3M 0x09
#define PCF50633_REG_INT4M 0x0a
#define PCF50633_REG_INT5M 0x0b
+#define PCF50633_REG_OOSHDWN 0x0c
enum {
/* Chip IRQs */
@@ -122,8 +125,10 @@ enum {
PCF50633_IRQ_HCLDOPWRFAIL,
PCF50633_IRQ_HCLDOOVL,
- /* Always last */
+ /* Always last of real IRQs */
PCF50633_NUM_IRQ,
+ /* fake IRQ */
+ PCF50633_ABOUT_TO_INCREASE_POWER
};
struct pcf50633 {
diff --git a/include/linux/mfd/pcf50633/mbc.h b/include/linux/mfd/pcf50633/mbc.h
index 9a7938ad132..a1cd44957ac 100644
--- a/include/linux/mfd/pcf50633/mbc.h
+++ b/include/linux/mfd/pcf50633/mbc.h
@@ -15,6 +15,7 @@
#include <linux/platform_device.h>
+#define PCF50633_REG_BVMCTL 0x19
#define PCF50633_REG_MBCC1 0x43
#define PCF50633_REG_MBCC2 0x44
#define PCF50633_REG_MBCC3 0x45
@@ -122,6 +123,18 @@ struct pcf50633;
void pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma);
+enum pcf50633_power_avail {
+ PCF50633_PA_DEAD_BATTERY_ONLY,
+ PCF50633_PA_LIVE_BATTERY_ONLY,
+ PCF50633_PA_ADAPTER,
+ PCF50633_PA_USB_100mA_AND_LIVE_BATTERY,
+ PCF50633_PA_USB_100mA_AND_DEAD_BATTERY,
+ PCF50633_PA_USB_500mA,
+ PCF50633_PA_USB_1A
+};
+
+enum pcf50633_power_avail pcf50633_check_power_available(struct pcf50633 *pcf);
+
struct pcf50633_mbc {
int adapter_active;
int adapter_online;
diff --git a/include/linux/ts_filter.h b/include/linux/ts_filter.h
index bfb8a221964..715f1badbf4 100644
--- a/include/linux/ts_filter.h
+++ b/include/linux/ts_filter.h
@@ -8,7 +8,7 @@
*/
#define MAX_TS_FILTER_CHAIN 4 /* max filters you can chain up */
-#define MAX_TS_FILTER_COORDS 3 /* Y, Y and Z (pressure) */
+#define MAX_TS_FILTER_COORDS 3 /* X, Y and Z (pressure) */
struct ts_filter;