Skip to content

Commit d56c9cc

Browse files
EvenxfJiri Kosina
authored andcommitted
HID: Intel-thc-hid: Intel-quicki2c: Add NVL Device IDs
Add Nova Lake THC QuickI2C device IDs to support list. Signed-off-by: Even Xu <even.xu@intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
1 parent e716eda commit d56c9cc

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ static struct quicki2c_ddata ptl_ddata = {
2626
.max_interrupt_delay = MAX_RX_INTERRUPT_DELAY,
2727
};
2828

29+
static struct quicki2c_ddata nvl_ddata = {
30+
.max_detect_size = MAX_RX_DETECT_SIZE_NVL,
31+
.max_interrupt_delay = MAX_RX_INTERRUPT_DELAY,
32+
};
33+
2934
/* THC QuickI2C ACPI method to get device properties */
3035
/* HIDI2C device method */
3136
static guid_t i2c_hid_guid =
@@ -1032,6 +1037,8 @@ static const struct pci_device_id quicki2c_pci_tbl[] = {
10321037
{ PCI_DEVICE_DATA(INTEL, THC_PTL_U_DEVICE_ID_I2C_PORT2, &ptl_ddata) },
10331038
{ PCI_DEVICE_DATA(INTEL, THC_WCL_DEVICE_ID_I2C_PORT1, &ptl_ddata) },
10341039
{ PCI_DEVICE_DATA(INTEL, THC_WCL_DEVICE_ID_I2C_PORT2, &ptl_ddata) },
1040+
{ PCI_DEVICE_DATA(INTEL, THC_NVL_H_DEVICE_ID_I2C_PORT1, &nvl_ddata) },
1041+
{ PCI_DEVICE_DATA(INTEL, THC_NVL_H_DEVICE_ID_I2C_PORT2, &nvl_ddata) },
10351042
{ }
10361043
};
10371044
MODULE_DEVICE_TABLE(pci, quicki2c_pci_tbl);

drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-dev.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#define PCI_DEVICE_ID_INTEL_THC_PTL_U_DEVICE_ID_I2C_PORT2 0xE44A
1616
#define PCI_DEVICE_ID_INTEL_THC_WCL_DEVICE_ID_I2C_PORT1 0x4D48
1717
#define PCI_DEVICE_ID_INTEL_THC_WCL_DEVICE_ID_I2C_PORT2 0x4D4A
18+
#define PCI_DEVICE_ID_INTEL_THC_NVL_H_DEVICE_ID_I2C_PORT1 0xD348
19+
#define PCI_DEVICE_ID_INTEL_THC_NVL_H_DEVICE_ID_I2C_PORT2 0xD34A
1820

1921
/* Packet size value, the unit is 16 bytes */
2022
#define MAX_PACKET_SIZE_VALUE_LNL 256
@@ -40,6 +42,8 @@
4042

4143
/* PTL Max packet size detection capability is 255 Bytes */
4244
#define MAX_RX_DETECT_SIZE_PTL 255
45+
/* NVL Max packet size detection capability is 64K Bytes */
46+
#define MAX_RX_DETECT_SIZE_NVL 65535
4347
/* Max interrupt delay capability is 2.56ms */
4448
#define MAX_RX_INTERRUPT_DELAY 256
4549

0 commit comments

Comments
 (0)