From d37b7d89fd362242fd5da11303c7bb18bf78afcf Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Fri, 3 Jul 2020 23:52:34 +0200 Subject: haswell: Add function to retrieve SPD addresses And use it instead of directly writing to the MRC struct. Change-Id: I7f04db29a08512c1a8b2b2300dba71cb3b84a5c5 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/43127 Tested-by: build bot (Jenkins) Reviewed-by: Tristan Corrick --- src/mainboard/google/slippy/romstage.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mainboard/google/slippy') diff --git a/src/mainboard/google/slippy/romstage.c b/src/mainboard/google/slippy/romstage.c index e5719448e4..47bcb477f5 100644 --- a/src/mainboard/google/slippy/romstage.c +++ b/src/mainboard/google/slippy/romstage.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include #include #include #include @@ -40,10 +41,14 @@ void mainboard_config_rcba(void) RCBA16(D23IR) = DIR_ROUTE(PIRQH, PIRQH, PIRQH, PIRQH); /* SDIO */ } +void mb_get_spd_map(uint8_t spd_map[4]) +{ + spd_map[0] = 0xff; + spd_map[2] = 0xff; +} + void mainboard_fill_pei_data(struct pei_data *pei_data) { - pei_data->spd_addresses[0] = 0xff; - pei_data->spd_addresses[2] = 0xff; pei_data->ec_present = 1; pei_data->usb_xhci_on_resume = 1; -- cgit v1.2.3