xref: /rk3399_rockchip-uboot/board/compulab/common/common.h (revision f4a40f05f504407a036e2beee88ce17930d5d45c)
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 
9 #ifndef _CL_COMMON_
10 #define _CL_COMMON_
11 
12 #include <asm/errno.h>
13 
14 void cl_print_pcb_info(void);
15 
16 #ifdef CONFIG_CMD_USB
17 int cl_usb_hub_init(int gpio, const char *label);
18 void cl_usb_hub_deinit(int gpio);
19 #else /* !CONFIG_CMD_USB */
20 static inline int cl_usb_hub_init(int gpio, const char *label)
21 {
22 	return -ENOSYS;
23 }
24 static inline void cl_usb_hub_deinit(int gpio) {}
25 #endif /* CONFIG_CMD_USB */
26 
27 #ifdef CONFIG_SPLASH_SCREEN
28 int cl_splash_screen_prepare(int nand_offset);
29 #else /* !CONFIG_SPLASH_SCREEN */
30 static inline int cl_splash_screen_prepare(int nand_offset)
31 {
32 	return -ENOSYS;
33 }
34 #endif /* CONFIG_SPLASH_SCREEN */
35 
36 #endif /* _CL_COMMON_ */
37