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:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user