summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@gmail.com>2013-05-22 05:20:08 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:47:05 +0900
commit2c27a9a56c2fce8ff687b8800e64cc129e3d190b (patch)
treeeedad323629a88b8646472b155b638d6c547a20b /include
parentb0f6a2e4b6fa59d58ef84d6df59ec83d085aea8c (diff)
downloadlinux-3.10-2c27a9a56c2fce8ff687b8800e64cc129e3d190b.tar.gz
linux-3.10-2c27a9a56c2fce8ff687b8800e64cc129e3d190b.tar.bz2
linux-3.10-2c27a9a56c2fce8ff687b8800e64cc129e3d190b.zip
usb: misc: usb3503: Add to select the ports to disable
This patch is to disable the USB ports unconnected to USB3503. In order to disable the port, 'port_off_mask' must be set. * Disable PORT1 only .port_off_mask = USB3503_OFF_PORT1; * Disable PORT1 and PORT3 only .port_off_mask = USB3503_OFF_PORT1 | USB3503_OFF_PORT3; * Enables all ports .port_off_mask = 0; Signed-off-by: Dongjin Kim <tobetter@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> [mszyprow: mainline commit e8e44a4896a5f0bde1af36a31b7ec662bdaa44ef] Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: Ie8e44a4896a5f0bde1af36a31b7ec662bdaa44ef
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/usb3503.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/platform_data/usb3503.h b/include/linux/platform_data/usb3503.h
index 85dcc709f7e..1d1b6ef871f 100644
--- a/include/linux/platform_data/usb3503.h
+++ b/include/linux/platform_data/usb3503.h
@@ -3,6 +3,10 @@
#define USB3503_I2C_NAME "usb3503"
+#define USB3503_OFF_PORT1 (1 << 1)
+#define USB3503_OFF_PORT2 (1 << 2)
+#define USB3503_OFF_PORT3 (1 << 3)
+
enum usb3503_mode {
USB3503_MODE_UNKNOWN,
USB3503_MODE_HUB,
@@ -11,6 +15,7 @@ enum usb3503_mode {
struct usb3503_platform_data {
enum usb3503_mode initial_mode;
+ u8 port_off_mask;
int gpio_intn;
int gpio_connect;
int gpio_reset;