forked from Minki/linux
be48308a24
The generic GPIO extcon driver (an external connector device based on GPIO control) and imported from Android kernel. switch: switch class and GPIO drivers. (splitted) Author: Mike Lockwood <lockwood@android.com> switch: gpio: Don't call request_irq with interrupts disabled Author: Arve Hjønnevåg <arve@android.com> switch_gpio: Add missing #include <linux/interrupt.h> Author: Mike Lockwood <lockwood@android.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com> -- Changed from v7: - Style updates mentioned by Stephen Boyd and Mark Brown Changed from v5: - Splitted at v5 from the main extcon patch. - Added debounce time for irq handlers. - Use request_any_context_irq instead of request_irq - User needs to specify irq flags for GPIO interrupts (was fixed to IRQF_TRIGGER_LOW before) - Use module_platform_driver(). Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
25 lines
817 B
Plaintext
25 lines
817 B
Plaintext
menuconfig EXTCON
|
|
tristate "External Connector Class (extcon) support"
|
|
help
|
|
Say Y here to enable external connector class (extcon) support.
|
|
This allows monitoring external connectors by userspace
|
|
via sysfs and uevent and supports external connectors with
|
|
multiple states; i.e., an extcon that may have multiple
|
|
cables attached. For example, an external connector of a device
|
|
may be used to connect an HDMI cable and a AC adaptor, and to
|
|
host USB ports. Many of 30-pin connectors including PDMI are
|
|
also good examples.
|
|
|
|
if EXTCON
|
|
|
|
comment "Extcon Device Drivers"
|
|
|
|
config EXTCON_GPIO
|
|
tristate "GPIO extcon support"
|
|
depends on GENERIC_GPIO
|
|
help
|
|
Say Y here to enable GPIO based extcon support. Note that GPIO
|
|
extcon supports single state per extcon instance.
|
|
|
|
endif # MULTISTATE_SWITCH
|