diff options
author | Luca Weiss <[email protected]> | 2023-10-20 11:33:19 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-10-27 12:54:29 +0200 |
commit | cf07c55f992228465da7eb0e300351206de6171f (patch) | |
tree | 9b2bfdd994c97144c6e09bddaabe7b002cb33702 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | fad89aa14c35f469ea7d3bf49ee1d5840eea0375 (diff) |
usb: typec: fsa4480: Add support to swap SBU orientation
On some hardware designs the AUX+/- lanes are connected reversed to
SBU1/2 compared to the expected design by FSA4480.
Made more complicated, the otherwise compatible Orient-Chip OCP96011
expects the lanes to be connected reversed compared to FSA4480.
* FSA4480 block diagram shows AUX+ connected to SBU2 and AUX- to SBU1.
* OCP96011 block diagram shows AUX+ connected to SBU1 and AUX- to SBU2.
So if OCP96011 is used as drop-in for FSA4480 then the orientation
handling in the driver needs to be reversed to match the expectation of
the OCP96011 hardware.
Support parsing the data-lanes parameter in the endpoint node to swap
this in the driver.
The parse_data_lanes_mapping function is mostly taken from nb7vpq904m.c.
Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Luca Weiss <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions