Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: typec: tcpci: move tcpci.h to include/linux/usb/

USB PD controllers which consisting of a microcontroller (acting as the TCPM)
and a port controller (TCPC) - may require that the driver for the PD
controller accesses directly also the on-chip port controller in some cases.

Move tcpci.h to include/linux/usb/ is convenience access TCPC registers.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Xin Ji <xji@analogixsemi.com>

Link: https://lore.kernel.org/r/20220706083433.2415524-1-xji@analogixsemi.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Xin Ji and committed by
Greg Kroah-Hartman
7963d4d7 04cb742d

+5 -7
+1 -2
drivers/usb/typec/tcpm/tcpci.c
··· 13 13 #include <linux/property.h> 14 14 #include <linux/regmap.h> 15 15 #include <linux/usb/pd.h> 16 + #include <linux/usb/tcpci.h> 16 17 #include <linux/usb/tcpm.h> 17 18 #include <linux/usb/typec.h> 18 - 19 - #include "tcpci.h" 20 19 21 20 #define PD_RETRY_COUNT_DEFAULT 3 22 21 #define PD_RETRY_COUNT_3_0_OR_HIGHER 2
+1
drivers/usb/typec/tcpm/tcpci.h include/linux/usb/tcpci.h
··· 9 9 #define __LINUX_USB_TCPCI_H 10 10 11 11 #include <linux/usb/typec.h> 12 + #include <linux/usb/tcpm.h> 12 13 13 14 #define TCPC_VENDOR_ID 0x0 14 15 #define TCPC_PRODUCT_ID 0x2
+1 -2
drivers/usb/typec/tcpm/tcpci_maxim.c
··· 11 11 #include <linux/module.h> 12 12 #include <linux/regmap.h> 13 13 #include <linux/usb/pd.h> 14 + #include <linux/usb/tcpci.h> 14 15 #include <linux/usb/tcpm.h> 15 16 #include <linux/usb/typec.h> 16 - 17 - #include "tcpci.h" 18 17 19 18 #define PD_ACTIVITY_TIMEOUT_MS 10000 20 19
+1 -2
drivers/usb/typec/tcpm/tcpci_mt6360.c
··· 11 11 #include <linux/of.h> 12 12 #include <linux/platform_device.h> 13 13 #include <linux/regmap.h> 14 + #include <linux/usb/tcpci.h> 14 15 #include <linux/usb/tcpm.h> 15 - 16 - #include "tcpci.h" 17 16 18 17 #define MT6360_REG_PHYCTRL1 0x80 19 18 #define MT6360_REG_PHYCTRL3 0x82
+1 -1
drivers/usb/typec/tcpm/tcpci_rt1711h.c
··· 10 10 #include <linux/i2c.h> 11 11 #include <linux/interrupt.h> 12 12 #include <linux/gpio/consumer.h> 13 + #include <linux/usb/tcpci.h> 13 14 #include <linux/usb/tcpm.h> 14 15 #include <linux/regmap.h> 15 - #include "tcpci.h" 16 16 17 17 #define RT1711H_VID 0x29CF 18 18 #define RT1711H_PID 0x1711