File tree Expand file tree Collapse file tree 12 files changed +17
-28
lines changed Expand file tree Collapse file tree 12 files changed +17
-28
lines changed Original file line number Diff line number Diff line change 1
1
menu "USB Power Delivery and Type-C drivers"
2
2
3
- config TYPEC_TCPM
4
- tristate "USB Type-C Port Controller Manager"
5
- depends on USB
6
- select TYPEC
7
- help
8
- The Type-C Port Controller Manager provides a USB PD and USB Type-C
9
- state machine for use with Type-C Port Controllers.
10
-
11
3
if TYPEC_TCPM
12
4
13
5
config TYPEC_TCPCI
Original file line number Diff line number Diff line change 1
- obj-$(CONFIG_TYPEC_TCPM) += tcpm.o
2
1
obj-$(CONFIG_TYPEC_TCPCI) += tcpci.o
3
2
obj-y += fusb302/
Original file line number Diff line number Diff line change 1
- tcpm:
2
- - Add documentation (at the very least for the API to low level drivers)
3
- - Split PD code into separate file
4
- - Check if it makes sense to use tracepoints instead of debugfs for debug logs
5
- - Implement Alternate Mode handling
6
- - Address "#if 0" code if not addressed with the above
7
- - Validate all comments marked with "XXX"; either address or remove comments
8
- - Add support for USB PD 3.0. While not mandatory, at least fast role swap
9
- as well as authentication support would be very desirable.
10
-
11
1
tcpci:
12
2
- Test with real hardware
13
3
Original file line number Diff line number Diff line change 37
37
#include <linux/string.h>
38
38
#include <linux/types.h>
39
39
#include <linux/usb/typec.h>
40
+ #include <linux/usb/tcpm.h>
41
+ #include <linux/usb/pd.h>
40
42
#include <linux/workqueue.h>
41
43
42
44
#include "fusb302_reg.h"
43
- #include "../tcpm.h"
44
- #include "../pd.h"
45
45
46
46
/*
47
47
* When the device is SNK, BC_LVL interrupt is used to monitor cc pins
Original file line number Diff line number Diff line change 20
20
#include <linux/i2c.h>
21
21
#include <linux/interrupt.h>
22
22
#include <linux/regmap.h>
23
+ #include <linux/usb/pd.h>
24
+ #include <linux/usb/tcpm.h>
23
25
#include <linux/usb/typec.h>
24
26
25
- #include "pd.h"
26
27
#include "tcpci.h"
27
- #include "tcpm.h"
28
28
29
29
#define PD_RETRY_COUNT 3
30
30
Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ menu "USB Power Delivery and Type-C drivers"
4
4
config TYPEC
5
5
tristate
6
6
7
+ config TYPEC_TCPM
8
+ tristate "USB Type-C Port Controller Manager"
9
+ depends on USB
10
+ select TYPEC
11
+ help
12
+ The Type-C Port Controller Manager provides a USB PD and USB Type-C
13
+ state machine for use with Type-C Port Controllers.
14
+
7
15
config TYPEC_WCOVE
8
16
tristate "Intel WhiskeyCove PMIC USB Type-C PHY driver"
9
17
depends on ACPI
Original file line number Diff line number Diff line change 1
1
obj-$(CONFIG_TYPEC) += typec.o
2
+ obj-$(CONFIG_TYPEC_TCPM) += tcpm.o
2
3
obj-$(CONFIG_TYPEC_WCOVE) += typec_wcove.o
3
4
obj-$(CONFIG_TYPEC_UCSI) += ucsi/
Original file line number Diff line number Diff line change 26
26
#include <linux/seq_file.h>
27
27
#include <linux/slab.h>
28
28
#include <linux/spinlock.h>
29
+ #include <linux/usb/pd.h>
30
+ #include <linux/usb/pd_bdo.h>
31
+ #include <linux/usb/pd_vdo.h>
32
+ #include <linux/usb/tcpm.h>
29
33
#include <linux/usb/typec.h>
30
34
#include <linux/workqueue.h>
31
35
32
- #include "pd.h"
33
- #include "pd_vdo.h"
34
- #include "pd_bdo.h"
35
- #include "tcpm.h"
36
-
37
36
#define FOREACH_STATE (S ) \
38
37
S(INVALID_STATE), \
39
38
S(DRP_TOGGLING), \
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments