blob: 7a106d6a24ed1aa38b00b53595084d9107002965 [file] [log] [blame]
Igor Grinberga937fd12014-11-03 11:32:18 +02001/*
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 Grinberg959bc1d2014-11-03 11:32:19 +020012#include <asm/errno.h>
13
Igor Grinberga937fd12014-11-03 11:32:18 +020014void cl_print_pcb_info(void);
15
Igor Grinberg959bc1d2014-11-03 11:32:19 +020016#ifdef CONFIG_CMD_USB
17int cl_usb_hub_init(int gpio, const char *label);
18void cl_usb_hub_deinit(int gpio);
19#else /* !CONFIG_CMD_USB */
20static inline int cl_usb_hub_init(int gpio, const char *label)
21{
22 return -ENOSYS;
23}
24static inline void cl_usb_hub_deinit(int gpio) {}
25#endif /* CONFIG_CMD_USB */
26
Igor Grinbergf4a40f02014-11-03 11:32:20 +020027#ifdef CONFIG_SPLASH_SCREEN
28int cl_splash_screen_prepare(int nand_offset);
29#else /* !CONFIG_SPLASH_SCREEN */
30static inline int cl_splash_screen_prepare(int nand_offset)
31{
32 return -ENOSYS;
33}
34#endif /* CONFIG_SPLASH_SCREEN */
35
Igor Grinberga937fd12014-11-03 11:32:18 +020036#endif /* _CL_COMMON_ */