diff options
author | Nick Vaccaro <nvaccaro@google.com> | 2020-08-05 14:50:40 -0700 |
---|---|---|
committer | Nick Vaccaro <nvaccaro@google.com> | 2020-08-06 17:42:31 +0000 |
commit | ce25b947e0dbecf38b51789b5a54e09fe5f77a78 (patch) | |
tree | 7758acec1ea3f9d29260d417030791f8a702306b /src/mainboard/google/volteer/variants/terrador/memory.c | |
parent | 0cc63ccaa26c21d02025f3b1c31f2fc4e8adc697 (diff) | |
download | coreboot-ce25b947e0dbecf38b51789b5a54e09fe5f77a78.tar.xz |
mb/google/volteer: add support for ddr4 memory
Add new ddr_memory_cfg structure to support both DDR4 and LPDDR4x
memory types.
Change existing variant code to use the new meminit_ddr() call
instead of calling meminit_lpddr4x() directly.
BUG=b:161772961
TEST='emerge-volteer coreboot chromeos-bootimage' and verify that
volteer still boots. NOTE that this only tests the lpddr4 side
of the implementation as I do not have a DDR4 board to test this on.
Change-Id: Id4bca2bfa97530f0d04a0e8d90f01b8281d2aea6
Signed-off-by: Nick Vaccaro <nvaccaro@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/44250
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Caveh Jalali <caveh@chromium.org>
Diffstat (limited to 'src/mainboard/google/volteer/variants/terrador/memory.c')
-rw-r--r-- | src/mainboard/google/volteer/variants/terrador/memory.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mainboard/google/volteer/variants/terrador/memory.c b/src/mainboard/google/volteer/variants/terrador/memory.c index 773e88561d..7d95658891 100644 --- a/src/mainboard/google/volteer/variants/terrador/memory.c +++ b/src/mainboard/google/volteer/variants/terrador/memory.c @@ -54,7 +54,12 @@ static const struct lpddr4x_cfg terrador_memcfg = { .ect = 1, /* Enable Early Command Training */ }; -const struct lpddr4x_cfg *variant_memory_params(void) +static const struct ddr_memory_cfg board_memcfg = { + .mem_type = MEMTYPE_LPDDR4X, + .lpddr4_cfg = &terrador_memcfg +}; + +const struct ddr_memory_cfg *variant_memory_params(void) { - return &terrador_memcfg; + return &board_memcfg; } |