diff options
Diffstat (limited to 'baseboard/grunt/usb_pd_policy.c')
-rw-r--r-- | baseboard/grunt/usb_pd_policy.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/baseboard/grunt/usb_pd_policy.c b/baseboard/grunt/usb_pd_policy.c index cb587a1b84..9ec482c750 100644 --- a/baseboard/grunt/usb_pd_policy.c +++ b/baseboard/grunt/usb_pd_policy.c @@ -125,12 +125,6 @@ __override int svdm_dp_config(int port, uint32_t *payload) return 2; }; -/* - * timestamp of the next possible toggle to ensure the 2-ms spacing - * between IRQ_HPD. - */ -static uint64_t hpd_deadline[CONFIG_USB_PD_PORT_MAX_COUNT]; - #define PORT_TO_HPD(port) ((port) ? GPIO_USB_C1_DP_HPD : GPIO_USB_C0_DP_HPD) __override void svdm_dp_post_config(int port) { @@ -148,7 +142,7 @@ __override void svdm_dp_post_config(int port) gpio_set_level(PORT_TO_HPD(port), 1); /* set the minimum time delay (2ms) for the next HPD IRQ */ - hpd_deadline[port] = get_time().val + HPD_USTREAM_DEBOUNCE_LVL; + svdm_hpd_deadline[port] = get_time().val + HPD_USTREAM_DEBOUNCE_LVL; mux->hpd_update(port, 1, 0); } |