mb/google/auron: Move SPD file handling to chipset
[coreboot.git] / src / mainboard / google / auron / spd.c
blob79a51f89003b1dd3eb3dfd08f2295aeea3f0f202
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <mainboard/google/auron/variant.h>
4 #include <soc/pei_data.h>
5 #include <soc/pei_wrapper.h>
6 #include <string.h>
7 #include <types.h>
9 /* Copy SPD data for on-board memory */
10 void mainboard_fill_spd_data(struct pei_data *pei_data)
12 const unsigned int spd_index = variant_get_spd_index();
14 fill_spd_for_index(pei_data->spd_data[0][0], spd_index);
15 pei_data->spd_addresses[0] = SPD_MEMORY_DOWN;
17 if (variant_is_dual_channel(spd_index)) {
18 memcpy(pei_data->spd_data[1][0], pei_data->spd_data[0][0], SPD_LEN);
19 pei_data->spd_addresses[2] = SPD_MEMORY_DOWN;