aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/system.h
diff options
context:
space:
mode:
authorJohn Linn <john.linn@xilinx.com>2010-04-06 07:43:28 -0400
committerDavid S. Miller <davem@davemloft.net>2010-04-06 22:50:19 -0400
commit459569145516f7967b916c57445feb02c600668c (patch)
tree421c7eb8f9888d0c9b4e7eabc29f654e69fa035a /arch/microblaze/include/asm/system.h
parent3a7f8681ffb27bcc540fb74cda15e39c9395737b (diff)
Add non-Virtex5 support for LL TEMAC driver
This patch adds support for using the LL TEMAC Ethernet driver on non-Virtex 5 platforms by adding support for accessing the Soft DMA registers as if they were memory mapped instead of solely through the DCR's (available on the Virtex 5). The patch also updates the driver so that it runs on the MicroBlaze. The changes were tested on the PowerPC 440, PowerPC 405, and the MicroBlaze platforms. Signed-off-by: John Tyner <jtyner@cs.ucr.edu> Signed-off-by: John Linn <john.linn@xilinx.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/microblaze/include/asm/system.h')
-rw-r--r--arch/microblaze/include/asm/system.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/system.h b/arch/microblaze/include/asm/system.h
index 157970688b2a..88fc92cdd8ce 100644
--- a/arch/microblaze/include/asm/system.h
+++ b/arch/microblaze/include/asm/system.h
@@ -12,6 +12,7 @@
12#include <asm/registers.h> 12#include <asm/registers.h>
13#include <asm/setup.h> 13#include <asm/setup.h>
14#include <asm/irqflags.h> 14#include <asm/irqflags.h>
15#include <asm/cache.h>
15 16
16#include <asm-generic/cmpxchg.h> 17#include <asm-generic/cmpxchg.h>
17#include <asm-generic/cmpxchg-local.h> 18#include <asm-generic/cmpxchg-local.h>
@@ -93,4 +94,14 @@ extern struct dentry *of_debugfs_root;
93 94
94#define arch_align_stack(x) (x) 95#define arch_align_stack(x) (x)
95 96
97/*
98 * MicroBlaze doesn't handle unaligned accesses in hardware.
99 *
100 * Based on this we force the IP header alignment in network drivers.
101 * We also modify NET_SKB_PAD to be a cacheline in size, thus maintaining
102 * cacheline alignment of buffers.
103 */
104#define NET_IP_ALIGN 2
105#define NET_SKB_PAD L1_CACHE_BYTES
106
96#endif /* _ASM_MICROBLAZE_SYSTEM_H */ 107#endif /* _ASM_MICROBLAZE_SYSTEM_H */