blob: a7441c1ab6721ddb6917387f4edda045d259c55e [file] [log] [blame]
Angel Pons182dbde2020-04-02 23:49:05 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Sven Schnelle49ae9712011-05-03 07:55:30 +00002
Kyösti Mälkkide640782019-12-03 07:30:26 +02003#include <arch/bootblock.h>
Angel Ponscf39f892020-06-21 18:00:43 +02004#include <southbridge/intel/common/early_spi.h>
Elyes Haouasb6ad6b62022-10-03 11:07:45 +02005#include <southbridge/intel/common/rcba.h>
6
Vladimir Serbinenko4aad7432014-11-22 20:36:58 +01007#include "i82801gx.h"
Nico Huber9359f2d2013-06-18 22:36:34 +02008
Arthur Heymanse27c0132019-11-12 23:34:13 +01009void bootblock_early_southbridge_init(void)
Sven Schnelle49ae9712011-05-03 07:55:30 +000010{
Angel Ponscf39f892020-06-21 18:00:43 +020011 enable_spi_prefetching_and_caching();
Vladimir Serbinenko4aad7432014-11-22 20:36:58 +010012
Arthur Heymanse27c0132019-11-12 23:34:13 +010013 i82801gx_setup_bars();
Vladimir Serbinenko4aad7432014-11-22 20:36:58 +010014
15 /* Enable upper 128bytes of CMOS */
16 RCBA32(0x3400) = (1 << 2);
Arthur Heymanse27c0132019-11-12 23:34:13 +010017
18 /* Disable watchdog timer */
19 RCBA32(GCS) = RCBA32(GCS) | 0x20;
20
21 i82801gx_lpc_setup();
Sven Schnelle49ae9712011-05-03 07:55:30 +000022}