slimbootloader.c 524 B

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