blob: 534bc447a34ab0419b6c9cb89e96567bb3a90a77 [file] [log] [blame]
Keith Hui11bce202020-04-17 12:49:49 -04001/* SPDX-License-Identifier: GPL-2.0-or-later */
2/* This file is part of the coreboot project. */
Uwe Hermann1a9c8922007-04-01 17:24:03 +00003
Richard Smithcb8eab42006-07-24 04:25:47 +00004#ifndef RAMINIT_H
5#define RAMINIT_H
6
Uwe Hermann1a9c8922007-04-01 17:24:03 +00007/* The 440BX supports up to four (single- or double-sided) DIMMs. */
Stefan Reinauer2b01a8a2010-05-25 16:00:08 +00008#define DIMM_SOCKETS 4
Uwe Hermann1a9c8922007-04-01 17:24:03 +00009
Kyösti Mälkki93e08c72020-01-07 15:17:48 +020010void enable_spd(void);
11void disable_spd(void);
Keith Hui078e3242017-07-20 21:14:21 -040012void sdram_initialize(void);
Kyösti Mälkki7a955752020-01-07 12:18:24 +020013void mainboard_enable_serial(void);
Keith Hui078e3242017-07-20 21:14:21 -040014
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000015/* Debug */
Julius Wernercd49cce2019-03-05 16:53:33 -080016#if CONFIG(DEBUG_RAM_SETUP)
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000017void dump_spd_registers(void);
Martin Roth468d02c2019-10-23 21:44:42 -060018void dump_pci_device(unsigned int dev);
Stefan Reinauer1c2c7502010-12-27 13:29:38 +000019#else
20#define dump_spd_registers()
21#endif
Uwe Hermann1a9c8922007-04-01 17:24:03 +000022#endif /* RAMINIT_H */