drivers/usb_mux: Allow inverted polarity on muxes

This adds a feature for USB-C muxes to be inverted with respect to cable
orientation. This effectively adds support for the case where CC1/CC2
are swapped.

BRANCH=none
BUG=b:240938782
TEST=USB3 and DP works on ghost MLB port with rest of patchset

Change-Id: I1441810754078c51ff46f84106aa33e8eb813eb0
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3818926
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
1 file changed