From 46d05bcc4e22cb85a1820106d17da498cd13fd17 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Mon, 15 Mar 2021 12:26:03 +0800 Subject: [PATCH] mb/google/asurada: fix boot failure when reading SKU ID The SKU IDs also need mapping table when reading voltages. BUG=None BRANCH=asurada TEST=emerge-asurada coreboot Change-Id: Ice91961d6c33cfa27254221663edca1547c9ddcc Signed-off-by: Hung-Te Lin Reviewed-on: https://review.coreboot.org/c/coreboot/+/51491 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Yu-Ping Wu --- src/mainboard/google/asurada/boardid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainboard/google/asurada/boardid.c b/src/mainboard/google/asurada/boardid.c index c026a6b85e..e1b5b9eec8 100644 --- a/src/mainboard/google/asurada/boardid.c +++ b/src/mainboard/google/asurada/boardid.c @@ -40,6 +40,8 @@ static const unsigned int ram_voltages[ADC_LEVELS] = { static const unsigned int *adc_voltages[] = { [RAM_ID_HIGH_CHANNEL] = ram_voltages, [RAM_ID_LOW_CHANNEL] = ram_voltages, + [SKU_ID_HIGH_CHANNEL] = ram_voltages, + [SKU_ID_LOW_CHANNEL] = ram_voltages, }; static uint32_t get_adc_index(unsigned int channel)