blob: e2cbf661ac97b67802f4af249b9b52dd70d8bec5 [file] [log] [blame]
Angel Pons4b429832020-04-02 23:48:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2/* This file is part of the coreboot project. */
Kyösti Mälkki91162702011-11-03 15:22:01 +02003
Kyösti Mälkki717b6e32018-05-17 14:16:03 +03004#include <cbmem.h>
Kyösti Mälkkicd7a70f2019-08-17 20:51:08 +03005#include <arch/romstage.h>
Kyösti Mälkki91162702011-11-03 15:22:01 +02006
Edward O'Callaghan77757c22015-01-04 21:33:39 +11007#include <southbridge/intel/i82801dx/i82801dx.h>
8#include <northbridge/intel/e7505/raminit.h>
Kyösti Mälkki93b4ed92012-04-18 21:13:33 +03009
Kyösti Mälkki157b1892019-08-16 14:02:25 +030010void mainboard_romstage_entry(void)
Kyösti Mälkki91162702011-11-03 15:22:01 +020011{
Kyösti Mälkkid1141ab2020-01-07 11:16:35 +020012 /* Perform some early chipset initialization required
13 * before RAM initialization can work
14 */
15 i82801dx_early_init();
Kyösti Mälkki91162702011-11-03 15:22:01 +020016
Kyösti Mälkkid1141ab2020-01-07 11:16:35 +020017 sdram_initialize();
Kyösti Mälkki717b6e32018-05-17 14:16:03 +030018
19 cbmem_recovery(0);
Kyösti Mälkki91162702011-11-03 15:22:01 +020020}