summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-09-22 07:12:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-22 16:48:03 +0200
commit7e6b99fd09fa149529bf3397db9707c24826ffa7 (patch)
treed224fecb9feb89bdd683f090716d2487ce1f1845 /include
parent38b3be6f35baaf6f683f762b9111505502f91dbb (diff)
downloadbarebox-7e6b99fd09fa149529bf3397db9707c24826ffa7.tar.gz
barebox-7e6b99fd09fa149529bf3397db9707c24826ffa7.tar.xz
smc91111: add fixup for qemu phy support
as today qemu does not support phy, it will return always 0x0 to any read on the mii bus. So the phy_id is 0 and the link is donw. To have the norwork running on versatilpb & other qenu board for the link up at 100Mbps. Only enable if qemu_fixup is set. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/net/smc91111.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/net/smc91111.h b/include/net/smc91111.h
new file mode 100644
index 0000000000..0b2d49bb19
--- /dev/null
+++ b/include/net/smc91111.h
@@ -0,0 +1,14 @@
+/*
+ * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
+ *
+ * Under GPLv2 only
+ */
+
+#ifndef __SMC91111_H__
+#define __SMC91111_H__
+
+struct smc91c111_pdata {
+ int qemu_fixup;
+};
+
+#endif /* __SMC91111_H__ */