diff options
| -rw-r--r-- | arch/arm/mach-w90x900/dev.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-w90x900/dev.c b/arch/arm/mach-w90x900/dev.c index 2a6f98de48d2..51f17b753348 100644 --- a/arch/arm/mach-w90x900/dev.c +++ b/arch/arm/mach-w90x900/dev.c | |||
| @@ -32,6 +32,7 @@ | |||
| 32 | #include <asm/mach-types.h> | 32 | #include <asm/mach-types.h> |
| 33 | 33 | ||
| 34 | #include <mach/regs-serial.h> | 34 | #include <mach/regs-serial.h> |
| 35 | #include <mach/nuc900_spi.h> | ||
| 35 | #include <mach/map.h> | 36 | #include <mach/map.h> |
| 36 | 37 | ||
| 37 | #include "cpu.h" | 38 | #include "cpu.h" |
| @@ -196,6 +197,18 @@ static struct platform_device nuc900_device_emc = { | |||
| 196 | 197 | ||
| 197 | /* SPI device */ | 198 | /* SPI device */ |
| 198 | 199 | ||
| 200 | static struct w90p910_spi_info nuc900_spiflash_data = { | ||
| 201 | .num_cs = 1, | ||
| 202 | .lsb = 0, | ||
| 203 | .txneg = 1, | ||
| 204 | .rxneg = 0, | ||
| 205 | .divider = 24, | ||
| 206 | .sleep = 0, | ||
| 207 | .txnum = 0, | ||
| 208 | .txbitlen = 1, | ||
| 209 | .bus_num = 0, | ||
| 210 | }; | ||
| 211 | |||
| 199 | static struct resource nuc900_spi_resource[] = { | 212 | static struct resource nuc900_spi_resource[] = { |
| 200 | [0] = { | 213 | [0] = { |
| 201 | .start = W90X900_PA_I2C + SPIOFFSET, | 214 | .start = W90X900_PA_I2C + SPIOFFSET, |
| @@ -214,6 +227,9 @@ static struct platform_device nuc900_device_spi = { | |||
| 214 | .id = -1, | 227 | .id = -1, |
| 215 | .num_resources = ARRAY_SIZE(nuc900_spi_resource), | 228 | .num_resources = ARRAY_SIZE(nuc900_spi_resource), |
| 216 | .resource = nuc900_spi_resource, | 229 | .resource = nuc900_spi_resource, |
| 230 | .dev = { | ||
| 231 | .platform_data = &nuc900_spiflash_data, | ||
| 232 | } | ||
| 217 | }; | 233 | }; |
| 218 | 234 | ||
| 219 | /* spi device, spi flash info */ | 235 | /* spi device, spi flash info */ |
