summaryrefslogtreecommitdiff
path: root/board/intel/slimbootloader/slimbootloader.c
blob: f50eeb823f6926e1ce85bc815b7b2af301d77e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2019 Intel Corporation <www.intel.com>
 */

#include <common.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;
}