- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to drive the ID pin into my system processor (iMX8) to a value based on whether or not I'm a Downward Facing Port or an Upward Facing Port. How can a determine this in software?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You could check the port role using the dpm_get_info() API in the CCGx firmware and read the current port type.
Example usage:
const dpm_status_t* status = dpm_get_info(port);
port_type_t type = dpm_stat->cur_port_type;
if (type == PRT_TYPE_UFP)
//drive ID pin to a value;
else if (PRT_TYPE_DFP)
//drive ID pin to another value;
Best Regards,
Sananya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You could check the port role using the dpm_get_info() API in the CCGx firmware and read the current port type.
Example usage:
const dpm_status_t* status = dpm_get_info(port);
port_type_t type = dpm_stat->cur_port_type;
if (type == PRT_TYPE_UFP)
//drive ID pin to a value;
else if (PRT_TYPE_DFP)
//drive ID pin to another value;
Best Regards,
Sananya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the fast response and great information!