blob: 5483229f3bca2739d349d59b15997004a7a02f2f [file] [log] [blame]
Angel Pons4b429832020-04-02 23:48:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Aaron Durbin76c37002012-10-30 09:03:43 -05002
3#ifndef RAMINIT_H
4#define RAMINIT_H
5
Angel Ponsd0f971f2021-03-12 14:20:05 +01006#include <types.h>
Aaron Durbin76c37002012-10-30 09:03:43 -05007
Angel Pons90ae0892021-03-12 17:00:52 +01008#define SPD_MEMORY_DOWN 0xff
9
10struct spd_info {
11 uint8_t addresses[4];
12 unsigned int spd_index;
13};
14
Angel Ponsc4ee7142021-03-12 20:48:53 +010015/* Mainboard callback to fill in the SPD addresses */
Angel Pons90ae0892021-03-12 17:00:52 +010016void mb_get_spd_map(struct spd_info *spdi);
Angel Ponsd37b7d82020-07-03 23:52:34 +020017
Angel Ponsd99b6932021-03-12 17:37:42 +010018void perform_raminit(const int s3resume);
Aaron Durbin76c37002012-10-30 09:03:43 -050019
20#endif /* RAMINIT_H */