1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 /* 3 * (C) Copyright 2014 CompuLab, Ltd. <www.compulab.co.il> 4 * 5 * Authors: Igor Grinberg <grinberg@compulab.co.il> 6 */ 7 8 #ifndef _CL_COMMON_ 9 #define _CL_COMMON_ 10 11 #include <linux/errno.h> 12 13 void cl_print_pcb_info(void); 14 15 #ifdef CONFIG_CMD_USB 16 int cl_usb_hub_init(int gpio, const char *label); 17 void cl_usb_hub_deinit(int gpio); 18 #else /* !CONFIG_CMD_USB */ 19 static inline int cl_usb_hub_init(int gpio, const char *label) 20 { 21 return -ENOSYS; 22 } 23 static inline void cl_usb_hub_deinit(int gpio) {} 24 #endif /* CONFIG_CMD_USB */ 25 26 #ifdef CONFIG_SMC911X 27 int cl_omap3_smc911x_init(int id, int cs, u32 base_addr, 28 int (*reset)(int), int rst_gpio); 29 #else /* !CONFIG_SMC911X */ 30 static inline int cl_omap3_smc911x_init(int id, int cs, u32 base_addr, 31 int (*reset)(int), int rst_gpio) 32 { 33 return -ENOSYS; 34 } 35 #endif /* CONFIG_SMC911X */ 36 37 #endif /* _CL_COMMON_ */ 38