diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-04 15:02:11 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-04 15:02:11 -0400 |
| commit | 51e771c0d25b43d0f12b2c7c01939942becbbe28 (patch) | |
| tree | df82af16b012c452c1457f431e57d47c8c2bacd2 /include/linux/platform_data | |
| parent | abebcdfb64f1b39eeeb14282d9cd4aad1ed86f8d (diff) | |
| parent | 01b944fe1cd4e21a2a9ed51adbdbafe2d5e905ba (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input subsystem updates from Dmitry Torokhov:
"Drivers, drivers, drivers... No interesting input core changes this
time"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (74 commits)
Input: elan_i2c - use iap_version to get firmware information
Input: max8997_haptic - fix module alias
Input: elan_i2c - fix typos for validpage_count
Input: psmouse - add small delay for IBM trackpoint pass-through mode
Input: synaptics - fix handling of disabling gesture mode
Input: elan_i2c - enable ELAN0100 acpi panels
Input: gpio-keys - report error when disabling unsupported key
Input: sur40 - fix error return code
Input: sentelic - silence some underflow warnings
Input: zhenhua - switch to using bitrev8()
Input: cros_ec_keyb - replace KEYBOARD_CROS_EC dependency
Input: cap11xx - add LED support
Input: elants_i2c - fix for devm_gpiod_get API change
Input: elan_i2c - enable asynchronous probing
Input: elants_i2c - enable asynchronous probing
Input: elants_i2c - wire up regulator support
Input: do not emit unneeded EV_SYN when suspending
Input: elants_i2c - disable idle mode before updating firmware
MAINTAINERS: Add maintainer for atmel_mxt_ts
Input: atmel_mxt_ts - remove warning on zero T44 count
...
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/atmel_mxt_ts.h | 31 | ||||
| -rw-r--r-- | include/linux/platform_data/pixcir_i2c_ts.h | 63 | ||||
| -rw-r--r-- | include/linux/platform_data/zforce_ts.h | 3 |
3 files changed, 94 insertions, 3 deletions
diff --git a/include/linux/platform_data/atmel_mxt_ts.h b/include/linux/platform_data/atmel_mxt_ts.h new file mode 100644 index 000000000000..695035a8d7fb --- /dev/null +++ b/include/linux/platform_data/atmel_mxt_ts.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | * Atmel maXTouch Touchscreen driver | ||
| 3 | * | ||
| 4 | * Copyright (C) 2010 Samsung Electronics Co.Ltd | ||
| 5 | * Author: Joonyoung Shim <jy0922.shim@samsung.com> | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify it | ||
| 8 | * under the terms of the GNU General Public License as published by the | ||
| 9 | * Free Software Foundation; either version 2 of the License, or (at your | ||
| 10 | * option) any later version. | ||
| 11 | */ | ||
| 12 | |||
| 13 | #ifndef __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H | ||
| 14 | #define __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H | ||
| 15 | |||
| 16 | #include <linux/types.h> | ||
| 17 | |||
| 18 | enum mxt_suspend_mode { | ||
| 19 | MXT_SUSPEND_DEEP_SLEEP = 0, | ||
| 20 | MXT_SUSPEND_T9_CTRL = 1, | ||
| 21 | }; | ||
| 22 | |||
| 23 | /* The platform data for the Atmel maXTouch touchscreen driver */ | ||
| 24 | struct mxt_platform_data { | ||
| 25 | unsigned long irqflags; | ||
| 26 | u8 t19_num_keys; | ||
| 27 | const unsigned int *t19_keymap; | ||
| 28 | enum mxt_suspend_mode suspend_mode; | ||
| 29 | }; | ||
| 30 | |||
| 31 | #endif /* __LINUX_PLATFORM_DATA_ATMEL_MXT_TS_H */ | ||
diff --git a/include/linux/platform_data/pixcir_i2c_ts.h b/include/linux/platform_data/pixcir_i2c_ts.h new file mode 100644 index 000000000000..646af6f8b838 --- /dev/null +++ b/include/linux/platform_data/pixcir_i2c_ts.h | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | #ifndef _PIXCIR_I2C_TS_H | ||
| 2 | #define _PIXCIR_I2C_TS_H | ||
| 3 | |||
| 4 | /* | ||
| 5 | * Register map | ||
| 6 | */ | ||
| 7 | #define PIXCIR_REG_POWER_MODE 51 | ||
| 8 | #define PIXCIR_REG_INT_MODE 52 | ||
| 9 | |||
| 10 | /* | ||
| 11 | * Power modes: | ||
| 12 | * active: max scan speed | ||
| 13 | * idle: lower scan speed with automatic transition to active on touch | ||
| 14 | * halt: datasheet says sleep but this is more like halt as the chip | ||
| 15 | * clocks are cut and it can only be brought out of this mode | ||
| 16 | * using the RESET pin. | ||
| 17 | */ | ||
| 18 | enum pixcir_power_mode { | ||
| 19 | PIXCIR_POWER_ACTIVE, | ||
| 20 | PIXCIR_POWER_IDLE, | ||
| 21 | PIXCIR_POWER_HALT, | ||
| 22 | }; | ||
| 23 | |||
| 24 | #define PIXCIR_POWER_MODE_MASK 0x03 | ||
| 25 | #define PIXCIR_POWER_ALLOW_IDLE (1UL << 2) | ||
| 26 | |||
| 27 | /* | ||
| 28 | * Interrupt modes: | ||
| 29 | * periodical: interrupt is asserted periodicaly | ||
| 30 | * diff coordinates: interrupt is asserted when coordinates change | ||
| 31 | * level on touch: interrupt level asserted during touch | ||
| 32 | * pulse on touch: interrupt pulse asserted druing touch | ||
| 33 | * | ||
| 34 | */ | ||
| 35 | enum pixcir_int_mode { | ||
| 36 | PIXCIR_INT_PERIODICAL, | ||
| 37 | PIXCIR_INT_DIFF_COORD, | ||
| 38 | PIXCIR_INT_LEVEL_TOUCH, | ||
| 39 | PIXCIR_INT_PULSE_TOUCH, | ||
| 40 | }; | ||
| 41 | |||
| 42 | #define PIXCIR_INT_MODE_MASK 0x03 | ||
| 43 | #define PIXCIR_INT_ENABLE (1UL << 3) | ||
| 44 | #define PIXCIR_INT_POL_HIGH (1UL << 2) | ||
| 45 | |||
| 46 | /** | ||
| 47 | * struct pixcir_irc_chip_data - chip related data | ||
| 48 | * @max_fingers: Max number of fingers reported simultaneously by h/w | ||
| 49 | * @has_hw_ids: Hardware supports finger tracking IDs | ||
| 50 | * | ||
| 51 | */ | ||
| 52 | struct pixcir_i2c_chip_data { | ||
| 53 | u8 max_fingers; | ||
| 54 | bool has_hw_ids; | ||
| 55 | }; | ||
| 56 | |||
| 57 | struct pixcir_ts_platform_data { | ||
| 58 | int x_max; | ||
| 59 | int y_max; | ||
| 60 | struct pixcir_i2c_chip_data chip; | ||
| 61 | }; | ||
| 62 | |||
| 63 | #endif | ||
diff --git a/include/linux/platform_data/zforce_ts.h b/include/linux/platform_data/zforce_ts.h index 0472ab2f6ede..7bdece8ef33e 100644 --- a/include/linux/platform_data/zforce_ts.h +++ b/include/linux/platform_data/zforce_ts.h | |||
| @@ -16,9 +16,6 @@ | |||
| 16 | #define _LINUX_INPUT_ZFORCE_TS_H | 16 | #define _LINUX_INPUT_ZFORCE_TS_H |
| 17 | 17 | ||
| 18 | struct zforce_ts_platdata { | 18 | struct zforce_ts_platdata { |
| 19 | int gpio_int; | ||
| 20 | int gpio_rst; | ||
| 21 | |||
| 22 | unsigned int x_max; | 19 | unsigned int x_max; |
| 23 | unsigned int y_max; | 20 | unsigned int y_max; |
| 24 | }; | 21 | }; |
