diff options
author | David Brown <davidb@quicinc.com> | 2010-03-05 04:12:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-05 16:56:40 -0500 |
commit | 4b79a1aedcb9dd6e3f27b970dcb553aefcd97254 (patch) | |
tree | 742bc28fc2457f3d1ca319f379c4f87367b3ab86 /drivers/net | |
parent | a3a858ff18a72a8d388e31ab0d98f7e944841a62 (diff) |
net: smc91x: Support Qualcomm MSM development boards.
Signed-off-by: David Brown <davidb@quicinc.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/smc91x.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h index 54799544bda3..a6ee883d1b0e 100644 --- a/drivers/net/smc91x.h +++ b/drivers/net/smc91x.h | |||
@@ -330,6 +330,20 @@ static inline void LPD7_SMC_outsw (unsigned char* a, int r, | |||
330 | 330 | ||
331 | #include <unit/smc91111.h> | 331 | #include <unit/smc91111.h> |
332 | 332 | ||
333 | #elif defined(CONFIG_ARCH_MSM) | ||
334 | |||
335 | #define SMC_CAN_USE_8BIT 0 | ||
336 | #define SMC_CAN_USE_16BIT 1 | ||
337 | #define SMC_CAN_USE_32BIT 0 | ||
338 | #define SMC_NOWAIT 1 | ||
339 | |||
340 | #define SMC_inw(a, r) readw((a) + (r)) | ||
341 | #define SMC_outw(v, a, r) writew(v, (a) + (r)) | ||
342 | #define SMC_insw(a, r, p, l) readsw((a) + (r), p, l) | ||
343 | #define SMC_outsw(a, r, p, l) writesw((a) + (r), p, l) | ||
344 | |||
345 | #define SMC_IRQ_FLAGS IRQF_TRIGGER_HIGH | ||
346 | |||
333 | #else | 347 | #else |
334 | 348 | ||
335 | /* | 349 | /* |