Marshall Dawson would like Richard Spiegel, Martin Roth and Furquan Shaikh to review this change.

View Change

soc/amd/stoneyridge: Move hda.c to common

Change-Id: I1aa869584fd6743101c07a6a508abff6426df18d
Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com>
---
A src/soc/amd/common/block/hda/Kconfig
A src/soc/amd/common/block/hda/Makefile.inc
R src/soc/amd/common/block/hda/hda.c
M src/soc/amd/stoneyridge/Makefile.inc
4 files changed, 7 insertions(+), 2 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/32656/1
diff --git a/src/soc/amd/common/block/hda/Kconfig b/src/soc/amd/common/block/hda/Kconfig
new file mode 100644
index 0000000..775de2f
--- /dev/null
+++ b/src/soc/amd/common/block/hda/Kconfig
@@ -0,0 +1,6 @@
+config SOC_AMD_COMMON_BLOCK_HDA
+ bool
+ default n
+ help
+ Select this option to use AMD common High Definition Audio
+ driver support.
diff --git a/src/soc/amd/common/block/hda/Makefile.inc b/src/soc/amd/common/block/hda/Makefile.inc
new file mode 100644
index 0000000..d6f1b32
--- /dev/null
+++ b/src/soc/amd/common/block/hda/Makefile.inc
@@ -0,0 +1 @@
+ramstage-$(CONFIG_SOC_AMD_COMMON_BLOCK_HDA) += hda.c
diff --git a/src/soc/amd/stoneyridge/hda.c b/src/soc/amd/common/block/hda/hda.c
similarity index 97%
rename from src/soc/amd/stoneyridge/hda.c
rename to src/soc/amd/common/block/hda/hda.c
index 0ab2f91..f4ea732 100644
--- a/src/soc/amd/stoneyridge/hda.c
+++ b/src/soc/amd/common/block/hda/hda.c
@@ -17,7 +17,6 @@
#include <device/pci.h>
#include <device/pci_ids.h>
#include <device/pci_ops.h>
-#include <soc/southbridge.h>

static const unsigned short pci_device_ids[] = {
PCI_DEVICE_ID_AMD_SB900_HDA,
diff --git a/src/soc/amd/stoneyridge/Makefile.inc b/src/soc/amd/stoneyridge/Makefile.inc
index e235ada..7c4e875 100644
--- a/src/soc/amd/stoneyridge/Makefile.inc
+++ b/src/soc/amd/stoneyridge/Makefile.inc
@@ -99,7 +99,6 @@
ramstage-$(CONFIG_USBDEBUG) += enable_usbdebug.c
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
ramstage-y += gpio.c
-ramstage-y += hda.c
ramstage-y += iommu.c
ramstage-y += monotonic_timer.c
ramstage-y += southbridge.c

To view, visit change 32656. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1aa869584fd6743101c07a6a508abff6426df18d
Gerrit-Change-Number: 32656
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd@gmail.com>
Gerrit-Reviewer: Furquan Shaikh <furquan@google.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd@gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth@google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel@silverbackltd.com>
Gerrit-MessageType: newchange