fwupd/plugins/vli-usbhub
Mario Limonciello 6abe21efbd trivial: stop including fu-hash.h as part of fu-plugin-vfuncs.h
Explicitly include it in all "in-tree" plugins.

If headers are exported out of tree we will likely explicitly not
export this header.
2019-11-25 09:29:46 +00:00
..
fu-plugin-vli-usbhub.c trivial: stop including fu-hash.h as part of fu-plugin-vfuncs.h 2019-11-25 09:29:46 +00:00
fu-vli-usbhub-common.c vli-usbhub: Correctly print the 24-bit USB3 offset 2019-11-22 14:07:39 +00:00
fu-vli-usbhub-common.h vli-usbhub: Support updating PD devices that share the hub flash 2019-11-20 11:07:23 +00:00
fu-vli-usbhub-device.c vli-usbhub: Make erasing less verbose and writing more obvious 2019-11-22 14:07:39 +00:00
fu-vli-usbhub-device.h vli-usbhub: Add support for writing using I2C passthru 2019-11-20 11:07:23 +00:00
fu-vli-usbhub-firmware.c vli-usbhub: Add support for updating V2 devices 2019-10-30 09:41:32 -05:00
fu-vli-usbhub-firmware.h Add a plugin to update VIA USB hub hardware 2019-10-24 12:52:18 +01:00
fu-vli-usbhub-i2c-common.c vli-usbhub: Add support for writing using I2C passthru 2019-11-20 11:07:23 +00:00
fu-vli-usbhub-i2c-common.h vli-usbhub: Add support for writing using I2C passthru 2019-11-20 11:07:23 +00:00
fu-vli-usbhub-i2c-device.c vli-usbhub: Open the parent device before attempting to read or write from the child 2019-11-22 14:07:39 +00:00
fu-vli-usbhub-i2c-device.h vli-usbhub: Add support for writing using I2C passthru 2019-11-20 11:07:23 +00:00
fu-vli-usbhub-pd-common.c vli-usbhub: Support the PD file format 2019-11-20 11:07:23 +00:00
fu-vli-usbhub-pd-common.h vli-usbhub: Support the PD file format 2019-11-20 11:07:23 +00:00
fu-vli-usbhub-pd-device.c vli-usbhub: Print the PD firmware offset and size for debugging 2019-11-22 14:07:39 +00:00
fu-vli-usbhub-pd-device.h vli-usbhub: Support updating PD devices that share the hub flash 2019-11-20 11:07:23 +00:00
fu-vli-usbhub-pd-firmware.c vli-usbhub: Support the PD file format 2019-11-20 11:07:23 +00:00
fu-vli-usbhub-pd-firmware.h vli-usbhub: Support the PD file format 2019-11-20 11:07:23 +00:00
meson.build vli-usbhub: Add support for writing using I2C passthru 2019-11-20 11:07:23 +00:00
README.md vli-usbhub: Add support for writing using I2C passthru 2019-11-20 11:07:23 +00:00
vli-usbhub-lenovo.quirk vli-usbhub: Add support for updating V2 devices 2019-10-30 09:41:32 -05:00
vli-usbhub.quirk vli-usbhub: Add support for updating V2 devices 2019-10-30 09:41:32 -05:00

VIA USB Hub Support

Introduction

This plugin is used to update USB hubs from VIA.

Firmware Format

The daemon will decompress the cabinet archive and extract a firmware blob in an undisclosed binary file format.

This plugin supports the following protocol ID:

  • com.vli.usbhub

GUID Generation

These devices use the standard USB DeviceInstanceId values, e.g.

  • USB\VID_17EF&PID_3083&REV_0001
  • USB\VID_17EF&PID_3083
  • USB\VID_17EF

These devices also use custom GUID values for the SPI flash configuration, e.g.

  • VLI_USBHUB\SPI_37303840
  • VLI_USBHUB\SPI_3730
  • VLI_USBHUB\SPI_37

Optional PD child devices use just one extra GUID, e.g.

  • VLI_USBHUB_PD\VID_17EF&PID_3083

Optional I²C child devices use just one extra GUID, e.g.

  • VLI_USBHUB_I2C\MSP430

Quirk Use

This plugin uses the following plugin-specific quirks:

Quirk Description Minimum fwupd version
SpiCmdChipErase Flash command to erase chip 1.3.3
SpiCmdChipErase Flash command to erase sector 1.3.3
SpiCmdReadId Flash command to read the ID 1.3.3
SpiCmdReadIdSz Size of the ReadId response 1.3.3

The SpiCmdReadId and SpiCmdReadIdSz quirks have to be assigned to the device instance attribute, rather then the flash part as the ID is required to query the other flash chip parameters. For example:

[DeviceInstanceId=USB\VID_2109&PID_0210]
Plugin = vli_usbhub
SpiCmdReadId = 0xf8
SpiCmdReadIdSz = 4

# W3IRDFLASHxxx
[Guid=VLI_USBHUB\\SPI_37303840]
SpiCmdChipErase = 0xc7
SpiCmdSectorErase = 0x20