summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/palmas.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2015-12-30 09:55:45 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2016-02-05 14:15:31 +0900
commitb7aad8e2685b0aa58295bc4250c8476c9c7193eb (patch)
treeb55b0b167b9ef6fd47da7140ec04ba6fe0cfd2e8 /include/linux/mfd/palmas.h
parentc4924e92442d7218bd725e47fa3988c73aae84c9 (diff)
downloadlinux-stable-b7aad8e2685b0aa58295bc4250c8476c9c7193eb.tar.gz
linux-stable-b7aad8e2685b0aa58295bc4250c8476c9c7193eb.tar.bz2
linux-stable-b7aad8e2685b0aa58295bc4250c8476c9c7193eb.zip
extcon: palmas: Add the support for VBUS detection by using GPIO
This patch support for VBUS detection by using GPIO pin. Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Acked-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/palmas.h')
-rw-r--r--include/linux/mfd/palmas.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mfd/palmas.h b/include/linux/mfd/palmas.h
index c800dbc42079..5c9a1d44c125 100644
--- a/include/linux/mfd/palmas.h
+++ b/include/linux/mfd/palmas.h
@@ -580,7 +580,9 @@ struct palmas_usb {
int vbus_irq;
int gpio_id_irq;
+ int gpio_vbus_irq;
struct gpio_desc *id_gpiod;
+ struct gpio_desc *vbus_gpiod;
unsigned long sw_debounce_jiffies;
struct delayed_work wq_detectid;
@@ -589,6 +591,7 @@ struct palmas_usb {
bool enable_vbus_detection;
bool enable_id_detection;
bool enable_gpio_id_detection;
+ bool enable_gpio_vbus_detection;
};
#define comparator_to_palmas(x) container_of((x), struct palmas_usb, comparator)