common.h 579 B

123456789101112131415161718192021222324252627
  1. /*
  2. * (C) Copyright 2014 CompuLab, Ltd. <www.compulab.co.il>
  3. *
  4. * Authors: Igor Grinberg <grinberg@compulab.co.il>
  5. *
  6. * SPDX-License-Identifier: GPL-2.0+
  7. */
  8. #ifndef _CL_COMMON_
  9. #define _CL_COMMON_
  10. #include <asm/errno.h>
  11. void cl_print_pcb_info(void);
  12. #ifdef CONFIG_CMD_USB
  13. int cl_usb_hub_init(int gpio, const char *label);
  14. void cl_usb_hub_deinit(int gpio);
  15. #else /* !CONFIG_CMD_USB */
  16. static inline int cl_usb_hub_init(int gpio, const char *label)
  17. {
  18. return -ENOSYS;
  19. }
  20. static inline void cl_usb_hub_deinit(int gpio) {}
  21. #endif /* CONFIG_CMD_USB */
  22. #endif /* _CL_COMMON_ */