1 // SPDX-License-Identifier: GPL-2.0
3 * PCI driver for the Intel SCU.
5 * Copyright (C) 2008-2010, 2015, 2020 Intel Corporation
6 * Authors: Sreedhara DS (sreedhara.ds@intel.com)
7 * Mika Westerberg <mika.westerberg@linux.intel.com>
10 #include <linux/errno.h>
11 #include <linux/init.h>
12 #include <linux/pci.h>
14 #include <linux/platform_data/x86/intel_scu_ipc.h>
16 static int intel_scu_pci_probe(struct pci_dev
*pdev
,
17 const struct pci_device_id
*id
)
19 struct intel_scu_ipc_data scu_data
= {};
20 struct intel_scu_ipc_dev
*scu
;
23 ret
= pcim_enable_device(pdev
);
27 scu_data
.mem
= pdev
->resource
[0];
28 scu_data
.irq
= pdev
->irq
;
30 scu
= intel_scu_ipc_register(&pdev
->dev
, &scu_data
);
31 return PTR_ERR_OR_ZERO(scu
);
34 static const struct pci_device_id pci_ids
[] = {
35 { PCI_VDEVICE(INTEL
, 0x080e) },
36 { PCI_VDEVICE(INTEL
, 0x082a) },
37 { PCI_VDEVICE(INTEL
, 0x08ea) },
38 { PCI_VDEVICE(INTEL
, 0x0a94) },
39 { PCI_VDEVICE(INTEL
, 0x11a0) },
40 { PCI_VDEVICE(INTEL
, 0x1a94) },
41 { PCI_VDEVICE(INTEL
, 0x5a94) },
45 static struct pci_driver intel_scu_pci_driver
= {
47 .suppress_bind_attrs
= true,
51 .probe
= intel_scu_pci_probe
,
54 builtin_pci_driver(intel_scu_pci_driver
);