aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/ibexpeak/early_pch.c
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2022-02-14 13:04:34 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-02-24 01:18:03 +0000
commite2531ffaa87be5c26005ff986db8492a03f809e3 (patch)
tree843fb04a1551f4b5173aefbd9ad31e93eeead96c /src/southbridge/intel/ibexpeak/early_pch.c
parentfdb0294846cf18b1077e8b0a4b2fe29d6b5a0bb4 (diff)
nb/intel/ironlake: Move out HECI remainders into southbridge
Move the remaining HECI-related stuff to southbridge scope, as the HECI hardware is in the southbridge. Note that HECI BAR is now enabled a bit earlier than before, but this shouldn't matter. Change-Id: I4a29d0b5d5c5e22508bcdfe34a1c5459ae967c75 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/61932 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/southbridge/intel/ibexpeak/early_pch.c')
-rw-r--r--src/southbridge/intel/ibexpeak/early_pch.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/southbridge/intel/ibexpeak/early_pch.c b/src/southbridge/intel/ibexpeak/early_pch.c
index 2fa4b52d23..9edbcf6aa7 100644
--- a/src/southbridge/intel/ibexpeak/early_pch.c
+++ b/src/southbridge/intel/ibexpeak/early_pch.c
@@ -2,6 +2,7 @@
#include <arch/io.h>
#include <console/console.h>
+#include <device/pci_def.h>
#include <device/pci_ops.h>
#include <device/smbus_host.h>
#include <northbridge/intel/ironlake/ironlake.h>
@@ -46,6 +47,10 @@ void ibexpeak_setup_bars(void)
/* halt timer */
outw(inw(DEFAULT_PMBASE | 0x60 | 0x06) | 2, DEFAULT_PMBASE | 0x60 | 0x06);
printk(BIOS_DEBUG, " done.\n");
+
+ pci_write_config32(PCI_DEV(0, 0x16, 0), 0x10, (uintptr_t)DEFAULT_HECIBAR);
+ pci_write_config32(PCI_DEV(0, 0x16, 0), PCI_COMMAND,
+ PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY);
}
void early_pch_init(void)