Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105176
b: refs/heads/master
c: 3aed74c
h: refs/heads/master
v: v3
  • Loading branch information
Eric Miao authored and Russell King committed Jul 12, 2008
1 parent 3bbbf53 commit 5fcdb6d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 52256c0e06e4a4df67134b951a21b50c713a9588
refs/heads/master: 3aed74cdea09831db04bd0bdfc2f377f731c1879
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-pxa/lubbock.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <linux/interrupt.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/smc91x.h>

#include <linux/spi/spi.h>
#include <linux/spi/ads7846.h>
Expand Down Expand Up @@ -284,11 +285,18 @@ static struct resource smc91x_resources[] = {
},
};

static struct smc91x_platdata lubbock_smc91x_info = {
.flags = SMC91X_USE_16BIT | SMC91X_NOWAIT | SMC91X_IO_SHIFT_2,
};

static struct platform_device smc91x_device = {
.name = "smc91x",
.id = -1,
.num_resources = ARRAY_SIZE(smc91x_resources),
.resource = smc91x_resources,
.dev = {
.platform_data = &lubbock_smc91x_info,
},
};

static struct resource flash_resources[] = {
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/net/smc91x.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
#define SMC_CAN_USE_32BIT 0
#define SMC_NOWAIT 1

/* The first two address lines aren't connected... */
#define SMC_IO_SHIFT 2
#define SMC_IO_SHIFT (lp->io_shift)

#define SMC_inw(a, r) readw((a) + (r))
#define SMC_outw(v, a, r) writew(v, (a) + (r))
Expand Down

0 comments on commit 5fcdb6d

Please sign in to comment.