From 78c45bd3ef775a790f5cfe60462d37d5edb19e4f Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Wed, 6 Jan 2021 02:40:14 +0100 Subject: sb/intel/bd82x6x: Use `PCH_LPC_DEV` macro Change-Id: I681bb126546b5a7bda3f1bac05c345d2cf60b178 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/49170 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- src/southbridge/intel/bd82x6x/smihandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/southbridge') diff --git a/src/southbridge/intel/bd82x6x/smihandler.c b/src/southbridge/intel/bd82x6x/smihandler.c index 1a9e5b4252..f0929f494c 100644 --- a/src/southbridge/intel/bd82x6x/smihandler.c +++ b/src/southbridge/intel/bd82x6x/smihandler.c @@ -70,7 +70,7 @@ void southbridge_gate_memory_reset(void) { u16 gpiobase; - gpiobase = pci_read_config16(PCI_DEV(0, 0x1f, 0), GPIOBASE) & 0xfffc; + gpiobase = pci_read_config16(PCH_LPC_DEV, GPIOBASE) & 0xfffc; if (!gpiobase) return; -- cgit v1.2.3