blob: b35554f2e4263d3901c2a81be752e155cde9cd3c [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
Angel Pons69e3fde2021-04-02 19:27:30 +02009/* DIMM SPD addresses */
10#define DIMM0 0x50
11#define DIMM1 0x51
12#define DIMM2 0x52
13#define DIMM3 0x53
14
Kyösti Mälkki93e08c72020-01-07 15:17:48 +020015void enable_spd(void);
Keith Hui0e0fdbe2020-04-29 12:47:41 -040016void sdram_initialize(int s3resume);
Keith Hui078e3242017-07-20 21:14:21 -040017
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000018/* Debug */
Julius Wernercd49cce2019-03-05 16:53:33 -080019#if CONFIG(DEBUG_RAM_SETUP)
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000020void dump_spd_registers(void);
Martin Roth468d02c2019-10-23 21:44:42 -060021void dump_pci_device(unsigned int dev);
Stefan Reinauer1c2c7502010-12-27 13:29:38 +000022#else
23#define dump_spd_registers()
24#endif
Uwe Hermann1a9c8922007-04-01 17:24:03 +000025#endif /* RAMINIT_H */