blob: dc21b8e116672cc4f17cd564037ee282884c82d0 [file] [log] [blame]
Lijian Zhao7b6a8ce2017-10-30 14:21:31 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * * Copyright (C) 2016 Google Inc.
praveen hodagatta praneshe26c4a42018-09-20 03:49:45 +08005 * * Copyright (C) 2017-2018 Intel Corporation.
Lijian Zhao7b6a8ce2017-10-30 14:21:31 -07006 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 */
16
17#include <device/device.h>
18#include <device/pci.h>
19#include <device/pci_ids.h>
20
21static struct device_operations dsp_dev_ops = {
Elyes HAOUAS1d191272018-11-27 12:23:48 +010022 .read_resources = pci_dev_read_resources,
23 .set_resources = pci_dev_set_resources,
24 .enable_resources = pci_dev_enable_resources,
Subrata Banik6bbc91a2017-12-07 14:55:51 +053025 .ops_pci = &pci_dev_ops_pci,
Nico Huberf7ed3d42019-03-14 15:50:06 +010026 .scan_bus = enable_static_devices,
Lijian Zhao7b6a8ce2017-10-30 14:21:31 -070027};
28
29static const unsigned short pci_device_ids[] = {
30 PCI_DEVICE_ID_INTEL_APL_AUDIO,
31 PCI_DEVICE_ID_INTEL_CNL_AUDIO,
32 PCI_DEVICE_ID_INTEL_GLK_AUDIO,
Subrata Banikfb15d462017-11-27 12:14:38 +053033 PCI_DEVICE_ID_INTEL_SKL_AUDIO,
praveen hodagatta praneshe26c4a42018-09-20 03:49:45 +080034 PCI_DEVICE_ID_INTEL_CNP_H_AUDIO,
V Sowmya0873e272019-04-15 08:28:48 +053035 PCI_DEVICE_ID_INTEL_CMP_AUDIO,
Gaggery Tsai12a651c2019-12-05 11:23:20 -080036 PCI_DEVICE_ID_INTEL_CMP_H_AUDIO,
Aamir Bohra9eac0392018-06-30 12:07:04 +053037 PCI_DEVICE_ID_INTEL_ICL_AUDIO,
Ravi Sarawadi6b5bf402019-10-21 22:25:04 -070038 PCI_DEVICE_ID_INTEL_TGL_AUDIO,
Tan, Lean Sheng26136092020-01-20 19:13:56 -080039 PCI_DEVICE_ID_INTEL_MCC_AUDIO,
Meera Ravindranath3f4af0d2020-02-12 16:01:22 +053040 PCI_DEVICE_ID_INTEL_JSP_AUDIO,
Lijian Zhao7b6a8ce2017-10-30 14:21:31 -070041 0,
42};
43
44static const struct pci_driver dsp_driver __pci_driver = {
45 .ops = &dsp_dev_ops,
46 .vendor = PCI_VENDOR_ID_INTEL,
47 .devices = pci_device_ids,
48};