diff options
author | Richard Röjfors <richard.rojfors@pelagicore.com> | 2010-09-15 10:49:24 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-10-28 18:29:36 -0400 |
commit | 6901ffd97d3d820c608dd579dd908ac77128efef (patch) | |
tree | 6e217f2ae356090806022e08fec2cd3eb51b8368 /drivers/mfd | |
parent | 208c4343192c052048ddf096d8e189162e5ee219 (diff) |
mfd: Use DMA for timberdale's ks8842
This patch defines platform data for the ks8842 int the timberdale
MFD.
The platform data contains DMA channels to be used by the driver.
Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/timberdale.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/mfd/timberdale.c b/drivers/mfd/timberdale.c index ac5995026c88..727f62c15a60 100644 --- a/drivers/mfd/timberdale.c +++ b/drivers/mfd/timberdale.c | |||
@@ -43,6 +43,8 @@ | |||
43 | 43 | ||
44 | #include <linux/timb_dma.h> | 44 | #include <linux/timb_dma.h> |
45 | 45 | ||
46 | #include <linux/ks8842.h> | ||
47 | |||
46 | #include "timberdale.h" | 48 | #include "timberdale.h" |
47 | 49 | ||
48 | #define DRIVER_NAME "timberdale" | 50 | #define DRIVER_NAME "timberdale" |
@@ -161,6 +163,12 @@ static const __devinitconst struct resource timberdale_spi_resources[] = { | |||
161 | }, | 163 | }, |
162 | }; | 164 | }; |
163 | 165 | ||
166 | static __devinitdata struct ks8842_platform_data | ||
167 | timberdale_ks8842_platform_data = { | ||
168 | .rx_dma_channel = DMA_ETH_RX, | ||
169 | .tx_dma_channel = DMA_ETH_TX | ||
170 | }; | ||
171 | |||
164 | static const __devinitconst struct resource timberdale_eth_resources[] = { | 172 | static const __devinitconst struct resource timberdale_eth_resources[] = { |
165 | { | 173 | { |
166 | .start = ETHOFFSET, | 174 | .start = ETHOFFSET, |
@@ -389,6 +397,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg0[] = { | |||
389 | .name = "ks8842", | 397 | .name = "ks8842", |
390 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), | 398 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), |
391 | .resources = timberdale_eth_resources, | 399 | .resources = timberdale_eth_resources, |
400 | .platform_data = &timberdale_ks8842_platform_data, | ||
401 | .data_size = sizeof(timberdale_ks8842_platform_data) | ||
392 | }, | 402 | }, |
393 | }; | 403 | }; |
394 | 404 | ||
@@ -447,6 +457,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg1[] = { | |||
447 | .name = "ks8842", | 457 | .name = "ks8842", |
448 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), | 458 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), |
449 | .resources = timberdale_eth_resources, | 459 | .resources = timberdale_eth_resources, |
460 | .platform_data = &timberdale_ks8842_platform_data, | ||
461 | .data_size = sizeof(timberdale_ks8842_platform_data) | ||
450 | }, | 462 | }, |
451 | }; | 463 | }; |
452 | 464 | ||
@@ -538,6 +550,8 @@ static __devinitdata struct mfd_cell timberdale_cells_bar0_cfg3[] = { | |||
538 | .name = "ks8842", | 550 | .name = "ks8842", |
539 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), | 551 | .num_resources = ARRAY_SIZE(timberdale_eth_resources), |
540 | .resources = timberdale_eth_resources, | 552 | .resources = timberdale_eth_resources, |
553 | .platform_data = &timberdale_ks8842_platform_data, | ||
554 | .data_size = sizeof(timberdale_ks8842_platform_data) | ||
541 | }, | 555 | }, |
542 | }; | 556 | }; |
543 | 557 | ||