Searched refs:chip_info (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | shell.c | 31 ret |= tcpc_get_chip_info(dev, &chip_info); \ 33 shell_print(sh, "\tVendor: %04x", chip_info.vendor_id); \ 34 shell_print(sh, "\tProduct: %04x", chip_info.product_id); \ 35 shell_print(sh, "\tDevice: %04x", chip_info.device_id); \ 36 shell_print(sh, "\tFirmware: %llx", chip_info.fw_version_number); \ 106 struct tcpc_chip_info chip_info; in cmd_tcpc_chip_info() local
|
D | ps8xxx.c | 392 int ps8xxx_tcpc_get_chip_info(const struct device *dev, struct tcpc_chip_info *chip_info) in ps8xxx_tcpc_get_chip_info() argument 397 if (chip_info == NULL) { in ps8xxx_tcpc_get_chip_info() 401 ret = tcpci_tcpm_get_chip_info(&cfg->bus, chip_info); in ps8xxx_tcpc_get_chip_info() 404 if (chip_info->product_id == PS8815_PRODUCT_ID) { in ps8xxx_tcpc_get_chip_info() 408 chip_info->fw_version_number = fw_ver; in ps8xxx_tcpc_get_chip_info() 410 chip_info->fw_version_number = 0; in ps8xxx_tcpc_get_chip_info() 413 chip_info->min_req_fw_version_number = 0; in ps8xxx_tcpc_get_chip_info() 578 struct tcpc_chip_info chip_info; in ps8xxx_init_work_cb() local 597 ps8xxx_tcpc_get_chip_info(data->dev, &chip_info); in ps8xxx_init_work_cb() 598 LOG_INF("Initialized chip is: %04x:%04x:%04x", chip_info.vendor_id, chip_info.product_id, in ps8xxx_init_work_cb() [all …]
|
D | rt1715.c | 421 static int rt1715_tcpc_get_chip_info(const struct device *dev, struct tcpc_chip_info *chip_info) in rt1715_tcpc_get_chip_info() argument 425 if (chip_info == NULL) { in rt1715_tcpc_get_chip_info() 429 chip_info->fw_version_number = 0; in rt1715_tcpc_get_chip_info() 430 chip_info->min_req_fw_version_number = 0; in rt1715_tcpc_get_chip_info() 432 return tcpci_tcpm_get_chip_info(&cfg->bus, chip_info); in rt1715_tcpc_get_chip_info() 587 struct tcpc_chip_info chip_info; in rt1715_init_work_cb() local 607 rt1715_tcpc_get_chip_info(data->dev, &chip_info); in rt1715_init_work_cb() 608 LOG_INF("Initialized chip is: %04x:%04x:%04x", chip_info.vendor_id, chip_info.product_id, in rt1715_init_work_cb() 609 chip_info.device_id); in rt1715_init_work_cb()
|
D | tcpci.c | 450 int tcpci_tcpm_get_chip_info(const struct i2c_dt_spec *bus, struct tcpc_chip_info *chip_info) in tcpci_tcpm_get_chip_info() argument 454 if (chip_info == NULL) { in tcpci_tcpm_get_chip_info() 458 ret = tcpci_read_reg16(bus, TCPC_REG_VENDOR_ID, &chip_info->vendor_id); in tcpci_tcpm_get_chip_info() 463 ret = tcpci_read_reg16(bus, TCPC_REG_PRODUCT_ID, &chip_info->product_id); in tcpci_tcpm_get_chip_info() 468 return tcpci_read_reg16(bus, TCPC_REG_BCD_DEV, &chip_info->device_id); in tcpci_tcpm_get_chip_info()
|
/Zephyr-latest/include/zephyr/drivers/usb_c/ |
D | tcpci_priv.h | 126 int tcpci_tcpm_get_chip_info(const struct i2c_dt_spec *bus, struct tcpc_chip_info *chip_info);
|
D | usbc_tcpc.h | 162 int (*get_chip_info)(const struct device *dev, struct tcpc_chip_info *chip_info); 809 static inline int tcpc_get_chip_info(const struct device *dev, struct tcpc_chip_info *chip_info) in tcpc_get_chip_info() argument 817 return api->get_chip_info(dev, chip_info); in tcpc_get_chip_info()
|