blob: f89416a898481490f863fd75a3a57b5e383611b1 [file] [log] [blame]
Derek Huang1a368762021-09-30 21:20:02 +08001/* SPDX-License-Identifier: GPL-2.0-only */
2
3#include <ec/google/chromeec/ec.h>
4
5static const struct usbc_ops google_chromeec_usbc_ops = {
6 .mux_ops = {
7 .get_mux_info = google_chromeec_get_usbc_mux_info,
8 },
9 .dp_ops = {
10 .wait_for_connection = google_chromeec_wait_for_displayport,
11 .enter_dp_mode = google_chromeec_typec_control_enter_dp_mode,
Kapil Porwal2ba4b1b2023-07-10 11:37:26 +000012 .wait_for_dp_mode_entry = google_chromeec_wait_for_dp_mode_entry,
13 .wait_for_hpd = google_chromeec_wait_for_hpd,
Derek Huang1a368762021-09-30 21:20:02 +080014 },
15};
16
17const struct usbc_ops *usbc_get_ops(void)
18{
19 return &google_chromeec_usbc_ops;
20}