blob: 0e9917fd5391985826a7c7c080d76a21c9efbde8 [file] [log] [blame]
Aaron Durbine065bb42016-05-10 15:09:44 -05001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2016 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
Aaron Durbind94967d2016-09-02 19:53:46 -050016#include <baseboard/variants.h>
Aaron Durbine065bb42016-05-10 15:09:44 -050017#include <soc/meminit.h>
18#include <soc/romstage.h>
Ravi Sarawadi986c6582016-08-18 13:34:18 -070019
Brandon Breitensteinc31ba0e2016-07-27 17:34:45 -070020void mainboard_memory_init_params(FSPM_UPD *memupd)
Ravi Sarawadi986c6582016-08-18 13:34:18 -070021{
Aaron Durbind94967d2016-09-02 19:53:46 -050022 meminit_lpddr4_by_sku(&memupd->FspmConfig,
23 variant_lpddr4_config(), variant_memory_sku());
Aaron Durbine065bb42016-05-10 15:09:44 -050024}
Ravi Sarawadi986c6582016-08-18 13:34:18 -070025
26void mainboard_save_dimm_info(void)
27{
Aaron Durbind94967d2016-09-02 19:53:46 -050028 save_lpddr4_dimm_info(variant_lpddr4_config(), variant_memory_sku());
Ravi Sarawadi986c6582016-08-18 13:34:18 -070029}