Could you please clarify what do you refer by Detect USB OTG cable switch?
This in an extract from Intel BIOS Writers Guide for Apollo Lake, this is a private document so I can't show the full document.
"In addition to xHCI USB sub-systems shown in previous chapters, APL SoC integrates an USB OTG controller that supports Device-mode operation at Super Speed, High
Speed, and Full Speed. The host-mode and OTG discovery/switching functionality of the controller are not used.
The platform may assign a dedicated type B USB socket to this controller, or use ID PIN-based multiplexing to share a type AB socket between this controller and one of
the ports of the other USB controllers "
Hope this information is useful for your case.
Thank you for your response
About "detect usb otg cable"
USB Type A and Type B through the USB OTG Cable to the ID pin on the voltage changes, switch
USB host / peripheral role, but in the Type C above CC1 and CC2 through the voltage changes determine the role of USB host / peripheral.
I do not understand why Intel in some files that Apollo Lake does not support the meaning of USB OTG?