summaryrefslogtreecommitdiff
path: root/board/compulab/common/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/compulab/common/common.h')
-rw-r--r--board/compulab/common/common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/compulab/common/common.h b/board/compulab/common/common.h
index 316ee4c6cd..ffe1ef8174 100644
--- a/board/compulab/common/common.h
+++ b/board/compulab/common/common.h
@@ -9,6 +9,19 @@
#ifndef _CL_COMMON_
#define _CL_COMMON_
+#include <asm/errno.h>
+
void cl_print_pcb_info(void);
+#ifdef CONFIG_CMD_USB
+int cl_usb_hub_init(int gpio, const char *label);
+void cl_usb_hub_deinit(int gpio);
+#else /* !CONFIG_CMD_USB */
+static inline int cl_usb_hub_init(int gpio, const char *label)
+{
+ return -ENOSYS;
+}
+static inline void cl_usb_hub_deinit(int gpio) {}
+#endif /* CONFIG_CMD_USB */
+
#endif /* _CL_COMMON_ */