summaryrefslogtreecommitdiff
path: root/src/mainboard/google/glados/romstage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/glados/romstage.c')
-rw-r--r--src/mainboard/google/glados/romstage.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/glados/romstage.c b/src/mainboard/google/glados/romstage.c
index 72f15f99c3..07f0ff0aca 100644
--- a/src/mainboard/google/glados/romstage.c
+++ b/src/mainboard/google/glados/romstage.c
@@ -17,13 +17,24 @@
#include <string.h>
#include <ec/google/chromeec/ec.h>
+#include <gpio.h>
#include <soc/pei_data.h>
#include <soc/pei_wrapper.h>
#include <soc/romstage.h>
#include "spd/spd.h"
+#include <variant/gpio.h>
void mainboard_romstage_entry(struct romstage_params *params)
{
+ /* Get SPD index */
+ gpio_t spd_gpios[] = {
+ GPIO_MEM_CONFIG_0,
+ GPIO_MEM_CONFIG_1,
+ GPIO_MEM_CONFIG_2,
+ GPIO_MEM_CONFIG_3,
+ };
+ params->pei_data->mem_cfg_id =
+ gpio_base2_value(spd_gpios, ARRAY_SIZE(spd_gpios));
/* Fill out PEI DATA */
mainboard_fill_pei_data(params->pei_data);
mainboard_fill_spd_data(params->pei_data);