mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	pinctrl: qcom: sdm845: add special pin names
Adjust sdm845_get_pin_name() to return the correct names for the special pins. This fixes a non-fatal -ENOSYS error when probing MMC. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
This commit is contained in:
		
							parent
							
								
									6a0b9d887e
								
							
						
					
					
						commit
						4d9f8112c3
					
				@ -66,7 +66,18 @@ static const char *sdm845_get_function_name(struct udevice *dev,
 | 
			
		||||
static const char *sdm845_get_pin_name(struct udevice *dev,
 | 
			
		||||
					unsigned int selector)
 | 
			
		||||
{
 | 
			
		||||
	snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector);
 | 
			
		||||
	static const char *special_pins_names[] = {
 | 
			
		||||
		"ufs_reset",
 | 
			
		||||
		"sdc2_clk",
 | 
			
		||||
		"sdc2_cmd",
 | 
			
		||||
		"sdc2_data",
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	if (selector >= 150 && selector <= 154)
 | 
			
		||||
		snprintf(pin_name, MAX_PIN_NAME_LEN, special_pins_names[selector - 150]);
 | 
			
		||||
	else
 | 
			
		||||
		snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector);
 | 
			
		||||
 | 
			
		||||
	return pin_name;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user