Park, Aiden | d8f6db4 | 2019-08-03 08:31:11 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2019 Intel Corporation <www.intel.com> |
| 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Simon Glass | 5255932 | 2019-11-14 12:57:46 -0700 | [diff] [blame] | 7 | #include <init.h> |
Park, Aiden | d8f6db4 | 2019-08-03 08:31:11 +0000 | [diff] [blame] | 8 | |
| 9 | int board_early_init_r(void) |
| 10 | { |
| 11 | /* |
| 12 | * Make sure PCI bus is enumerated so that peripherals on the PCI bus |
| 13 | * can be discovered by their drivers. |
| 14 | * |
| 15 | * Slim Bootloader has already done PCI bus enumeration before loading |
| 16 | * U-Boot, so U-Boot needs to preserve PCI configuration. |
| 17 | * Therefore, '# CONFIG_PCI_PNP is not set' is included in defconfig. |
| 18 | */ |
| 19 | pci_init(); |
| 20 | |
| 21 | return 0; |
| 22 | } |