2020-04-02 23:49:05 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2017-04-09 20:40:39 +02:00
|
|
|
|
2019-12-03 06:30:26 +01:00
|
|
|
#include <arch/bootblock.h>
|
2019-03-01 12:43:02 +01:00
|
|
|
#include <device/pci_ops.h>
|
2020-06-21 18:03:00 +02:00
|
|
|
#include <southbridge/intel/common/early_spi.h>
|
2017-04-09 20:48:37 +02:00
|
|
|
#include "i82801jx.h"
|
2017-04-09 20:40:39 +02:00
|
|
|
|
2019-11-11 21:56:37 +01:00
|
|
|
void bootblock_early_southbridge_init(void)
|
2017-04-09 20:40:39 +02:00
|
|
|
{
|
2020-06-21 18:03:00 +02:00
|
|
|
enable_spi_prefetching_and_caching();
|
2017-04-09 20:48:37 +02:00
|
|
|
|
2019-11-11 21:56:37 +01:00
|
|
|
i82801jx_setup_bars();
|
2019-11-11 19:58:26 +01:00
|
|
|
|
|
|
|
/* Enable upper 128bytes of CMOS. */
|
|
|
|
RCBA32(0x3400) = (1 << 2);
|
2019-11-11 21:56:37 +01:00
|
|
|
|
|
|
|
i82801jx_lpc_setup();
|
2017-04-09 20:40:39 +02:00
|
|
|
}
|