mb/system76/cml-u/dt: Make use of chipset devicetree
[coreboot.git] / src / soc / intel / common / block / hda / hda.c
blobca503126752b73faf6a87553a47d49420852710f
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <device/device.h>
4 #include <device/azalia_device.h>
5 #include <device/pci.h>
6 #include <device/pci_ids.h>
8 static void hda_init(struct device *dev)
10 if (CONFIG(SOC_INTEL_COMMON_BLOCK_HDA_VERB))
11 azalia_audio_init(dev);
14 struct device_operations hda_ops = {
15 .read_resources = pci_dev_read_resources,
16 .set_resources = pci_dev_set_resources,
17 .enable_resources = pci_dev_enable_resources,
18 .init = hda_init,
19 .ops_pci = &pci_dev_ops_pci,
20 .scan_bus = scan_static_bus
23 static const unsigned short pci_device_ids[] = {
24 PCI_DID_INTEL_PTL_AUDIO_1,
25 PCI_DID_INTEL_PTL_AUDIO_2,
26 PCI_DID_INTEL_PTL_AUDIO_3,
27 PCI_DID_INTEL_PTL_AUDIO_4,
28 PCI_DID_INTEL_PTL_AUDIO_5,
29 PCI_DID_INTEL_PTL_AUDIO_6,
30 PCI_DID_INTEL_PTL_AUDIO_7,
31 PCI_DID_INTEL_PTL_AUDIO_8,
32 PCI_DID_INTEL_LNL_AUDIO_1,
33 PCI_DID_INTEL_LNL_AUDIO_2,
34 PCI_DID_INTEL_LNL_AUDIO_3,
35 PCI_DID_INTEL_LNL_AUDIO_4,
36 PCI_DID_INTEL_LNL_AUDIO_5,
37 PCI_DID_INTEL_LNL_AUDIO_6,
38 PCI_DID_INTEL_LNL_AUDIO_7,
39 PCI_DID_INTEL_LNL_AUDIO_8,
40 PCI_DID_INTEL_MTL_AUDIO_1,
41 PCI_DID_INTEL_MTL_AUDIO_2,
42 PCI_DID_INTEL_MTL_AUDIO_3,
43 PCI_DID_INTEL_MTL_AUDIO_4,
44 PCI_DID_INTEL_MTL_AUDIO_5,
45 PCI_DID_INTEL_MTL_AUDIO_6,
46 PCI_DID_INTEL_MTL_AUDIO_7,
47 PCI_DID_INTEL_MTL_AUDIO_8,
48 PCI_DID_INTEL_RPP_P_AUDIO,
49 PCI_DID_INTEL_RPP_S_AUDIO_1,
50 PCI_DID_INTEL_RPP_S_AUDIO_2,
51 PCI_DID_INTEL_RPP_S_AUDIO_3,
52 PCI_DID_INTEL_RPP_S_AUDIO_4,
53 PCI_DID_INTEL_RPP_S_AUDIO_5,
54 PCI_DID_INTEL_RPP_S_AUDIO_6,
55 PCI_DID_INTEL_RPP_S_AUDIO_7,
56 PCI_DID_INTEL_RPP_S_AUDIO_8,
57 PCI_DID_INTEL_APL_AUDIO,
58 PCI_DID_INTEL_GLK_AUDIO,
59 PCI_DID_INTEL_LWB_AUDIO,
60 PCI_DID_INTEL_LWB_AUDIO_SUPER,
61 PCI_DID_INTEL_CNL_AUDIO,
62 PCI_DID_INTEL_CNP_H_AUDIO,
63 PCI_DID_INTEL_CMP_AUDIO,
64 PCI_DID_INTEL_CMP_H_AUDIO,
65 PCI_DID_INTEL_BSW_AUDIO,
66 PCI_DID_INTEL_TGL_AUDIO,
67 PCI_DID_INTEL_TGL_H_AUDIO,
68 PCI_DID_INTEL_MCC_AUDIO,
69 PCI_DID_INTEL_JSP_AUDIO,
70 PCI_DID_INTEL_ADP_P_AUDIO,
71 PCI_DID_INTEL_ADP_S_AUDIO_1,
72 PCI_DID_INTEL_ADP_S_AUDIO_2,
73 PCI_DID_INTEL_ADP_S_AUDIO_3,
74 PCI_DID_INTEL_ADP_S_AUDIO_4,
75 PCI_DID_INTEL_ADP_S_AUDIO_5,
76 PCI_DID_INTEL_ADP_S_AUDIO_6,
77 PCI_DID_INTEL_ADP_S_AUDIO_7,
78 PCI_DID_INTEL_ADP_S_AUDIO_8,
79 PCI_DID_INTEL_ADP_M_N_AUDIO_1,
80 PCI_DID_INTEL_ADP_M_N_AUDIO_2,
81 PCI_DID_INTEL_ADP_M_N_AUDIO_3,
82 PCI_DID_INTEL_ADP_M_N_AUDIO_4,
83 PCI_DID_INTEL_ADP_M_N_AUDIO_5,
84 PCI_DID_INTEL_ADP_M_N_AUDIO_6,
85 PCI_DID_INTEL_ADP_M_N_AUDIO_7,
89 static const struct pci_driver pch_hda __pci_driver = {
90 .ops = &hda_ops,
91 .vendor = PCI_VID_INTEL,
92 .devices = pci_device_ids,