diff options
author | Julius Werner <jwerner@chromium.org> | 2016-08-19 16:35:22 -0700 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2016-08-27 01:16:47 +0200 |
commit | 329031fdedb332f75b2d3ce6c165bb62d9631600 (patch) | |
tree | 5fde66e307d9f66e2fe949f09741863aa71b2faa /src/mainboard/google/gru/sdram_params/Makefile.inc | |
parent | 3c814b2e2b8e053da352f4746a4914fb43af09d7 (diff) |
gru: Make SDRAM parameters individual struct files in CBFS
This patch changes Gru SDRAM parameters from structures that just get
compiled into the romstage to individual CBFS files. This allows us to
only load the parameter set we need for the board we're booting from
flash, which reduces our boot time and the SRAM memory footprint
required to hold the romstage.
TEST=Booted Kevin.
Change-Id: Ie88a515cbdb19a794ca0a230a56bcc82bed1e550
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/16274
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/google/gru/sdram_params/Makefile.inc')
-rw-r--r-- | src/mainboard/google/gru/sdram_params/Makefile.inc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/mainboard/google/gru/sdram_params/Makefile.inc b/src/mainboard/google/gru/sdram_params/Makefile.inc new file mode 100644 index 0000000000..a05cf79159 --- /dev/null +++ b/src/mainboard/google/gru/sdram_params/Makefile.inc @@ -0,0 +1,30 @@ +## +## This file is part of the coreboot project. +## +## Copyright 2016 Rockchip Inc. +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; version 2 of the License. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## + +sdram-params := + +sdram-params += sdram-lpddr3-hynix-4GB-200 +sdram-params += sdram-lpddr3-hynix-4GB-666 +sdram-params += sdram-lpddr3-hynix-4GB-666-no-odt +sdram-params += sdram-lpddr3-hynix-4GB-800 +sdram-params += sdram-lpddr3-hynix-4GB-800-no-odt +sdram-params += sdram-lpddr3-hynix-4GB-933 + +$(foreach params,$(sdram-params), \ + $(eval cbfs-files-y += $(params)) \ + $(eval $(params)-file := $(params).c:struct) \ + $(eval $(params)-type := struct) \ + $(eval $(params)-compression := $(CBFS_COMPRESS_FLAG)) \ +) |