Uwe Hermann | 1a9c892 | 2007-04-01 17:24:03 +0000 | [diff] [blame] | 1 | /* |
Stefan Reinauer | 7e61e45 | 2008-01-18 10:35:56 +0000 | [diff] [blame] | 2 | * This file is part of the coreboot project. |
Uwe Hermann | 1a9c892 | 2007-04-01 17:24:03 +0000 | [diff] [blame] | 3 | * |
| 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 Smith | cb8eab4 | 2006-07-24 04:25:47 +0000 | [diff] [blame] | 21 | #ifndef RAMINIT_H |
| 22 | #define RAMINIT_H |
| 23 | |
Uwe Hermann | 1a9c892 | 2007-04-01 17:24:03 +0000 | [diff] [blame] | 24 | /* The 440BX supports up to four (single- or double-sided) DIMMs. */ |
Stefan Reinauer | 2b01a8a | 2010-05-25 16:00:08 +0000 | [diff] [blame] | 25 | #define DIMM_SOCKETS 4 |
Uwe Hermann | 1a9c892 | 2007-04-01 17:24:03 +0000 | [diff] [blame] | 26 | |
Uwe Hermann | 115c5b9 | 2010-10-09 17:00:18 +0000 | [diff] [blame] | 27 | /* Function prototypes. */ |
| 28 | int spd_read_byte(unsigned int device, unsigned int address); |
| 29 | void sdram_set_registers(void); |
| 30 | void sdram_set_spd_registers(void); |
| 31 | void sdram_enable(void); |
Stefan Reinauer | 3c0bfaf | 2010-12-27 11:34:57 +0000 | [diff] [blame] | 32 | /* Debug */ |
Stefan Reinauer | 1c2c750 | 2010-12-27 13:29:38 +0000 | [diff] [blame] | 33 | #if CONFIG_DEBUG_RAM_SETUP |
Stefan Reinauer | 3c0bfaf | 2010-12-27 11:34:57 +0000 | [diff] [blame] | 34 | void dump_spd_registers(void); |
| 35 | void dump_pci_device(unsigned dev); |
Stefan Reinauer | 1c2c750 | 2010-12-27 13:29:38 +0000 | [diff] [blame] | 36 | #else |
| 37 | #define dump_spd_registers() |
| 38 | #endif |
Uwe Hermann | 1a9c892 | 2007-04-01 17:24:03 +0000 | [diff] [blame] | 39 | #endif /* RAMINIT_H */ |