Angel Pons | 182dbde | 2020-04-02 23:49:05 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Sven Schnelle | 49ae971 | 2011-05-03 07:55:30 +0000 | [diff] [blame] | 2 | |
Kyösti Mälkki | de64078 | 2019-12-03 07:30:26 +0200 | [diff] [blame] | 3 | #include <arch/bootblock.h> |
Angel Pons | cf39f89 | 2020-06-21 18:00:43 +0200 | [diff] [blame] | 4 | #include <southbridge/intel/common/early_spi.h> |
Elyes Haouas | b6ad6b6 | 2022-10-03 11:07:45 +0200 | [diff] [blame] | 5 | #include <southbridge/intel/common/rcba.h> |
6 | |||||
Vladimir Serbinenko | 4aad743 | 2014-11-22 20:36:58 +0100 | [diff] [blame] | 7 | #include "i82801gx.h" |
Nico Huber | 9359f2d | 2013-06-18 22:36:34 +0200 | [diff] [blame] | 8 | |
Arthur Heymans | e27c013 | 2019-11-12 23:34:13 +0100 | [diff] [blame] | 9 | void bootblock_early_southbridge_init(void) |
Sven Schnelle | 49ae971 | 2011-05-03 07:55:30 +0000 | [diff] [blame] | 10 | { |
Angel Pons | cf39f89 | 2020-06-21 18:00:43 +0200 | [diff] [blame] | 11 | enable_spi_prefetching_and_caching(); |
Vladimir Serbinenko | 4aad743 | 2014-11-22 20:36:58 +0100 | [diff] [blame] | 12 | |
Arthur Heymans | e27c013 | 2019-11-12 23:34:13 +0100 | [diff] [blame] | 13 | i82801gx_setup_bars(); |
Vladimir Serbinenko | 4aad743 | 2014-11-22 20:36:58 +0100 | [diff] [blame] | 14 | |
15 | /* Enable upper 128bytes of CMOS */ | ||||
16 | RCBA32(0x3400) = (1 << 2); | ||||
Arthur Heymans | e27c013 | 2019-11-12 23:34:13 +0100 | [diff] [blame] | 17 | |
18 | /* Disable watchdog timer */ | ||||
19 | RCBA32(GCS) = RCBA32(GCS) | 0x20; | ||||
20 | |||||
21 | i82801gx_lpc_setup(); | ||||
Sven Schnelle | 49ae971 | 2011-05-03 07:55:30 +0000 | [diff] [blame] | 22 | } |