History

usb: typec: displayport: Move the Configuration VDO helpers to the header

The helpers used for reading and writing the pin assignment from and to the Configuration VDO will be useful in GPU drivers, and also UCSI driver after DisplayPort alt mode support is added to it.

Heikki Krogerus committed 7 years ago

Commit 382e8fa1 parent 25b01612 files · +4 −4Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/usb/typec_dp.h+4−0
@@ -92,4 +92,8 @@ enum { · 91 unmodified lines
9292 #define DP_CONF_PIN_ASSIGNEMENT_SHIFT 8
9393 #define DP_CONF_PIN_ASSIGNEMENT_MASK GENMASK(15, 8)
9494
95+/* Helper for setting/getting the pin assignement value to the configuration */
96+#define DP_CONF_SET_PIN_ASSIGN(_a_) ((_a_) << 8)
97+#define DP_CONF_GET_PIN_ASSIGN(_conf_) (((_conf_) & GENMASK(15, 8)) >> 8)
98+
9599 #endif /* __USB_TYPEC_DP_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t