summaryrefslogtreecommitdiffstats
path: root/include/platform_data
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-12 10:18:40 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-15 08:44:42 +0200
commita45ab7100cdc386fa9d372960c7016635b20cca0 (patch)
treee46a30279a35264643843723bdfda673aee1bc4b /include/platform_data
parent044058fe907d5f9d383ef0c96a2be3e7716f7f12 (diff)
downloadbarebox-a45ab7100cdc386fa9d372960c7016635b20cca0.tar.gz
barebox-a45ab7100cdc386fa9d372960c7016635b20cca0.tar.xz
include: Move smc911x eth platform_data to include/platform_data
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/platform_data')
-rw-r--r--include/platform_data/eth-smc911x.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/platform_data/eth-smc911x.h b/include/platform_data/eth-smc911x.h
new file mode 100644
index 0000000000..4a802ee52c
--- /dev/null
+++ b/include/platform_data/eth-smc911x.h
@@ -0,0 +1,24 @@
+/*
+ * (C) Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+ *
+ * Under GPLv2
+ */
+
+#ifndef __SMC911X_PLATFORM_H_
+#define __SMC911X_PLATFORM_H_
+
+/**
+ * @brief Platform dependent feature:
+ * Pass pointer to this structure as part of device_d -> platform_data
+ */
+struct smc911x_plat {
+ int shift;
+ unsigned int flags;
+ unsigned int phy_mask; /* external PHY only: mask out PHYs,
+ e.g. ~(1 << 5) to use PHY addr 5 */
+};
+
+#define SMC911X_FORCE_INTERNAL_PHY 0x01
+#define SMC911X_FORCE_EXTERNAL_PHY 0x02
+
+#endif /* __SMC911X_PLATFORM_H_ */