blob: a1ab4c3e59e34f179234db2d5f059455b506f773 [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 *
4 * Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
Richard Smithcb8eab42006-07-24 04:25:47 +000021#ifndef RAMINIT_H
22#define RAMINIT_H
23
Uwe Hermann1a9c8922007-04-01 17:24:03 +000024/* The 440BX supports up to four (single- or double-sided) DIMMs. */
Stefan Reinauer2b01a8a2010-05-25 16:00:08 +000025#define DIMM_SOCKETS 4
Uwe Hermann1a9c8922007-04-01 17:24:03 +000026
Uwe Hermann115c5b92010-10-09 17:00:18 +000027/* Function prototypes. */
28int spd_read_byte(unsigned int device, unsigned int address);
29void sdram_set_registers(void);
30void sdram_set_spd_registers(void);
31void sdram_enable(void);
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000032/* Debug */
Stefan Reinauer1c2c7502010-12-27 13:29:38 +000033#if CONFIG_DEBUG_RAM_SETUP
Stefan Reinauer3c0bfaf2010-12-27 11:34:57 +000034void dump_spd_registers(void);
35void dump_pci_device(unsigned dev);
Stefan Reinauer1c2c7502010-12-27 13:29:38 +000036#else
37#define dump_spd_registers()
38#endif
Uwe Hermann1a9c8922007-04-01 17:24:03 +000039#endif /* RAMINIT_H */