diff options
Diffstat (limited to 'arch/arm/plat-samsung/platformdata.c')
-rw-r--r-- | arch/arm/plat-samsung/platformdata.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/platformdata.c b/arch/arm/plat-samsung/platformdata.c index 7cf2e1e3b20f..6de1a3825927 100644 --- a/arch/arm/plat-samsung/platformdata.c +++ b/arch/arm/plat-samsung/platformdata.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/platform_device.h> | 14 | #include <linux/platform_device.h> |
15 | 15 | ||
16 | #include <plat/devs.h> | 16 | #include <plat/devs.h> |
17 | #include <plat/sdhci.h> | ||
17 | 18 | ||
18 | void __init *s3c_set_platdata(void *pd, size_t pdsize, | 19 | void __init *s3c_set_platdata(void *pd, size_t pdsize, |
19 | struct platform_device *pdev) | 20 | struct platform_device *pdev) |
@@ -35,3 +36,24 @@ void __init *s3c_set_platdata(void *pd, size_t pdsize, | |||
35 | pdev->dev.platform_data = npd; | 36 | pdev->dev.platform_data = npd; |
36 | return npd; | 37 | return npd; |
37 | } | 38 | } |
39 | |||
40 | void s3c_sdhci_set_platdata(struct s3c_sdhci_platdata *pd, | ||
41 | struct s3c_sdhci_platdata *set) | ||
42 | { | ||
43 | set->cd_type = pd->cd_type; | ||
44 | set->ext_cd_init = pd->ext_cd_init; | ||
45 | set->ext_cd_cleanup = pd->ext_cd_cleanup; | ||
46 | set->ext_cd_gpio = pd->ext_cd_gpio; | ||
47 | set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; | ||
48 | |||
49 | if (pd->max_width) | ||
50 | set->max_width = pd->max_width; | ||
51 | if (pd->cfg_gpio) | ||
52 | set->cfg_gpio = pd->cfg_gpio; | ||
53 | if (pd->cfg_card) | ||
54 | set->cfg_card = pd->cfg_card; | ||
55 | if (pd->host_caps) | ||
56 | set->host_caps |= pd->host_caps; | ||
57 | if (pd->clk_type) | ||
58 | set->clk_type = pd->clk_type; | ||
59 | } | ||