MLK-16298-1 usb: typec: make super speed signal mux select configurable
authorLi Jun <jun.li@nxp.com>
Wed, 9 Jan 2019 07:34:03 +0000 (13:04 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit3f76e19769b5d8e3d53101886a4da27a5e6142a6
treed6105ffad5549167347fc11cd8fde5394d8b3a82
parentbb1d6c84615cb9e91e35983bdbae8250e6ffcfc9
MLK-16298-1 usb: typec: make super speed signal mux select configurable

Instead of fixed pull up super speed mux selection gpio for cc1, use
GPIO_ACTIVE_HIGH/LOW to map the CC1/CC2 orientation via gpiod api, So
for ss-sel-gpios:
GPIO_ACTIVE_HIGH: CC1 <--> GPIO high
GPIO_ACTIVE_LOW : CC1 <--> GPIO low

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/usb/typec/tcpci.c