mb/clevo/kbl-u: Add a seperate method for early GPIOs
Add variant_configure_early_gpios() configuring early GPIOs to make the difference clear. Change-Id: I6e7c8c32963c9eeab4399947dac511442987cb45 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48298 Reviewed-by: Michael Niewöhner <foss@mniewoehner.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		
				
					committed by
					
						
						Michael Niewöhner
					
				
			
			
				
	
			
			
			
						parent
						
							42551478a7
						
					
				
				
					commit
					eb6bde07f0
				
			@@ -5,5 +5,5 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void bootblock_mainboard_early_init(void)
 | 
					void bootblock_mainboard_early_init(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	variant_configure_gpios();
 | 
						variant_configure_early_gpios();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3,6 +3,7 @@
 | 
				
			|||||||
#ifndef VARIANT_GPIO_H
 | 
					#ifndef VARIANT_GPIO_H
 | 
				
			||||||
#define VARIANT_GPIO_H
 | 
					#define VARIANT_GPIO_H
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void variant_configure_early_gpios(void);
 | 
				
			||||||
void variant_configure_gpios(void);
 | 
					void variant_configure_gpios(void);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -11,7 +11,7 @@ static const struct pad_config early_gpio_table[] = {
 | 
				
			|||||||
	_PAD_CFG_STRUCT(GPP_C21,	0x44000700,	0x0)
 | 
						_PAD_CFG_STRUCT(GPP_C21,	0x44000700,	0x0)
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void variant_configure_gpios(void)
 | 
					void variant_configure_early_gpios(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
 | 
						gpio_configure_pads(early_gpio_table, ARRAY_SIZE(early_gpio_table));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user