sb/intel/i82801ix: Use common early SPI code
Change-Id: Iafcf7aecb20b4c8be79fa562ff267fd54f672862 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42663 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
cf39f89fd9
commit
298aa98b81
|
@ -2,16 +2,12 @@
|
||||||
|
|
||||||
#include <arch/bootblock.h>
|
#include <arch/bootblock.h>
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
|
#include <southbridge/intel/common/early_spi.h>
|
||||||
#include "i82801ix.h"
|
#include "i82801ix.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)
|
void bootblock_early_southbridge_init(void)
|
||||||
{
|
{
|
||||||
enable_spi_prefetch();
|
enable_spi_prefetching_and_caching();
|
||||||
|
|
||||||
i82801ix_early_init();
|
i82801ix_early_init();
|
||||||
i82801ix_lpc_setup();
|
i82801ix_lpc_setup();
|
||||||
|
|
Loading…
Reference in New Issue