blob: 90fe1145cccd4275f665cb2d5eec688b9f58a2f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <string.h>
#include "chip.h"
#include "raminit.h"
void get_spd_info(struct spd_info *spdi, const struct northbridge_intel_haswell_config *cfg)
{
if (CONFIG(HAVE_SPD_IN_CBFS)) {
/* With memory down: from mainboard code */
mb_get_spd_map(spdi);
} else {
/* Without memory down: from devicetree */
memcpy(spdi->addresses, cfg->spd_addresses, ARRAY_SIZE(spdi->addresses));
}
}
|