aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/dev-hsmmc2.c
diff options
context:
space:
mode:
authorJeongbae Seo <jeongbae.seo@samsung.com>2010-10-08 05:03:27 -0400
committerKukjin Kim <kgene.kim@samsung.com>2010-10-25 03:02:47 -0400
commit28c80aa707156d83f679442ea745db301316a4ea (patch)
tree18dcca97a9da9973cf698feb79c05f1e1a3eb212 /arch/arm/plat-samsung/dev-hsmmc2.c
parent40fcd5b9bf27a8ea78df434a92f3d87533a13fc4 (diff)
ARM: SAMSUNG: Add clock types into platform data
This patch adds clock types into platform data to support external clock divider instead of internal clock divider. It is defined that what kinds of clock type is used in machine. Signed-off-by: Jeongbae Seo <jeongbae.seo@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung/dev-hsmmc2.c')
-rw-r--r--arch/arm/plat-samsung/dev-hsmmc2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/dev-hsmmc2.c b/arch/arm/plat-samsung/dev-hsmmc2.c
index df9e36b54c0d..f60aedba417c 100644
--- a/arch/arm/plat-samsung/dev-hsmmc2.c
+++ b/arch/arm/plat-samsung/dev-hsmmc2.c
@@ -42,6 +42,7 @@ struct s3c_sdhci_platdata s3c_hsmmc2_def_platdata = {
42 .max_width = 4, 42 .max_width = 4,
43 .host_caps = (MMC_CAP_4_BIT_DATA | 43 .host_caps = (MMC_CAP_4_BIT_DATA |
44 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED), 44 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED),
45 .clk_type = S3C_SDHCI_CLK_DIV_INTERNAL,
45}; 46};
46 47
47struct platform_device s3c_device_hsmmc2 = { 48struct platform_device s3c_device_hsmmc2 = {
@@ -74,4 +75,6 @@ void s3c_sdhci2_set_platdata(struct s3c_sdhci_platdata *pd)
74 set->cfg_card = pd->cfg_card; 75 set->cfg_card = pd->cfg_card;
75 if (pd->host_caps) 76 if (pd->host_caps)
76 set->host_caps |= pd->host_caps; 77 set->host_caps |= pd->host_caps;
78 if (pd->clk_type)
79 set->clk_type = pd->clk_type;
77} 80}