Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Igor Grinberg | a937fd1 | 2014-11-03 11:32:18 +0200 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2014 CompuLab, Ltd. <www.compulab.co.il> |
| 4 | * |
| 5 | * Authors: Igor Grinberg <grinberg@compulab.co.il> |
Igor Grinberg | a937fd1 | 2014-11-03 11:32:18 +0200 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _CL_COMMON_ |
| 9 | #define _CL_COMMON_ |
| 10 | |
Masahiro Yamada | 1221ce4 | 2016-09-21 11:28:55 +0900 | [diff] [blame] | 11 | #include <linux/errno.h> |
Igor Grinberg | 959bc1d | 2014-11-03 11:32:19 +0200 | [diff] [blame] | 12 | |
Igor Grinberg | a937fd1 | 2014-11-03 11:32:18 +0200 | [diff] [blame] | 13 | void cl_print_pcb_info(void); |
| 14 | |
Igor Grinberg | 959bc1d | 2014-11-03 11:32:19 +0200 | [diff] [blame] | 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 | |
Igor Grinberg | 9886c3d | 2014-11-03 11:32:21 +0200 | [diff] [blame] | 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 | |
Igor Grinberg | a937fd1 | 2014-11-03 11:32:18 +0200 | [diff] [blame] | 37 | #endif /* _CL_COMMON_ */ |