summaryrefslogtreecommitdiff
path: root/board/compulab/common/common.h
diff options
context:
space:
mode:
authorIgor Grinberg <grinberg@compulab.co.il>2014-11-03 11:32:21 +0200
committerTom Rini <trini@ti.com>2014-11-06 11:04:40 -0500
commit9886c3d7a803f639b975f63397cc24a3307fa7b6 (patch)
tree93e40e7616019c92dcf116e11fffbb19723d7e59 /board/compulab/common/common.h
parentf4a40f05f504407a036e2beee88ce17930d5d45c (diff)
downloadu-boot-imx-9886c3d7a803f639b975f63397cc24a3307fa7b6.zip
u-boot-imx-9886c3d7a803f639b975f63397cc24a3307fa7b6.tar.gz
u-boot-imx-9886c3d7a803f639b975f63397cc24a3307fa7b6.tar.bz2
omap3: cm-t35: move the SMC911x code
Extract the SMC911x initialization code to a common location where it can be reused by other compulab omap3 based boards. Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'board/compulab/common/common.h')
-rw-r--r--board/compulab/common/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/compulab/common/common.h b/board/compulab/common/common.h
index 7a106d6..68ffb11 100644
--- a/board/compulab/common/common.h
+++ b/board/compulab/common/common.h
@@ -33,4 +33,15 @@ static inline int cl_splash_screen_prepare(int nand_offset)
}
#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_ */