Skip to content

Commit

Permalink
net: smc91x: Support Qualcomm MSM development boards.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Brown authored and David S. Miller committed Mar 5, 2010
1 parent a3a858f commit 4b79a1a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions drivers/net/smc91x.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down

0 comments on commit 4b79a1a

Please sign in to comment.