Angel Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <console/console.h> |
Angel Pons | 567ece4 | 2022-05-06 21:56:48 +0200 | [diff] [blame^] | 4 | #include <northbridge/intel/haswell/haswell.h> |
Angel Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 5 | #include <northbridge/intel/haswell/raminit.h> |
Angel Pons | 567ece4 | 2022-05-06 21:56:48 +0200 | [diff] [blame^] | 6 | #include <types.h> |
| 7 | |
| 8 | static 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 Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 17 | |
| 18 | void 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 Pons | 567ece4 | 2022-05-06 21:56:48 +0200 | [diff] [blame^] | 24 | const bool cpu_replaced = early_init_native(s3resume); |
| 25 | |
| 26 | (void)cpu_replaced; |
Angel Pons | 9fdd557 | 2022-05-06 21:12:14 +0200 | [diff] [blame] | 27 | |
| 28 | /** TODO: Implement the required magic **/ |
| 29 | die("NATIVE RAMINIT: More Magic (tm) required.\n"); |
| 30 | } |