DORMANTno replies

[PATCH] smc91x: Add MigoR board support

From: Magnus Damm <magnus.damm@gmail.com>
Date: 2008-02-08 09:54:08
Also in: linux-sh

This patch adds MigoR board support to the smc91x driver.

Signed-off-by: Magnus Damm <redacted>
---

 drivers/net/smc91x.h |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
--- 0001/drivers/net/smc91x.h
+++ work/drivers/net/smc91x.h	2008-02-06 23:13:55.000000000 +0900
@@ -306,6 +306,20 @@ SMC_outw(u16 val, void __iomem *ioaddr, 
 #define SMC_insw(a, r, p, l)   insw((a) + (r), p, l)
 #define SMC_outsw(a, r, p, l)  outsw((a) + (r), p, l)
 
+#elif defined(CONFIG_SH_MIGOR)
+
+#define SMC_IRQ_FLAGS		(-1)
+#define SMC_CAN_USE_8BIT	0
+#define SMC_CAN_USE_16BIT	1
+#define SMC_CAN_USE_32BIT	0
+#define SMC_IO_SHIFT		0
+#define SMC_NOWAIT		1
+
+#define SMC_inw(a, r)		inw((a) + (r))
+#define SMC_outw(v, a, r)	outw(v, (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)
+
 #else /* BOARDS */
 
 #define SMC_CAN_USE_8BIT       1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help