blob: 1bd5ab6e0f794bdb28e32043c5872540dc5a81a1 [file] [log] [blame]
Keith Hui11bce202020-04-17 12:49:49 -04001/* SPDX-License-Identifier: GPL-2.0-or-later */
Uwe Hermann1a9c8922007-04-01 17:24:03 +00002
Richard Smithcb8eab42006-07-24 04:25:47 +00003#ifndef RAMINIT_H
4#define RAMINIT_H
5
Uwe Hermann1a9c8922007-04-01 17:24:03 +00006/* The 440BX supports up to four (single- or double-sided) DIMMs. */
Stefan Reinauer2b01a8a2010-05-25 16:00:08 +00007#define DIMM_SOCKETS 4
Uwe Hermann1a9c8922007-04-01 17:24:03 +00008
Kyösti Mälkki93e08c72020-01-07 15:17:48 +02009void enable_spd(void);
10void disable_spd(void);
Keith Hui0e0fdbe2020-04-29 12:47:41 -040011void sdram_initialize(int s3resume);
Keith Hui078e3242017-07-20 21:14:21 -040012
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000013/* Debug */
Julius Wernercd49cce2019-03-05 16:53:33 -080014#if CONFIG(DEBUG_RAM_SETUP)
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000015void dump_spd_registers(void);
Martin Roth468d02c2019-10-23 21:44:42 -060016void dump_pci_device(unsigned int dev);
Stefan Reinauer1c2c7502010-12-27 13:29:38 +000017#else
18#define dump_spd_registers()
19#endif
Uwe Hermann1a9c8922007-04-01 17:24:03 +000020#endif /* RAMINIT_H */