blob: 17cfbb6f27a114017eaaad83c65ce8174c599453 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Igor Grinberg3c5dc282014-11-03 11:32:18 +02002/*
3 * (C) Copyright 2014 CompuLab, Ltd. <www.compulab.co.il>
4 *
5 * Authors: Igor Grinberg <grinberg@compulab.co.il>
Igor Grinberg3c5dc282014-11-03 11:32:18 +02006 */
7
8#ifndef _CL_COMMON_
9#define _CL_COMMON_
10
Masahiro Yamada56a931c2016-09-21 11:28:55 +090011#include <linux/errno.h>
Igor Grinberg9c687fd2014-11-03 11:32:19 +020012
Igor Grinberg3c5dc282014-11-03 11:32:18 +020013void cl_print_pcb_info(void);
14
Igor Grinberg9c687fd2014-11-03 11:32:19 +020015#ifdef CONFIG_CMD_USB
16int cl_usb_hub_init(int gpio, const char *label);
17void cl_usb_hub_deinit(int gpio);
18#else /* !CONFIG_CMD_USB */
19static inline int cl_usb_hub_init(int gpio, const char *label)
20{
21 return -ENOSYS;
22}
23static inline void cl_usb_hub_deinit(int gpio) {}
24#endif /* CONFIG_CMD_USB */
25
Igor Grinbergfd6cd352014-11-03 11:32:21 +020026#ifdef CONFIG_SMC911X
27int cl_omap3_smc911x_init(int id, int cs, u32 base_addr,
28 int (*reset)(int), int rst_gpio);
29#else /* !CONFIG_SMC911X */
30static 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
Igor Grinberg3c5dc282014-11-03 11:32:18 +020037#endif /* _CL_COMMON_ */