Keith Hui | 11bce20 | 2020-04-17 12:49:49 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | /* This file is part of the coreboot project. */ |
Uwe Hermann | 1a9c892 | 2007-04-01 17:24:03 +0000 | [diff] [blame] | 3 | |
Richard Smith | cb8eab4 | 2006-07-24 04:25:47 +0000 | [diff] [blame] | 4 | #ifndef RAMINIT_H |
| 5 | #define RAMINIT_H |
| 6 | |
Uwe Hermann | 1a9c892 | 2007-04-01 17:24:03 +0000 | [diff] [blame] | 7 | /* The 440BX supports up to four (single- or double-sided) DIMMs. */ |
Stefan Reinauer | 2b01a8a | 2010-05-25 16:00:08 +0000 | [diff] [blame] | 8 | #define DIMM_SOCKETS 4 |
Uwe Hermann | 1a9c892 | 2007-04-01 17:24:03 +0000 | [diff] [blame] | 9 | |
Kyösti Mälkki | 93e08c7 | 2020-01-07 15:17:48 +0200 | [diff] [blame] | 10 | void enable_spd(void); |
| 11 | void disable_spd(void); |
Keith Hui | 0e0fdbe | 2020-04-29 12:47:41 -0400 | [diff] [blame] | 12 | void sdram_initialize(int s3resume); |
Kyösti Mälkki | 7a95575 | 2020-01-07 12:18:24 +0200 | [diff] [blame] | 13 | void mainboard_enable_serial(void); |
Keith Hui | 078e324 | 2017-07-20 21:14:21 -0400 | [diff] [blame] | 14 | |
Stefan Reinauer | 3c0bfaf | 2010-12-27 11:34:57 +0000 | [diff] [blame] | 15 | /* Debug */ |
Julius Werner | cd49cce | 2019-03-05 16:53:33 -0800 | [diff] [blame] | 16 | #if CONFIG(DEBUG_RAM_SETUP) |
Stefan Reinauer | 3c0bfaf | 2010-12-27 11:34:57 +0000 | [diff] [blame] | 17 | void dump_spd_registers(void); |
Martin Roth | 468d02c | 2019-10-23 21:44:42 -0600 | [diff] [blame] | 18 | void dump_pci_device(unsigned int dev); |
Stefan Reinauer | 1c2c750 | 2010-12-27 13:29:38 +0000 | [diff] [blame] | 19 | #else |
| 20 | #define dump_spd_registers() |
| 21 | #endif |
Uwe Hermann | 1a9c892 | 2007-04-01 17:24:03 +0000 | [diff] [blame] | 22 | #endif /* RAMINIT_H */ |