slimbootloader.c 506 B

123456789101112131415161718192021
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2019 Intel Corporation <www.intel.com>
  4. */
  5. #include <common.h>
  6. int board_early_init_r(void)
  7. {
  8. /*
  9. * Make sure PCI bus is enumerated so that peripherals on the PCI bus
  10. * can be discovered by their drivers.
  11. *
  12. * Slim Bootloader has already done PCI bus enumeration before loading
  13. * U-Boot, so U-Boot needs to preserve PCI configuration.
  14. * Therefore, '# CONFIG_PCI_PNP is not set' is included in defconfig.
  15. */
  16. pci_init();
  17. return 0;
  18. }