aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung
diff options
context:
space:
mode:
authorThomas Abraham <thomas.abraham@linaro.org>2012-04-14 11:12:04 -0400
committerKukjin Kim <kgene.kim@samsung.com>2012-04-21 11:24:56 -0400
commit81d413554a020ebe4f1f761cc5c417a306687511 (patch)
treeb37b66efa170c472abb06990f1ac433588a712ac /arch/arm/plat-samsung
parente816b57a337ea3b755de72bec38c10c864f23015 (diff)
ARM: SAMSUNG: remove all uses of clk_type member in sdhci platform data
The sdhci driver is modified to be independent of clk_type member in the sdhci platform data. Hence, all usage of clk_type in platform code is removed. Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org> [kgene.kim@samsung.com: re-worked on top of v3.4-rc2] Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r--arch/arm/plat-samsung/devs.c4
-rw-r--r--arch/arm/plat-samsung/include/plat/sdhci.h7
-rw-r--r--arch/arm/plat-samsung/platformdata.c2
3 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c
index 8b928f9bc1c3..db32ec5a7eb7 100644
--- a/arch/arm/plat-samsung/devs.c
+++ b/arch/arm/plat-samsung/devs.c
@@ -370,7 +370,6 @@ struct s3c_sdhci_platdata s3c_hsmmc0_def_platdata = {
370 .max_width = 4, 370 .max_width = 4,
371 .host_caps = (MMC_CAP_4_BIT_DATA | 371 .host_caps = (MMC_CAP_4_BIT_DATA |
372 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED), 372 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED),
373 .clk_type = S3C_SDHCI_CLK_DIV_INTERNAL,
374}; 373};
375 374
376struct platform_device s3c_device_hsmmc0 = { 375struct platform_device s3c_device_hsmmc0 = {
@@ -401,7 +400,6 @@ struct s3c_sdhci_platdata s3c_hsmmc1_def_platdata = {
401 .max_width = 4, 400 .max_width = 4,
402 .host_caps = (MMC_CAP_4_BIT_DATA | 401 .host_caps = (MMC_CAP_4_BIT_DATA |
403 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED), 402 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED),
404 .clk_type = S3C_SDHCI_CLK_DIV_INTERNAL,
405}; 403};
406 404
407struct platform_device s3c_device_hsmmc1 = { 405struct platform_device s3c_device_hsmmc1 = {
@@ -434,7 +432,6 @@ struct s3c_sdhci_platdata s3c_hsmmc2_def_platdata = {
434 .max_width = 4, 432 .max_width = 4,
435 .host_caps = (MMC_CAP_4_BIT_DATA | 433 .host_caps = (MMC_CAP_4_BIT_DATA |
436 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED), 434 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED),
437 .clk_type = S3C_SDHCI_CLK_DIV_INTERNAL,
438}; 435};
439 436
440struct platform_device s3c_device_hsmmc2 = { 437struct platform_device s3c_device_hsmmc2 = {
@@ -465,7 +462,6 @@ struct s3c_sdhci_platdata s3c_hsmmc3_def_platdata = {
465 .max_width = 4, 462 .max_width = 4,
466 .host_caps = (MMC_CAP_4_BIT_DATA | 463 .host_caps = (MMC_CAP_4_BIT_DATA |
467 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED), 464 MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED),
468 .clk_type = S3C_SDHCI_CLK_DIV_INTERNAL,
469}; 465};
470 466
471struct platform_device s3c_device_hsmmc3 = { 467struct platform_device s3c_device_hsmmc3 = {
diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h b/arch/arm/plat-samsung/include/plat/sdhci.h
index 317e246ffc56..2c25686204a6 100644
--- a/arch/arm/plat-samsung/include/plat/sdhci.h
+++ b/arch/arm/plat-samsung/include/plat/sdhci.h
@@ -31,18 +31,12 @@ enum cd_types {
31 S3C_SDHCI_CD_PERMANENT, /* no CD line, card permanently wired to host */ 31 S3C_SDHCI_CD_PERMANENT, /* no CD line, card permanently wired to host */
32}; 32};
33 33
34enum clk_types {
35 S3C_SDHCI_CLK_DIV_INTERNAL, /* use mmc internal clock divider */
36 S3C_SDHCI_CLK_DIV_EXTERNAL, /* use external clock divider */
37};
38
39/** 34/**
40 * struct s3c_sdhci_platdata() - Platform device data for Samsung SDHCI 35 * struct s3c_sdhci_platdata() - Platform device data for Samsung SDHCI
41 * @max_width: The maximum number of data bits supported. 36 * @max_width: The maximum number of data bits supported.
42 * @host_caps: Standard MMC host capabilities bit field. 37 * @host_caps: Standard MMC host capabilities bit field.
43 * @host_caps2: The second standard MMC host capabilities bit field. 38 * @host_caps2: The second standard MMC host capabilities bit field.
44 * @cd_type: Type of Card Detection method (see cd_types enum above) 39 * @cd_type: Type of Card Detection method (see cd_types enum above)
45 * @clk_type: Type of clock divider method (see clk_types enum above)
46 * @ext_cd_init: Initialize external card detect subsystem. Called on 40 * @ext_cd_init: Initialize external card detect subsystem. Called on
47 * sdhci-s3c driver probe when cd_type == S3C_SDHCI_CD_EXTERNAL. 41 * sdhci-s3c driver probe when cd_type == S3C_SDHCI_CD_EXTERNAL.
48 * notify_func argument is a callback to the sdhci-s3c driver 42 * notify_func argument is a callback to the sdhci-s3c driver
@@ -67,7 +61,6 @@ struct s3c_sdhci_platdata {
67 unsigned int host_caps2; 61 unsigned int host_caps2;
68 unsigned int pm_caps; 62 unsigned int pm_caps;
69 enum cd_types cd_type; 63 enum cd_types cd_type;
70 enum clk_types clk_type;
71 64
72 int ext_cd_gpio; 65 int ext_cd_gpio;
73 bool ext_cd_gpio_invert; 66 bool ext_cd_gpio_invert;
diff --git a/arch/arm/plat-samsung/platformdata.c b/arch/arm/plat-samsung/platformdata.c
index fa78aa710ed1..b430e9946287 100644
--- a/arch/arm/plat-samsung/platformdata.c
+++ b/arch/arm/plat-samsung/platformdata.c
@@ -57,6 +57,4 @@ void s3c_sdhci_set_platdata(struct s3c_sdhci_platdata *pd,
57 set->host_caps2 |= pd->host_caps2; 57 set->host_caps2 |= pd->host_caps2;
58 if (pd->pm_caps) 58 if (pd->pm_caps)
59 set->pm_caps |= pd->pm_caps; 59 set->pm_caps |= pd->pm_caps;
60 if (pd->clk_type)
61 set->clk_type = pd->clk_type;
62} 60}