Home
last modified time | relevance | path

Searched refs:chip_info (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/drivers/usb_c/tcpc/
Dshell.c31 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
Dps8xxx.c484 int ps8xxx_tcpc_get_chip_info(const struct device *dev, struct tcpc_chip_info *chip_info) in ps8xxx_tcpc_get_chip_info() argument
489 if (chip_info == NULL) { in ps8xxx_tcpc_get_chip_info()
493 ret |= tcpci_read_reg16(&cfg->bus, TCPC_REG_VENDOR_ID, &chip_info->vendor_id); in ps8xxx_tcpc_get_chip_info()
494 ret |= tcpci_read_reg16(&cfg->bus, TCPC_REG_PRODUCT_ID, &chip_info->product_id); in ps8xxx_tcpc_get_chip_info()
495 ret |= tcpci_read_reg16(&cfg->bus, TCPC_REG_BCD_DEV, &chip_info->device_id); in ps8xxx_tcpc_get_chip_info()
498 if (chip_info->product_id == PS8815_PRODUCT_ID) { in ps8xxx_tcpc_get_chip_info()
502 chip_info->fw_version_number = fw_ver; in ps8xxx_tcpc_get_chip_info()
504 chip_info->fw_version_number = 0; in ps8xxx_tcpc_get_chip_info()
507 chip_info->min_req_fw_version_number = 0; in ps8xxx_tcpc_get_chip_info()
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_tcpc.h160 int (*get_chip_info)(const struct device *dev, struct tcpc_chip_info *chip_info);
807 static inline int tcpc_get_chip_info(const struct device *dev, struct tcpc_chip_info *chip_info) in tcpc_get_chip_info() argument
815 return api->get_chip_info(dev, chip_info); in tcpc_get_chip_info()