blob: dcc800713fc159a6b4a1facb9d887dd02ee80bb5 [file] [log] [blame]
Uwe Hermann1a9c8922007-04-01 17:24:03 +00001/*
Stefan Reinauer7e61e452008-01-18 10:35:56 +00002 * This file is part of the coreboot project.
Uwe Hermann1a9c8922007-04-01 17:24:03 +00003 *
Uwe Hermann1a9c8922007-04-01 17:24:03 +00004 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Uwe Hermann1a9c8922007-04-01 17:24:03 +000014 */
15
Richard Smithcb8eab42006-07-24 04:25:47 +000016#ifndef RAMINIT_H
17#define RAMINIT_H
18
Uwe Hermann1a9c8922007-04-01 17:24:03 +000019/* The 440BX supports up to four (single- or double-sided) DIMMs. */
Stefan Reinauer2b01a8a2010-05-25 16:00:08 +000020#define DIMM_SOCKETS 4
Uwe Hermann1a9c8922007-04-01 17:24:03 +000021
Kyösti Mälkki93e08c72020-01-07 15:17:48 +020022void enable_spd(void);
23void disable_spd(void);
Keith Hui078e3242017-07-20 21:14:21 -040024void sdram_initialize(void);
Kyösti Mälkki7a955752020-01-07 12:18:24 +020025void mainboard_enable_serial(void);
Keith Hui078e3242017-07-20 21:14:21 -040026
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000027/* Debug */
Julius Wernercd49cce2019-03-05 16:53:33 -080028#if CONFIG(DEBUG_RAM_SETUP)
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000029void dump_spd_registers(void);
Martin Roth468d02c2019-10-23 21:44:42 -060030void dump_pci_device(unsigned int dev);
Stefan Reinauer1c2c7502010-12-27 13:29:38 +000031#else
32#define dump_spd_registers()
33#endif
Uwe Hermann1a9c8922007-04-01 17:24:03 +000034#endif /* RAMINIT_H */