summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2021-03-15 12:26:03 +0800
committerHung-Te Lin <hungte@chromium.org>2021-03-16 03:48:27 +0000
commit46d05bcc4e22cb85a1820106d17da498cd13fd17 (patch)
treead8c88094c273b93dbb641be715ae22ef123d5eb /src/mainboard
parent00b490dd59cd7d688808fd9322c7f30e50a887f4 (diff)
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 <hungte@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51491 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/asurada/boardid.c2
1 files changed, 2 insertions, 0 deletions
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)