File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ all-y += system76_ec.c
5
5
6
6
ramstage-y += smbios.c
7
7
ramstage-$(CONFIG_EC_SYSTEM76_EC_LOCKDOWN) += lockdown.c
8
+ ramstage-y += usbc_mux.c
8
9
9
10
smm-$(CONFIG_DEBUG_SMI) += system76_ec.c
10
11
Original file line number Diff line number Diff line change
1
+ /* SPDX-License-Identifier: GPL-2.0-only */
2
+
3
+ #include <device/usbc_mux.h>
4
+
5
+ static int system76_ec_get_mux_info (int port , struct usbc_mux_info * info )
6
+ {
7
+ return 0 ;
8
+ }
9
+
10
+ static int system76_ec_wait_for_connection (long timeout_ms )
11
+ {
12
+ return 0 ;
13
+ }
14
+
15
+ static int system76_ec_enter_dp_mode (int port )
16
+ {
17
+ return 0 ;
18
+ }
19
+
20
+ static int system76_ec_wait_for_dp_mode_entry (int port , long timeout_ms )
21
+ {
22
+ return 0 ;
23
+ }
24
+
25
+ static int system76_ec_wait_for_hpd (int port , long timeout_ms )
26
+ {
27
+ return 0 ;
28
+ }
29
+
30
+ static const struct usbc_ops system76_ec_usbc_ops = {
31
+ .mux_ops = {
32
+ .get_mux_info = system76_ec_get_mux_info ,
33
+ },
34
+ .dp_ops = {
35
+ .wait_for_connection = system76_ec_wait_for_connection ,
36
+ .enter_dp_mode = system76_ec_enter_dp_mode ,
37
+ .wait_for_dp_mode_entry = system76_ec_wait_for_dp_mode_entry ,
38
+ .wait_for_hpd = system76_ec_wait_for_hpd ,
39
+ },
40
+ };
41
+
42
+ const struct usbc_ops * usbc_get_ops (void )
43
+ {
44
+ return & system76_ec_usbc_ops ;
45
+ }
You can’t perform that action at this time.
0 commit comments