diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-09-01 10:52:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-03 09:49:06 +0200 |
commit | fb11747bfeb0227bfbcce667c7e486b0440f78e4 (patch) | |
tree | aff9f924e8cb74b68db7d0e5a3db16042153ea02 /drivers/net/smc911x.h | |
parent | 655dc6b8aa3b1b1340d257a33b6e05569e089f25 (diff) | |
download | barebox-fb11747bfeb0227bfbcce667c7e486b0440f78e4.tar.gz barebox-fb11747bfeb0227bfbcce667c7e486b0440f78e4.tar.xz |
smc911x: improve detection handle
detect if the bus is swapped and report a 32bit drivers is used on a 16bit bus
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/smc911x.h')
-rw-r--r-- | drivers/net/smc911x.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/smc911x.h b/drivers/net/smc911x.h index baf359848c..d409247e6f 100644 --- a/drivers/net/smc911x.h +++ b/drivers/net/smc911x.h @@ -26,6 +26,8 @@ * of the Lan911x memory space */ +#define WORD_SWAP 0x98 + #define RX_DATA_FIFO 0x00 #define TX_DATA_FIFO 0x20 |