diff options
author | Tom Rini <trini@ti.com> | 2014-11-07 16:18:35 -0500 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-07 16:18:35 -0500 |
commit | cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94 (patch) | |
tree | 13740fe096447814d65871bc9c15bbac26b0e854 /board/compulab/common/common.h | |
parent | 11ada9225a16ed2d8ddbf0715a2416245a777cbc (diff) | |
parent | 40bbd52a79bdf2175a2e44272bead2bc194a3293 (diff) | |
download | u-boot-imx-cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94.zip u-boot-imx-cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94.tar.gz u-boot-imx-cfa1bd0774eafcba4791bad4d66f01b8f0dc6f94.tar.bz2 |
Merge git://git.denx.de/u-boot-ti
Diffstat (limited to 'board/compulab/common/common.h')
-rw-r--r-- | board/compulab/common/common.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/board/compulab/common/common.h b/board/compulab/common/common.h new file mode 100644 index 0000000..68ffb11 --- /dev/null +++ b/board/compulab/common/common.h @@ -0,0 +1,47 @@ +/* + * (C) Copyright 2014 CompuLab, Ltd. <www.compulab.co.il> + * + * Authors: Igor Grinberg <grinberg@compulab.co.il> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef _CL_COMMON_ +#define _CL_COMMON_ + +#include <asm/errno.h> + +void cl_print_pcb_info(void); + +#ifdef CONFIG_CMD_USB +int cl_usb_hub_init(int gpio, const char *label); +void cl_usb_hub_deinit(int gpio); +#else /* !CONFIG_CMD_USB */ +static inline int cl_usb_hub_init(int gpio, const char *label) +{ + return -ENOSYS; +} +static inline void cl_usb_hub_deinit(int gpio) {} +#endif /* CONFIG_CMD_USB */ + +#ifdef CONFIG_SPLASH_SCREEN +int cl_splash_screen_prepare(int nand_offset); +#else /* !CONFIG_SPLASH_SCREEN */ +static inline int cl_splash_screen_prepare(int nand_offset) +{ + return -ENOSYS; +} +#endif /* CONFIG_SPLASH_SCREEN */ + +#ifdef CONFIG_SMC911X +int cl_omap3_smc911x_init(int id, int cs, u32 base_addr, + int (*reset)(int), int rst_gpio); +#else /* !CONFIG_SMC911X */ +static inline int cl_omap3_smc911x_init(int id, int cs, u32 base_addr, + int (*reset)(int), int rst_gpio) +{ + return -ENOSYS; +} +#endif /* CONFIG_SMC911X */ + +#endif /* _CL_COMMON_ */ |