diff options
author | Angel Pons <th3fanbus@gmail.com> | 2020-06-21 18:03:00 +0200 |
---|---|---|
committer | Angel Pons <th3fanbus@gmail.com> | 2020-06-27 17:29:48 +0000 |
commit | 40783f28620a987d8db34162dd54f18901e2d146 (patch) | |
tree | 340ddbb21757e74e6b8d673de0c5515d3a70e04c /src/southbridge/intel | |
parent | 298aa98b816e769f4cedd0b2a0e7e7da656aa18b (diff) |
sb/intel/i82801jx: Use common early SPI code
Change-Id: If9efbde5939913b67852b377dd84cd4de1ec2718
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42664
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/southbridge/intel')
-rw-r--r-- | src/southbridge/intel/i82801jx/bootblock.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/southbridge/intel/i82801jx/bootblock.c b/src/southbridge/intel/i82801jx/bootblock.c index 74cf80ed51..7caebdc7d9 100644 --- a/src/southbridge/intel/i82801jx/bootblock.c +++ b/src/southbridge/intel/i82801jx/bootblock.c @@ -2,16 +2,12 @@ #include <arch/bootblock.h> #include <device/pci_ops.h> +#include <southbridge/intel/common/early_spi.h> #include "i82801jx.h" -static void enable_spi_prefetch(void) -{ - pci_update_config8(PCI_DEV(0, 0x1f, 0), 0xdc, ~(3 << 2), 2 << 2); -} - void bootblock_early_southbridge_init(void) { - enable_spi_prefetch(); + enable_spi_prefetching_and_caching(); i82801jx_setup_bars(); |