diff options
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 | ||