mb/google/auron: Refactor memory-down SPD handling
commit19f1e9104a5ae08d031b108a9640bf0f61f61b79
authorAngel Pons <th3fanbus@gmail.com>
Wed, 23 Jun 2021 11:55:56 +0000 (23 13:55 +0200)
committerFelix Held <felix-coreboot@felixheld.de>
Fri, 27 Aug 2021 16:03:32 +0000 (27 16:03 +0000)
treeacd363b8be339593845f2c2b76a06a86daeea85a
parent3533808a6dbe335fa76bc82869fb6e9719b250ab
mb/google/auron: Refactor memory-down SPD handling

Variants only need to provide the SPD index and whether said index
corresponds to a dual-channel configuration, which can be achieved
without using `pei_data`. Add two functions that return the values
and use them in `spd.c` at mainboard level.

Change-Id: I9bc4527057d4a771883c8cc60da2501516d6fb94
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55803
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
src/mainboard/google/auron/spd.c
src/mainboard/google/auron/variant.h
src/mainboard/google/auron/variants/auron_paine/spd/spd.c
src/mainboard/google/auron/variants/auron_yuna/spd/spd.c
src/mainboard/google/auron/variants/gandof/spd/spd.c
src/mainboard/google/auron/variants/lulu/spd/spd.c
src/mainboard/google/auron/variants/samus/spd/spd.c