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