Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 2 | |
| 3 | #ifndef RAMINIT_H |
| 4 | #define RAMINIT_H |
| 5 | |
Angel Pons | d37b7d8 | 2020-07-03 23:52:34 +0200 | [diff] [blame] | 6 | #include <stdint.h> |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 7 | #include "pei_data.h" |
| 8 | |
Angel Pons | 6eea191 | 2020-07-03 14:14:30 +0200 | [diff] [blame] | 9 | /* Optional function to copy SPD data for on-board memory */ |
| 10 | void copy_spd(struct pei_data *peid); |
| 11 | |
Angel Pons | d37b7d8 | 2020-07-03 23:52:34 +0200 | [diff] [blame] | 12 | /* Mainboard callback to fill in the SPD addresses in MRC format */ |
| 13 | void mb_get_spd_map(uint8_t spd_map[4]); |
| 14 | |
Angel Pons | 45f448f | 2020-07-03 14:46:47 +0200 | [diff] [blame] | 15 | /* Necessary function to initialize pei_data with mainboard-specific settings */ |
| 16 | void mainboard_fill_pei_data(struct pei_data *pei_data); |
| 17 | |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 18 | void sdram_initialize(struct pei_data *pei_data); |
Matt DeVillier | 5aaa8ce | 2016-09-02 13:29:17 -0500 | [diff] [blame] | 19 | void setup_sdram_meminfo(struct pei_data *pei_data); |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 20 | int fixup_haswell_errata(void); |
Aaron Durbin | 2ad1dba | 2013-02-07 00:51:18 -0600 | [diff] [blame] | 21 | /* save_mrc_data() must be called after cbmem has been initialized. */ |
| 22 | void save_mrc_data(struct pei_data *pei_data); |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 23 | |
| 24 | #endif /* RAMINIT_H */ |