mt8516_pumpkin.c 490 B

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2019 BayLibre SAS
  4. */
  5. #include <common.h>
  6. #include <dm.h>
  7. #include <net.h>
  8. int board_init(void)
  9. {
  10. return 0;
  11. }
  12. int board_late_init(void)
  13. {
  14. struct udevice *dev;
  15. int ret;
  16. if (CONFIG_IS_ENABLED(USB_GADGET)) {
  17. ret = uclass_get_device(UCLASS_USB_GADGET_GENERIC, 0, &dev);
  18. if (ret) {
  19. pr_err("%s: Cannot find USB device\n", __func__);
  20. return ret;
  21. }
  22. }
  23. if (CONFIG_IS_ENABLED(USB_ETHER))
  24. usb_ether_init();
  25. return 0;
  26. }