summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2015-01-31 14:10:08 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-02-04 12:52:43 +0100
commitd6f8016ce7bc877a19c95d92e2ce1786aed78e8d (patch)
tree99af83a5f6f3b2468ef6e487570c38893a4b9e85 /include
parent3155f5df4d908d9d2cac56720297fcf2e9a4a0c1 (diff)
downloadbarebox-d6f8016ce7bc877a19c95d92e2ce1786aed78e8d.tar.gz
barebox-d6f8016ce7bc877a19c95d92e2ce1786aed78e8d.tar.xz
net: smc1111: add 16 bits accessors, allow address shift
Smc network IPs can be wired up in different funny ways. For example the lubbock pxa25x development platform wires all address lines shifted by 2, ie. bus A2 is smc91c96 A0, bus A3 is smc91c96 A1 etc ... In order to cope with the different possible combination, add a shift parameter for addresses. By default, the old behaviour using the 32 bit accesses is kept. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/net/smc91111.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/smc91111.h b/include/net/smc91111.h
index 0b2d49bb19..5191c85079 100644
--- a/include/net/smc91111.h
+++ b/include/net/smc91111.h
@@ -9,6 +9,8 @@
struct smc91c111_pdata {
int qemu_fixup;
+ int addr_shift;
+ int bus_width;
};
#endif /* __SMC91111_H__ */