ectool: Update usbpdmuxinfo to latest changes
BRANCH=none
TEST=Manually tested on intelrvp, "ectool usbpdmuxinfo"
command shows correct SS mux info
@@ -5605,17 +5605,13 @@ int cmd_usb_pd_mux_info(int argc, char *argv[])
return rv;
printf("Port %d: ", i);
- if (r.flags & USB_PD_MUX_USB_ENABLED)
- printf("USB ");
- if (r.flags & USB_PD_MUX_DP_ENABLED)
- printf("DP ");
- if (!(r.flags & (USB_PD_MUX_DP_ENABLED |
- USB_PD_MUX_USB_ENABLED)))
- printf("OPEN ");
- if (r.flags & USB_PD_MUX_POLARITY_INVERTED)
- printf("INV ");
- if (r.flags & USB_PD_MUX_HPD_IRQ)
- printf("HPD_IRQ ");
+ printf("USB=%d ", !!(r.flags & USB_PD_MUX_USB_ENABLED));
+ printf("DP=%d ", !!(r.flags & USB_PD_MUX_DP_ENABLED));
+ printf("POLARITY=%s ", r.flags & USB_PD_MUX_POLARITY_INVERTED ?
+ "INVERTED" : "NORMAL");
+ printf("HPD_IRQ=%d ", !!(r.flags & USB_PD_MUX_HPD_IRQ));
+ printf("HPD_LVL=%d ", !!(r.flags & USB_PD_MUX_HPD_LVL));
+ printf("SAFE=%d ", !!(r.flags & USB_PD_MUX_SAFE_MODE));
printf("\n");
}
