Skip to contentSkip to conversation

net: smc91x: Support Qualcomm MSM development boards.

PATCH Daniel Walker 3 participants 7 messages Mar 5, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

From: David Brown <[email protected]>

---
 drivers/net/smc91x.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
drivers/net/smc91x.h +14 -0
index 5479954..a6ee883 100644
@@ -330,6 +330,20 @@ static inline void LPD7_SMC_outsw (unsigned char* a, int r,
 
 #include <unit/smc91111.h>
 
+#elif defined(CONFIG_ARCH_MSM)
+
+#define SMC_CAN_USE_8BIT	0
+#define SMC_CAN_USE_16BIT	1
+#define SMC_CAN_USE_32BIT	0
+#define SMC_NOWAIT		1
+
+#define SMC_inw(a, r)		readw((a) + (r))
+#define SMC_outw(v, a, r)	writew(v, (a) + (r))
+#define SMC_insw(a, r, p, l)	readsw((a) + (r), p, l)
+#define SMC_outsw(a, r, p, l)	writesw((a) + (r), p, l)
+
+#define SMC_IRQ_FLAGS		IRQF_TRIGGER_HIGH
+
 #else
 
 /*
Signature · 1 line
1.6.3.3
Acked-by
#1 lore raw
Quoted 4 lines · Daniel Walker

From: David Brown <[email protected]>

Quoted 34 lines
---
 drivers/net/smc91x.h |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
drivers/net/smc91x.h +14 -0
index 5479954..a6ee883 100644
@@ -330,6 +330,20 @@ static inline void LPD7_SMC_outsw (unsigned char* a, int r,
 
 #include <unit/smc91111.h>
 
+#elif defined(CONFIG_ARCH_MSM)
+
+#define SMC_CAN_USE_8BIT	0
+#define SMC_CAN_USE_16BIT	1
+#define SMC_CAN_USE_32BIT	0
+#define SMC_NOWAIT		1
+
+#define SMC_inw(a, r)		readw((a) + (r))
+#define SMC_outw(v, a, r)	writew(v, (a) + (r))
+#define SMC_insw(a, r, p, l)	readsw((a) + (r), p, l)
+#define SMC_outsw(a, r, p, l)	writesw((a) + (r), p, l)
+
+#define SMC_IRQ_FLAGS		IRQF_TRIGGER_HIGH
+
 #else
 
 /*
Signature · 1 line
1.6.3.3
maintainer
#3 lore raw

From: Daniel Walker <[email protected]>
Date: Fri, 05 Mar 2010 12:05:07 -0800

Quoted 5 lines · Nicolas Pitre
Quoted 4 lines · Daniel Walker
Quoted 3 lines

From: David Brown <[email protected]>

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Are you going to send it up stream, or should I?

By virtue of having been properly posted to netdev it's in patchwork and therefore I'll integrate it.

#4 lore raw
Quoted 11 lines · David Miller

From: Daniel Walker <[email protected]>
Date: Fri, 05 Mar 2010 12:05:07 -0800

Quoted 8 lines · Nicolas Pitre
Quoted 7 lines · Daniel Walker
Quoted 5 lines

From: David Brown <[email protected]>

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Are you going to send it up stream, or should I?

By virtue of having been properly posted to netdev it's in patchwork and therefore I'll integrate it.

Well I didn't add [PATCH] to the subject , but I guess that doesn't matter..

Ok.. Thanks.

Daniel

#5 lore raw
In reply to David Miller
Quoted 11 lines · David Miller

From: Daniel Walker <[email protected]>
Date: Fri, 05 Mar 2010 12:05:07 -0800

Quoted 8 lines · Nicolas Pitre
Quoted 7 lines · Daniel Walker
Quoted 5 lines

From: David Brown <[email protected]>

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Are you going to send it up stream, or should I?

By virtue of having been properly posted to netdev it's in patchwork and therefore I'll integrate it.

Good.

Nicolas