aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/intel/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/intel/common')
-rw-r--r--src/southbridge/intel/common/early_spi.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/southbridge/intel/common/early_spi.h b/src/southbridge/intel/common/early_spi.h
new file mode 100644
index 0000000000..ae84f74e83
--- /dev/null
+++ b/src/southbridge/intel/common/early_spi.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef SOUTHBRIDGE_INTEL_COMMON_EARLY_SPI_H
+#define SOUTHBRIDGE_INTEL_COMMON_EARLY_SPI_H
+
+#include <device/pci_ops.h>
+
+static inline void enable_spi_prefetching_and_caching(void)
+{
+ pci_update_config8(PCI_DEV(0, 0x1f, 0), 0xdc, ~(3 << 2), 2 << 2);
+}
+
+#endif