Igor Grinberg | a937fd1 | 2014-11-03 11:32:18 +0200 | [diff] [blame] | 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 | |
Igor Grinberg | 959bc1d | 2014-11-03 11:32:19 +0200 | [diff] [blame] | 12 | #include <asm/errno.h> |
| 13 | |
Igor Grinberg | a937fd1 | 2014-11-03 11:32:18 +0200 | [diff] [blame] | 14 | void cl_print_pcb_info(void); |
| 15 | |
Igor Grinberg | 959bc1d | 2014-11-03 11:32:19 +0200 | [diff] [blame] | 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 | |
Igor Grinberg | f4a40f0 | 2014-11-03 11:32:20 +0200 | [diff] [blame] | 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 | |
Igor Grinberg | 9886c3d | 2014-11-03 11:32:21 +0200 | [diff] [blame] | 36 | #ifdef CONFIG_SMC911X |
| 37 | int cl_omap3_smc911x_init(int id, int cs, u32 base_addr, |
| 38 | int (*reset)(int), int rst_gpio); |
| 39 | #else /* !CONFIG_SMC911X */ |
| 40 | static inline int cl_omap3_smc911x_init(int id, int cs, u32 base_addr, |
| 41 | int (*reset)(int), int rst_gpio) |
| 42 | { |
| 43 | return -ENOSYS; |
| 44 | } |
| 45 | #endif /* CONFIG_SMC911X */ |
| 46 | |
Igor Grinberg | a937fd1 | 2014-11-03 11:32:18 +0200 | [diff] [blame] | 47 | #endif /* _CL_COMMON_ */ |