1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <arch/bootblock.h>
4 #include <device/pci_ops.h>
5 #include <southbridge/intel/common/early_spi.h>
8 static void setup_port80(void)
10 /* Enable port 80 POST */
11 if (CONFIG(POST_DEVICE_PCI_PCIE
))
12 RCBA32(GCS
) |= 0x04; /* ... on PCI(e) */
14 RCBA32(GCS
) &= (~0x04); /* ... on LPC */
17 static void set_spi_speed(void)
22 /* Observe SPI Descriptor Component Section 0 */
23 RCBA32(0x38b0) = 0x1000;
25 /* Extract the Write/Erase SPI Frequency from descriptor */
26 fdod
= RCBA32(0x38b4);
30 /* Set Software Sequence frequency to match */
37 void bootblock_early_southbridge_init(void)
39 enable_spi_prefetching_and_caching();
46 /* Enable upper 128bytes of CMOS */
47 RCBA32(RC
) = (1 << 2);