Debian Codegraph @

src/northbridge/intel/haswell/raminit_shared.c

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