summaryrefslogtreecommitdiff
path: root/board/keymile/common/common.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2008-11-21 08:29:40 +0100
committerWolfgang Denk <wd@denx.de>2009-01-24 00:39:06 +0100
commit210c8c00aad3328145204adab434bb7d70b06b75 (patch)
treee54366427b6e170c4c1a77bc5a24f3bef03a1354 /board/keymile/common/common.h
parentde0443614af4d16675ab436665aeb11ddc9f7214 (diff)
downloadu-boot-imx-210c8c00aad3328145204adab434bb7d70b06b75.zip
u-boot-imx-210c8c00aad3328145204adab434bb7d70b06b75.tar.gz
u-boot-imx-210c8c00aad3328145204adab434bb7d70b06b75.tar.bz2
powerpc: keymile: Add a check for the PIGGY debug board
Check the presence of the PIGGY on the keymile boards mgcoge, mgsuvd and kmeter1. If the PIGGY is not present, dont register this Ethernet device. Signed-off-by: Heiko Schocher <hs@denx.de> Acked-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'board/keymile/common/common.h')
-rw-r--r--board/keymile/common/common.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/board/keymile/common/common.h b/board/keymile/common/common.h
new file mode 100644
index 0000000..d3d6814
--- /dev/null
+++ b/board/keymile/common/common.h
@@ -0,0 +1,20 @@
+/*
+ * (C) Copyright 2008
+ * Heiko Schocher, DENX Software Engineering, hs@denx.de.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ */
+
+#ifndef __KEYMILE_COMMON_H
+#define __KEYMILE_COMMON_H
+
+int ethernet_present (void);
+int ivm_read_eeprom (void);
+
+#ifdef CONFIG_KEYMILE_HDLC_ENET
+int keymile_hdlc_enet_initialize (bd_t *bis);
+#endif
+#endif /* __KEYMILE_COMMON_H */