nb/intel/haswell/pcie.c: Add missing pre-ASPM init
Add devicetree configuration parameters for mainboard-specific settings,
and provide reasonable defaults, which should usually be good enough.
This is based on Haswell SA Reference Code version 1.9.0 (Nov 2014).
Tested on Asrock B85M Pro4, registers now have the expected values.
Change-Id: I0dcdd4ca431c2ae1e62f2719c376d8bdef3054bd
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47223
Reviewed-by: Nico Huber <nico.h@gmx.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/northbridge/intel/haswell/haswell.h b/src/northbridge/intel/haswell/haswell.h
index f158c21..b6c2b5f 100644
--- a/src/northbridge/intel/haswell/haswell.h
+++ b/src/northbridge/intel/haswell/haswell.h
@@ -20,12 +20,33 @@
/* Device 0:1.0 PCI configuration space (PCIe Graphics) */
+#define PEG_CAP 0xa2
+#define PEG_DCAP 0xa4
+
+#define PEG_LCAP 0xac
+
+#define PEG_DSTS 0xaa
+
+#define PEG_SLOTCAP 0xb4
+
#define PEG_DCAP2 0xc4 /* 32bit */
+#define PEG_LCTL2 0xd0
+
+#define PEG_VC0RCTL 0x114
+
#define PEG_ESD 0x144 /* 32bit */
#define PEG_LE1D 0x150 /* 32bit */
#define PEG_LE1A 0x158 /* 64bit */
+#define PEG_UESTS 0x1c4
+#define PEG_UESEV 0x1cc
+#define PEG_CESTS 0x1d0
+
+#define PEG_L0SLAT 0x22c
+
+#define PEG_AFE_PM_TMR 0xc28
+
/* Device 0:2.0 PCI configuration space (Graphics Device) */
#define MSAC 0x62 /* Multi Size Aperture Control */