summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801gx/ac97.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-05-21 09:04:16 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-05-26 15:12:19 +0000
commitae22fe293fc97a9f6b0fbf52230277b2a4332cda (patch)
treecae4d7cb79e527ba92b8a3ce1022c14693e77a4b /src/southbridge/intel/i82801gx/ac97.c
parent2f2191a3d0876fb90ab0c5f09e1c802b0a89b83e (diff)
downloadcoreboot-ae22fe293fc97a9f6b0fbf52230277b2a4332cda.tar.xz
sb/intel/i82801gx: Use macro instead of numbers
Change-Id: Ide6516937ea79c35cd54127ed2823352a1cac6d4 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41611 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/i82801gx/ac97.c')
-rw-r--r--src/southbridge/intel/i82801gx/ac97.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/southbridge/intel/i82801gx/ac97.c b/src/southbridge/intel/i82801gx/ac97.c
index 175b5cd657..67426c7323 100644
--- a/src/southbridge/intel/i82801gx/ac97.c
+++ b/src/southbridge/intel/i82801gx/ac97.c
@@ -4,6 +4,7 @@
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
+#include <device/pci_def.h>
#include <arch/io.h>
#include <device/pci_ops.h>
#include <delay.h>
@@ -96,7 +97,7 @@ static void init_cnr(void)
static void program_sigid(struct device *dev, u32 id)
{
- pci_write_config32(dev, 0x2c, id);
+ pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID, id);
}
static void ac97_audio_init(struct device *dev)