Derek Huang | 1a36876 | 2021-09-30 21:20:02 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <ec/google/chromeec/ec.h> |
| 4 | |
| 5 | static 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 Porwal | 2ba4b1b | 2023-07-10 11:37:26 +0000 | [diff] [blame] | 12 | .wait_for_dp_mode_entry = google_chromeec_wait_for_dp_mode_entry, |
| 13 | .wait_for_hpd = google_chromeec_wait_for_hpd, |
Derek Huang | 1a36876 | 2021-09-30 21:20:02 +0800 | [diff] [blame] | 14 | }, |
| 15 | }; |
| 16 | |
| 17 | const struct usbc_ops *usbc_get_ops(void) |
| 18 | { |
| 19 | return &google_chromeec_usbc_ops; |
| 20 | } |