summaryrefslogtreecommitdiff
path: root/src/ec/google/chromeec/usbc_mux.c
blob: f89416a898481490f863fd75a3a57b5e383611b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */

#include <ec/google/chromeec/ec.h>

static const struct usbc_ops google_chromeec_usbc_ops = {
	.mux_ops = {
		.get_mux_info = google_chromeec_get_usbc_mux_info,
	},
	.dp_ops = {
		.wait_for_connection = google_chromeec_wait_for_displayport,
		.enter_dp_mode = google_chromeec_typec_control_enter_dp_mode,
		.wait_for_dp_mode_entry = google_chromeec_wait_for_dp_mode_entry,
		.wait_for_hpd = google_chromeec_wait_for_hpd,
	},
};

const struct usbc_ops *usbc_get_ops(void)
{
	return &google_chromeec_usbc_ops;
}