mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 20:18:18 +00:00 
			
		
		
		
	As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			504 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			504 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright (C) 2019 Intel Corporation <www.intel.com>
 | |
|  */
 | |
| 
 | |
| #include <init.h>
 | |
| 
 | |
| int board_early_init_r(void)
 | |
| {
 | |
| 	/*
 | |
| 	 * Make sure PCI bus is enumerated so that peripherals on the PCI bus
 | |
| 	 * can be discovered by their drivers.
 | |
| 	 *
 | |
| 	 * Slim Bootloader has already done PCI bus enumeration before loading
 | |
| 	 * U-Boot, so U-Boot needs to preserve PCI configuration.
 | |
| 	 * Therefore, '# CONFIG_PCI_PNP is not set' is included in defconfig.
 | |
| 	 */
 | |
| 	pci_init();
 | |
| 
 | |
| 	return 0;
 | |
| }
 |