aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlessandro Rubini <rubini@gnudd.com>2011-02-26 00:55:41 +0100
committerLinus WALLEIJ <linus.walleij@stericsson.com>2011-03-03 08:15:04 +0100
commitd6ab884f5ead344e3cf2f7ec335cb3ec23b31d87 (patch)
treeb278db665bd993232711c4105f4bf6e29ba336f4 /include
parentfc59a77fb519db2b669ddf3bc9c14f5ed2aff65a (diff)
smsc911x: use shifted register access
At least one of the boards using this chip needs a shift in register access. This adds a "shift" field in the platform data to have the chip working in all cases without special ifdef. The approach is similaro to the one used in serial_8250 and other places. Performance-wise no difference is reported. ST-Ericsson ID: 326552 Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Change-Id: Id9a90c9e058c477abd46d3ddc8e879f06bda144f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17297 Tested-by: Henrik ABERG <henrik.aberg@stericsson.com> Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/smsc911x.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/smsc911x.h b/include/linux/smsc911x.h
index 7144e8aa1e4..cff97bc3728 100644
--- a/include/linux/smsc911x.h
+++ b/include/linux/smsc911x.h
@@ -29,6 +29,7 @@ struct smsc911x_platform_config {
unsigned int irq_polarity;
unsigned int irq_type;
unsigned int flags;
+ unsigned int shift; /* for register access */
phy_interface_t phy_interface;
unsigned char mac[6];
};