mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 00:48:52 +09:00
![Simon Glass](/assets/img/avatar_default.png)
A number of board function belong in init.h with the others. Move them. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
23 lines
524 B
C
23 lines
524 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2019 Intel Corporation <www.intel.com>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#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;
|
|
}
|