blob: 0938e026e3447fe223eb766cc7c699324e6e5158 [file] [log] [blame]
Angel Pons9fdd5572022-05-06 21:12:14 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#include <console/console.h>
Angel Pons567ece42022-05-06 21:56:48 +02004#include <northbridge/intel/haswell/haswell.h>
Angel Pons9fdd5572022-05-06 21:12:14 +02005#include <northbridge/intel/haswell/raminit.h>
Angel Pons567ece42022-05-06 21:56:48 +02006#include <types.h>
7
8static bool early_init_native(int s3resume)
9{
10 printk(BIOS_DEBUG, "Starting native platform initialisation\n");
11
12 if (!CONFIG(INTEL_LYNXPOINT_LP))
13 dmi_early_init();
14
15 return false;
16}
Angel Pons9fdd5572022-05-06 21:12:14 +020017
18void perform_raminit(const int s3resume)
19{
20 /*
21 * See, this function's name is a lie. There are more things to
22 * do that memory initialisation, but they are relatively easy.
23 */
Angel Pons567ece42022-05-06 21:56:48 +020024 const bool cpu_replaced = early_init_native(s3resume);
25
26 (void)cpu_replaced;
Angel Pons9fdd5572022-05-06 21:12:14 +020027
28 /** TODO: Implement the required magic **/
29 die("NATIVE RAMINIT: More Magic (tm) required.\n");
30}