blob: 4ce5bdcfda7c6499bd8f71c4b8f1ba1473b4d5c8 [file] [log] [blame]
Kyösti Mälkki91162702011-11-03 15:22:01 +02001/*
2 * This file is part of the coreboot project.
3 *
Kyösti Mälkki91162702011-11-03 15:22:01 +02004 *
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; version 2 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
Kyösti Mälkki91162702011-11-03 15:22:01 +020013 */
14
Kyösti Mälkki717b6e32018-05-17 14:16:03 +030015#include <cbmem.h>
Kyösti Mälkkicd7a70f2019-08-17 20:51:08 +030016#include <arch/romstage.h>
Kyösti Mälkki91162702011-11-03 15:22:01 +020017
Edward O'Callaghan77757c22015-01-04 21:33:39 +110018#include <southbridge/intel/i82801dx/i82801dx.h>
19#include <northbridge/intel/e7505/raminit.h>
Kyösti Mälkki93b4ed92012-04-18 21:13:33 +030020
Kyösti Mälkki157b1892019-08-16 14:02:25 +030021void mainboard_romstage_entry(void)
Kyösti Mälkki91162702011-11-03 15:22:01 +020022{
Kyösti Mälkkid1141ab2020-01-07 11:16:35 +020023 /* Perform some early chipset initialization required
24 * before RAM initialization can work
25 */
26 i82801dx_early_init();
Kyösti Mälkki91162702011-11-03 15:22:01 +020027
Kyösti Mälkkid1141ab2020-01-07 11:16:35 +020028 sdram_initialize();
Kyösti Mälkki717b6e32018-05-17 14:16:03 +030029
30 cbmem_recovery(0);
Kyösti Mälkki91162702011-11-03 15:22:01 +020031}