summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2007-11-08 16:24:51 +0100
committerJuergen Beisert <j.beisert@pengutronix.de>2007-11-08 16:24:51 +0100
commit903d775d32042e666f0266039ad63403e17b5fb9 (patch)
treef5c53fa056da8c8ac540abea32d773461ec14255 /include
parente121848b4ae0d15002e76e25b2f0e1e29862a404 (diff)
downloadbarebox-903d775d32042e666f0266039ad63403e17b5fb9.tar.gz
barebox-903d775d32042e666f0266039ad63403e17b5fb9.tar.xz
adding first clean mx27 only fec driver
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/arch-mpc5200/fec.h14
-rw-r--r--include/fec.h44
2 files changed, 44 insertions, 14 deletions
diff --git a/include/asm-ppc/arch-mpc5200/fec.h b/include/asm-ppc/arch-mpc5200/fec.h
deleted file mode 100644
index a3e04b4e9d..0000000000
--- a/include/asm-ppc/arch-mpc5200/fec.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef __INCLUDE_ASM_ARCH_FEC_H
-#define __INCLUDE_ASM_ARCH_FEC_H
-
-struct mpc5xxx_fec_platform_data {
- ulong xcv_type;
-};
-
-typedef enum {
- SEVENWIRE, /* 7-wire */
- MII10, /* MII 10Mbps */
- MII100 /* MII 100Mbps */
-} xceiver_type;
-
-#endif /* __INCLUDE_ASM_ARCH_FEC_H */
diff --git a/include/fec.h b/include/fec.h
new file mode 100644
index 0000000000..89f0fba2c1
--- /dev/null
+++ b/include/fec.h
@@ -0,0 +1,44 @@
+/*
+ * (C) Copyright 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
+ * (C) Copyright 2007 Pengutronix, Juergen Beisert <j.beisert@pengutronix.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.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+/**
+ * @file
+ * @brief Shared structures and constants between i.MX27's and MPC52xx's FEC
+ */
+#ifndef __INCLUDE_NETWORK_FEC_H
+#define __INCLUDE_NETWORK_FEC_H
+
+/**
+ * Define the phy connected externally
+ */
+struct fec_platform_data {
+ ulong xcv_type;
+};
+
+/**
+ * Supported phy types on this platform
+ */
+typedef enum {
+ SEVENWIRE, /** 7-wire */
+ MII10, /** MII 10Mbps */
+ MII100 /** MII 100Mbps */
+} xceiver_type;
+
+#endif /* __INCLUDE_NETWORK_FEC_H */