From 08a07e6884887096225a0c149bbe445bdfb656b5 Mon Sep 17 00:00:00 2001 From: eric miao Date: Tue, 30 Oct 2007 09:48:41 +0800 Subject: [PATCH] --- yaml --- r: 73437 b: refs/heads/master c: 7c826a0b84f1540d9de54bb0afe4b4520007d791 h: refs/heads/master i: 73435: ab894a38c8f7ef90b61f0e4dac899b682b64a2f3 v: v3 --- [refs] | 2 +- trunk/drivers/net/smc91x.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 49c0303f0936..76032c5b16cc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1e354787283c7ec3065406b4bc634309e5ba1253 +refs/heads/master: 7c826a0b84f1540d9de54bb0afe4b4520007d791 diff --git a/trunk/drivers/net/smc91x.h b/trunk/drivers/net/smc91x.h index 729fd28c08b5..db34e1eb67e9 100644 --- a/trunk/drivers/net/smc91x.h +++ b/trunk/drivers/net/smc91x.h @@ -224,6 +224,21 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg) } } +#elif defined(CONFIG_MACH_ZYLONITE) + +#define SMC_CAN_USE_8BIT 1 +#define SMC_CAN_USE_16BIT 1 +#define SMC_CAN_USE_32BIT 0 +#define SMC_IO_SHIFT 0 +#define SMC_NOWAIT 1 +#define SMC_USE_PXA_DMA 1 +#define SMC_inb(a, r) readb((a) + (r)) +#define SMC_inw(a, r) readw((a) + (r)) +#define SMC_insw(a, r, p, l) insw((a) + (r), p, l) +#define SMC_outsw(a, r, p, l) outsw((a) + (r), p, l) +#define SMC_outb(v, a, r) writeb(v, (a) + (r)) +#define SMC_outw(v, a, r) writew(v, (a) + (r)) + #elif defined(CONFIG_ARCH_OMAP) /* We can only do 16-bit reads and writes in the static memory space. */