blob: e151b46d8bcb5216bdae83c4227762e22c8a5f96 [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
Angel Pons62371752021-03-27 21:13:44 +01003#ifndef NORTHBRIDGE_INTEL_HASWELL_RAMINIT_H
4#define NORTHBRIDGE_INTEL_HASWELL_RAMINIT_H
Aaron Durbin76c37002012-10-30 09:03:43 -05005
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
Angel Pons62371752021-03-27 21:13:44 +010020#endif /* NORTHBRIDGE_INTEL_HASWELL_RAMINIT_H */