mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
![Dongjin Kim](/assets/img/avatar_default.png)
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>
24 lines
422 B
C
24 lines
422 B
C
#ifndef __USB3503_H__
|
|
#define __USB3503_H__
|
|
|
|
#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,
|
|
USB3503_MODE_STANDBY,
|
|
};
|
|
|
|
struct usb3503_platform_data {
|
|
enum usb3503_mode initial_mode;
|
|
u8 port_off_mask;
|
|
int gpio_intn;
|
|
int gpio_connect;
|
|
int gpio_reset;
|
|
};
|
|
|
|
#endif
|