mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
i3c: mipi-i3c-hci-pci: Define Multi-Bus instances for supported controllers
Define Multi-Bus Instances at offset 0x400 for Intel controllers. Intel SoCs include two I3C PCI devices in the Low Power Subsystem (LPSS), each capable of hosting two I3C buses. Panther Lake and Wildcat Lake support three buses in total (IDs 0–2), while Nova Lake supports four (IDs 0–3). Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20260106164416.67074-12-adrian.hunter@intel.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
9b1679028e
commit
540a55a5ba
|
|
@ -181,16 +181,25 @@ static void intel_i3c_exit(struct mipi_i3c_hci_pci *hci)
|
|||
intel_ltr_hide(&hci->pci->dev);
|
||||
}
|
||||
|
||||
static const struct mipi_i3c_hci_pci_info intel_1_info = {
|
||||
static const struct mipi_i3c_hci_pci_info intel_mi_1_info = {
|
||||
.init = intel_i3c_init,
|
||||
.exit = intel_i3c_exit,
|
||||
.name = "intel-lpss-i3c",
|
||||
.id = {0},
|
||||
.instance_offset = {0},
|
||||
.instance_count = 1,
|
||||
.id = {0, 1},
|
||||
.instance_offset = {0, 0x400},
|
||||
.instance_count = 2,
|
||||
};
|
||||
|
||||
static const struct mipi_i3c_hci_pci_info intel_2_info = {
|
||||
static const struct mipi_i3c_hci_pci_info intel_mi_2_info = {
|
||||
.init = intel_i3c_init,
|
||||
.exit = intel_i3c_exit,
|
||||
.name = "intel-lpss-i3c",
|
||||
.id = {2, 3},
|
||||
.instance_offset = {0, 0x400},
|
||||
.instance_count = 2,
|
||||
};
|
||||
|
||||
static const struct mipi_i3c_hci_pci_info intel_si_2_info = {
|
||||
.init = intel_i3c_init,
|
||||
.exit = intel_i3c_exit,
|
||||
.name = "intel-lpss-i3c",
|
||||
|
|
@ -296,17 +305,17 @@ static void mipi_i3c_hci_pci_remove(struct pci_dev *pci)
|
|||
|
||||
static const struct pci_device_id mipi_i3c_hci_pci_devices[] = {
|
||||
/* Wildcat Lake-U */
|
||||
{ PCI_VDEVICE(INTEL, 0x4d7c), (kernel_ulong_t)&intel_1_info},
|
||||
{ PCI_VDEVICE(INTEL, 0x4d6f), (kernel_ulong_t)&intel_2_info},
|
||||
{ PCI_VDEVICE(INTEL, 0x4d7c), (kernel_ulong_t)&intel_mi_1_info},
|
||||
{ PCI_VDEVICE(INTEL, 0x4d6f), (kernel_ulong_t)&intel_si_2_info},
|
||||
/* Panther Lake-H */
|
||||
{ PCI_VDEVICE(INTEL, 0xe37c), (kernel_ulong_t)&intel_1_info},
|
||||
{ PCI_VDEVICE(INTEL, 0xe36f), (kernel_ulong_t)&intel_2_info},
|
||||
{ PCI_VDEVICE(INTEL, 0xe37c), (kernel_ulong_t)&intel_mi_1_info},
|
||||
{ PCI_VDEVICE(INTEL, 0xe36f), (kernel_ulong_t)&intel_si_2_info},
|
||||
/* Panther Lake-P */
|
||||
{ PCI_VDEVICE(INTEL, 0xe47c), (kernel_ulong_t)&intel_1_info},
|
||||
{ PCI_VDEVICE(INTEL, 0xe46f), (kernel_ulong_t)&intel_2_info},
|
||||
{ PCI_VDEVICE(INTEL, 0xe47c), (kernel_ulong_t)&intel_mi_1_info},
|
||||
{ PCI_VDEVICE(INTEL, 0xe46f), (kernel_ulong_t)&intel_si_2_info},
|
||||
/* Nova Lake-S */
|
||||
{ PCI_VDEVICE(INTEL, 0x6e2c), (kernel_ulong_t)&intel_1_info},
|
||||
{ PCI_VDEVICE(INTEL, 0x6e2d), (kernel_ulong_t)&intel_2_info},
|
||||
{ PCI_VDEVICE(INTEL, 0x6e2c), (kernel_ulong_t)&intel_mi_1_info},
|
||||
{ PCI_VDEVICE(INTEL, 0x6e2d), (kernel_ulong_t)&intel_mi_2_info},
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pci, mipi_i3c_hci_pci_devices);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user