diff options
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/common/block/ipu/Kconfig | 4 | ||||
-rw-r--r-- | src/soc/intel/common/block/ipu/Makefile.inc | 1 | ||||
-rw-r--r-- | src/soc/intel/common/block/ipu/ipu.c | 23 |
3 files changed, 28 insertions, 0 deletions
diff --git a/src/soc/intel/common/block/ipu/Kconfig b/src/soc/intel/common/block/ipu/Kconfig new file mode 100644 index 0000000000..756616ff85 --- /dev/null +++ b/src/soc/intel/common/block/ipu/Kconfig @@ -0,0 +1,4 @@ +config SOC_INTEL_COMMON_BLOCK_IPU + bool + help + Intel Image Processing Unit driver diff --git a/src/soc/intel/common/block/ipu/Makefile.inc b/src/soc/intel/common/block/ipu/Makefile.inc new file mode 100644 index 0000000000..ac5bc764a8 --- /dev/null +++ b/src/soc/intel/common/block/ipu/Makefile.inc @@ -0,0 +1 @@ +ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_IPU) += ipu.c diff --git a/src/soc/intel/common/block/ipu/ipu.c b/src/soc/intel/common/block/ipu/ipu.c new file mode 100644 index 0000000000..f7b01aa067 --- /dev/null +++ b/src/soc/intel/common/block/ipu/ipu.c @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <device/pci.h> +#include <device/pci_ids.h> + +struct device_operations ipu_pci_ops = { + .read_resources = pci_bus_read_resources, + .set_resources = pci_dev_set_resources, + .enable_resources = pci_bus_enable_resources, + .scan_bus = scan_generic_bus, + .ops_pci = &pci_dev_ops_pci, +}; + +static const uint16_t pci_device_ids[] = { + PCI_DEVICE_ID_INTEL_TGL_IPU, + PCI_DEVICE_ID_INTEL_JSL_IPU, +}; + +static const struct pci_driver intel_ipu __pci_driver = { + .ops = &ipu_pci_ops, + .vendor = PCI_VENDOR_ID_INTEL, + .devices = pci_device_ids, +}; |