<p>Lijian Zhao has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/22232">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">soc/intel/common: Add common dsp driver<br><br>Audio DSP pci driver can be common across different platforms.<br><br>TEST=N/A.<br><br>Change-Id: Ia9206657864b8795799dc71af54996017c1eec57<br>Signed-off-by: Lijian Zhao <lijian.zhao@intel.com><br>---<br>A src/soc/intel/common/block/dsp/Kconfig<br>A src/soc/intel/common/block/dsp/Makefile.inc<br>A src/soc/intel/common/block/dsp/dsp.c<br>3 files changed, 44 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/22232/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/intel/common/block/dsp/Kconfig b/src/soc/intel/common/block/dsp/Kconfig<br>new file mode 100644<br>index 0000000..4d65cb2<br>--- /dev/null<br>+++ b/src/soc/intel/common/block/dsp/Kconfig<br>@@ -0,0 +1,4 @@<br>+config SOC_INTEL_COMMON_BLOCK_DSP<br>+ bool<br>+ help<br>+ Intel Processor common DSP support<br>diff --git a/src/soc/intel/common/block/dsp/Makefile.inc b/src/soc/intel/common/block/dsp/Makefile.inc<br>new file mode 100644<br>index 0000000..6c2cb79<br>--- /dev/null<br>+++ b/src/soc/intel/common/block/dsp/Makefile.inc<br>@@ -0,0 +1 @@<br>+ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_DSP) += dsp.c<br>diff --git a/src/soc/intel/common/block/dsp/dsp.c b/src/soc/intel/common/block/dsp/dsp.c<br>new file mode 100644<br>index 0000000..06384c7<br>--- /dev/null<br>+++ b/src/soc/intel/common/block/dsp/dsp.c<br>@@ -0,0 +1,39 @@<br>+/*<br>+ * This file is part of the coreboot project.<br>+ *<br>+ * * Copyright (C) 2016 Google Inc.<br>+ * * Copyright (C) 2017 Intel Corporation.<br>+ *<br>+ * This program is free software; you can redistribute it and/or modify<br>+ * it under the terms of the GNU General Public License as published by<br>+ * the Free Software Foundation; version 2 of the License.<br>+ *<br>+ * This program is distributed in the hope that it will be useful,<br>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of<br>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the<br>+ * GNU General Public License for more details.<br>+ */<br>+<br>+#include <device/device.h><br>+#include <device/pci.h><br>+#include <device/pci_ids.h><br>+<br>+static struct device_operations dsp_dev_ops = {<br>+ .read_resources = &pci_dev_read_resources,<br>+ .set_resources = &pci_dev_set_resources,<br>+ .enable_resources = &pci_dev_enable_resources,<br>+ .scan_bus = &scan_static_bus,<br>+};<br>+<br>+static const unsigned short pci_device_ids[] = {<br>+ PCI_DEVICE_ID_INTEL_APL_AUDIO,<br>+ PCI_DEVICE_ID_INTEL_CNL_AUDIO,<br>+ PCI_DEVICE_ID_INTEL_GLK_AUDIO,<br>+ 0,<br>+};<br>+<br>+static const struct pci_driver dsp_driver __pci_driver = {<br>+ .ops = &dsp_dev_ops,<br>+ .vendor = PCI_VENDOR_ID_INTEL,<br>+ .devices = pci_device_ids,<br>+};<br></pre><p>To view, visit <a href="https://review.coreboot.org/22232">change 22232</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22232"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ia9206657864b8795799dc71af54996017c1eec57 </div>
<div style="display:none"> Gerrit-Change-Number: 22232 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Lijian Zhao <lijian.zhao@intel.com> </div>