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 | d0f971f | 2021-03-12 14:20:05 +0100 | [diff] [blame] | 6 | #include <types.h> |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 7 | |
Angel Pons | 90ae089 | 2021-03-12 17:00:52 +0100 | [diff] [blame] | 8 | #define SPD_MEMORY_DOWN 0xff |
9 | |||||
10 | struct spd_info { | ||||
11 | uint8_t addresses[4]; | ||||
12 | unsigned int spd_index; | ||||
13 | }; | ||||
14 | |||||
Angel Pons | c4ee714 | 2021-03-12 20:48:53 +0100 | [diff] [blame] | 15 | /* Mainboard callback to fill in the SPD addresses */ |
Angel Pons | 90ae089 | 2021-03-12 17:00:52 +0100 | [diff] [blame] | 16 | void mb_get_spd_map(struct spd_info *spdi); |
Angel Pons | d37b7d8 | 2020-07-03 23:52:34 +0200 | [diff] [blame] | 17 | |
Angel Pons | d99b693 | 2021-03-12 17:37:42 +0100 | [diff] [blame] | 18 | void perform_raminit(const int s3resume); |
Aaron Durbin | 76c3700 | 2012-10-30 09:03:43 -0500 | [diff] [blame] | 19 | |
20 | #endif /* RAMINIT_H */ |