nsim.c 492 B

123456789101112131415161718192021222324252627
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2020 Synopsys, Inc. All rights reserved.
  4. */
  5. #include <common.h>
  6. #include <init.h>
  7. #include <dm/device.h>
  8. #include <virtio_types.h>
  9. #include <virtio.h>
  10. int board_early_init_r(void)
  11. {
  12. /*
  13. * Make sure virtio bus is enumerated so that peripherals
  14. * on the virtio bus can be discovered by their drivers
  15. */
  16. virtio_init();
  17. return 0;
  18. }
  19. int checkboard(void)
  20. {
  21. printf("Board: ARC virtual or prototyping platform\n");
  22. return 0;
  23. };