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>
This commit is contained in:
parent
00b490dd59
commit
46d05bcc4e
|
@ -40,6 +40,8 @@ static const unsigned int ram_voltages[ADC_LEVELS] = {
|
||||||
static const unsigned int *adc_voltages[] = {
|
static const unsigned int *adc_voltages[] = {
|
||||||
[RAM_ID_HIGH_CHANNEL] = ram_voltages,
|
[RAM_ID_HIGH_CHANNEL] = ram_voltages,
|
||||||
[RAM_ID_LOW_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)
|
static uint32_t get_adc_index(unsigned int channel)
|
||||||
|
|
Loading…
Reference in New Issue