Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172421
b: refs/heads/master
c: 39986ca
h: refs/heads/master
i:
  172419: 58885ee
v: v3
  • Loading branch information
wanzongshun authored and Russell King committed Dec 1, 2009
1 parent 8d84def commit 2012393
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6aeb4e4a9d3e5c53ebaaeee6bd9cce41a3b8eb09
refs/heads/master: 39986ca6bd8a8584d6bc9a52dcdf4653a905c611
16 changes: 16 additions & 0 deletions trunk/arch/arm/mach-w90x900/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <asm/mach-types.h>

#include <mach/regs-serial.h>
#include <mach/nuc900_spi.h>
#include <mach/map.h>

#include "cpu.h"
Expand Down Expand Up @@ -196,6 +197,18 @@ static struct platform_device nuc900_device_emc = {

/* SPI device */

static struct w90p910_spi_info nuc900_spiflash_data = {
.num_cs = 1,
.lsb = 0,
.txneg = 1,
.rxneg = 0,
.divider = 24,
.sleep = 0,
.txnum = 0,
.txbitlen = 1,
.bus_num = 0,
};

static struct resource nuc900_spi_resource[] = {
[0] = {
.start = W90X900_PA_I2C + SPIOFFSET,
Expand All @@ -214,6 +227,9 @@ static struct platform_device nuc900_device_spi = {
.id = -1,
.num_resources = ARRAY_SIZE(nuc900_spi_resource),
.resource = nuc900_spi_resource,
.dev = {
.platform_data = &nuc900_spiflash_data,
}
};

/* spi device, spi flash info */
Expand Down

0 comments on commit 2012393

Please sign in to comment.