Re: [PATCH 2/2] usb: typec: add typec switch via GPIO control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 25, 2019 at 07:27:08AM +0000, Jun Li wrote:
> This patch adds a simple typec switch driver which only needs
> a GPIO to switch the super speed active channel according to
> typec orientation.
> 
> Signed-off-by: Li Jun <jun.li@xxxxxxx>
> ---
>  drivers/usb/typec/mux/Kconfig       |   6 +++
>  drivers/usb/typec/mux/Makefile      |   1 +
>  drivers/usb/typec/mux/gpio-switch.c | 105 ++++++++++++++++++++++++++++++++++++
>  3 files changed, 112 insertions(+)
>  create mode 100644 drivers/usb/typec/mux/gpio-switch.c
> 
> diff --git a/drivers/usb/typec/mux/Kconfig b/drivers/usb/typec/mux/Kconfig
> index 01ed0d5..bc7d3c7 100644
> --- a/drivers/usb/typec/mux/Kconfig
> +++ b/drivers/usb/typec/mux/Kconfig
> @@ -9,4 +9,10 @@ config TYPEC_MUX_PI3USB30532
>  	  Say Y or M if your system has a Pericom PI3USB30532 Type-C cross
>  	  switch / mux chip found on some devices with a Type-C port.
>  
> +config TYPEC_SWITCH_GPIO
> +	tristate "Simple Super Speed Active Switch via GPIO"

depends on GPIOLIB?

> +	help
> +	  Say Y or M if your system has a typec super speed channel
> +	  switch via a simple GPIO control.
> +

thanks,

-- 
heikki



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux