Home
last modified time | relevance | path

Searched full:ucsi (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v6.1/drivers/usb/typec/ucsi/
Ducsi.c17 #include "ucsi.h"
23 * Ideally we could use MIN_TIME_TO_RESPOND_WITH_BUSY (which is defined in UCSI
39 static int ucsi_acknowledge_command(struct ucsi *ucsi) in ucsi_acknowledge_command() argument
46 return ucsi->ops->sync_write(ucsi, UCSI_CONTROL, &ctrl, sizeof(ctrl)); in ucsi_acknowledge_command()
49 static int ucsi_acknowledge_connector_change(struct ucsi *ucsi) in ucsi_acknowledge_connector_change() argument
56 return ucsi->ops->sync_write(ucsi, UCSI_CONTROL, &ctrl, sizeof(ctrl)); in ucsi_acknowledge_connector_change()
59 static int ucsi_exec_command(struct ucsi *ucsi, u64 command);
61 static int ucsi_read_error(struct ucsi *ucsi) in ucsi_read_error() argument
67 ret = ucsi_acknowledge_command(ucsi); in ucsi_read_error()
71 ret = ucsi_exec_command(ucsi, UCSI_GET_ERROR_STATUS); in ucsi_read_error()
[all …]
Ducsi_stm32g0.c3 * UCSI driver for STMicroelectronics STM32G0 Type-C PD controller
17 #include "ucsi.h"
68 struct ucsi *ucsi; member
83 static int ucsi_stm32g0_bl_check_ack(struct ucsi *ucsi) in ucsi_stm32g0_bl_check_ack() argument
85 struct ucsi_stm32g0 *g0 = ucsi_get_drvdata(ucsi); in ucsi_stm32g0_bl_check_ack()
120 static int ucsi_stm32g0_bl_cmd_check_ack(struct ucsi *ucsi, unsigned int cmd, bool check_ack) in ucsi_stm32g0_bl_cmd_check_ack() argument
122 struct ucsi_stm32g0 *g0 = ucsi_get_drvdata(ucsi); in ucsi_stm32g0_bl_cmd_check_ack()
151 return ucsi_stm32g0_bl_check_ack(ucsi); in ucsi_stm32g0_bl_cmd_check_ack()
156 static int ucsi_stm32g0_bl_cmd(struct ucsi *ucsi, unsigned int cmd) in ucsi_stm32g0_bl_cmd() argument
158 return ucsi_stm32g0_bl_cmd_check_ack(ucsi, cmd, true); in ucsi_stm32g0_bl_cmd()
[all …]
Ducsi_acpi.c3 * UCSI ACPI driver
13 #include "ucsi.h"
21 struct ucsi *ucsi; member
44 static int ucsi_acpi_read(struct ucsi *ucsi, unsigned int offset, in ucsi_acpi_read() argument
47 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_read()
59 static int ucsi_acpi_async_write(struct ucsi *ucsi, unsigned int offset, in ucsi_acpi_async_write() argument
62 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_async_write()
69 static int ucsi_acpi_sync_write(struct ucsi *ucsi, unsigned int offset, in ucsi_acpi_sync_write() argument
72 struct ucsi_acpi *ua = ucsi_get_drvdata(ucsi); in ucsi_acpi_sync_write()
77 ret = ucsi_acpi_async_write(ucsi, offset, val, val_len); in ucsi_acpi_sync_write()
[all …]
DKconfig8 USB Type-C Connector System Software Interface (UCSI) is a
10 control the USB Type-C ports. On UCSI system the USB Type-C ports
13 is required. UCSI is available on most of the new Intel based systems
16 UCSI specification does not define the interface method, so depending
21 The UCSI specification can be downloaded from:
22 https://www.intel.com/content/www/us/en/io/universal-serial-bus/usb-type-c-ucsi-spec.html
30 tristate "UCSI Interface Driver for Cypress CCGx"
33 This driver enables UCSI support on platforms that expose a
40 tristate "UCSI ACPI Interface Driver"
43 This driver enables UCSI support on platforms that expose UCSI
[all …]
Ducsi.h16 struct ucsi;
19 /* UCSI offsets (Bytes) */
38 * struct ucsi_operations - UCSI I/O operations
44 * Read and write routines for UCSI interface. @sync_write must wait for the
49 int (*read)(struct ucsi *ucsi, unsigned int offset,
51 int (*sync_write)(struct ucsi *ucsi, unsigned int offset,
53 int (*async_write)(struct ucsi *ucsi, unsigned int offset,
55 bool (*update_altmodes)(struct ucsi *ucsi, struct ucsi_altmode *orig,
59 struct ucsi *ucsi_create(struct device *dev, const struct ucsi_operations *ops);
60 void ucsi_destroy(struct ucsi *ucsi);
[all …]
Ducsi_ccg.c3 * UCSI driver for Cypress CCGx Type-C controller
8 * Some code borrowed from drivers/usb/typec/ucsi/ucsi_acpi.c
22 #include "ucsi.h"
128 /* Firmware for Tegra doesn't support UCSI ALT command, built
197 struct ucsi *ucsi; member
325 * Flush CCGx RESPONSE queue by acking interrupts. Above ucsi control in ucsi_ccg_init()
356 static bool ucsi_ccg_update_altmodes(struct ucsi *ucsi, in ucsi_ccg_update_altmodes() argument
360 struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi); in ucsi_ccg_update_altmodes()
516 static int ucsi_ccg_read(struct ucsi *ucsi, unsigned int offset, in ucsi_ccg_read() argument
519 struct ucsi_ccg *uc = ucsi_get_drvdata(ucsi); in ucsi_ccg_read()
[all …]
Ddisplayport.c3 * UCSI DisplayPort Alternate Mode Support
12 #include "ucsi.h"
34 * Note. Alternate mode control is optional feature in UCSI. It means that even
39 * them. That is because UCSI defines alt mode details and alt mode "overriding"
51 struct ucsi *ucsi = dp->con->ucsi; in ucsi_displayport_enter() local
69 ret = ucsi_send_command(ucsi, command, &cur, sizeof(cur)); in ucsi_displayport_enter()
71 if (ucsi->version > 0x0100) in ucsi_displayport_enter()
127 ret = ucsi_send_command(dp->con->ucsi, command, NULL, 0); in ucsi_displayport_exit()
194 return ucsi_send_command(dp->con->ucsi, command, NULL, 0); in ucsi_displayport_configure()
Dpsy.c3 * Power Supply for UCSI
13 #include "ucsi.h"
143 /* UCSI can't tell b/w DCP/CDP or USB2/3x1/3x2 SDP chargers */ in ucsi_psy_get_current_max()
211 struct device *dev = con->ucsi->dev; in ucsi_register_port_psy()
217 psy_name = devm_kasprintf(dev, GFP_KERNEL, "ucsi-source-psy-%s%d", in ucsi_register_port_psy()
DMakefile6 typec_ucsi-y := ucsi.o
Dtrace.c3 #include "ucsi.h"
Dtrace.h4 #define TRACE_SYSTEM ucsi
/Linux-v6.1/drivers/i2c/busses/
Di2c-ccgx-ucsi.c3 * Instantiate UCSI device for Cypress CCGx Type-C controller.
12 #include "i2c-ccgx-ucsi.h"
21 strscpy(info.type, "ccgx-ucsi", sizeof(info.type)); in i2c_new_ccgx_ucsi()
Di2c-nvidia-gpu.c20 #include "i2c-ccgx-ucsi.h"
245 * Currently there is no class code defined for UCSI device over PCI
246 * so using UNKNOWN class for now and it will be updated when UCSI
250 * (initiated from UCSI i2c_client) will timeout or UCSI commands will
313 status = dev_err_probe(dev, PTR_ERR(i2cd->ccgx_client), "register UCSI failed\n"); in gpu_i2c_probe()
Di2c-designware-pcidrv.c27 #include "i2c-ccgx-ucsi.h"
331 "register UCSI failed\n"); in i2c_dw_pci_probe()
DMakefile10 obj-$(CONFIG_I2C_CCGX_UCSI) += i2c-ccgx-ucsi.o
Di2c-designware-core.h310 * Enable UCSI interrupt by writing 0xd at register
Di2c-designware-master.c293 * In order to enable the interrupt for UCSI i.e. AMD NAVI GPU card, in amd_i2c_dw_xfer_quirk()
DKconfig15 A common module to provide an API to instantiate UCSI device
/Linux-v6.1/drivers/usb/typec/
DMakefile7 obj-$(CONFIG_TYPEC_UCSI) += ucsi/
DKconfig51 source "drivers/usb/typec/ucsi/Kconfig"
/Linux-v6.1/Documentation/devicetree/bindings/usb/
Dst,typec-stm32g0.yaml11 typically using the UCSI protocol over I2C, with a dedicated alert
/Linux-v6.1/drivers/platform/x86/intel/
DKconfig121 Transport Protocol) to get battery, thermal and UCSI (USB Type-C
/Linux-v6.1/Documentation/driver-api/usb/
Dtypec.rst16 driver, but it may be a driver for firmware interface such as UCSI, driver for
/Linux-v6.1/drivers/platform/surface/
Dsurface_aggregator_registry.c113 /* HID device instance 7 (SAM, TID=1, UCM UCSI HID client). */
/Linux-v6.1/drivers/pci/
Dquirks.c5486 * Create device link for GPUs with integrated Type-C UCSI controller
5487 * to VGA. Currently there is no class code defined for UCSI device over PCI
5488 * so using UNKNOWN class for now and it will be updated when UCSI
5492 static void quirk_gpu_usb_typec_ucsi(struct pci_dev *ucsi) in quirk_gpu_usb_typec_ucsi() argument
5494 pci_create_device_link(ucsi, 3, 0, PCI_BASE_CLASS_DISPLAY, 16); in quirk_gpu_usb_typec_ucsi()

12