diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2012-04-14 11:12:04 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2012-04-21 11:24:56 -0400 |
commit | 81d413554a020ebe4f1f761cc5c417a306687511 (patch) | |
tree | b37b66efa170c472abb06990f1ac433588a712ac /arch/arm | |
parent | e816b57a337ea3b755de72bec38c10c864f23015 (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')
-rw-r--r-- | arch/arm/mach-exynos/mach-armlex4210.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-nuri.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-origen.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-smdk4x12.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-smdkv310.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-exynos/mach-universal_c210.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 4 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/sdhci.h | 7 | ||||
-rw-r--r-- | arch/arm/plat-samsung/platformdata.c | 2 |
9 files changed, 0 insertions, 29 deletions
diff --git a/arch/arm/mach-exynos/mach-armlex4210.c b/arch/arm/mach-exynos/mach-armlex4210.c index d726fcd3acf9..a1e70070afda 100644 --- a/arch/arm/mach-exynos/mach-armlex4210.c +++ b/arch/arm/mach-exynos/mach-armlex4210.c | |||
@@ -77,7 +77,6 @@ static struct s3c2410_uartcfg armlex4210_uartcfgs[] __initdata = { | |||
77 | 77 | ||
78 | static struct s3c_sdhci_platdata armlex4210_hsmmc0_pdata __initdata = { | 78 | static struct s3c_sdhci_platdata armlex4210_hsmmc0_pdata __initdata = { |
79 | .cd_type = S3C_SDHCI_CD_PERMANENT, | 79 | .cd_type = S3C_SDHCI_CD_PERMANENT, |
80 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
81 | #ifdef CONFIG_EXYNOS4_SDHCI_CH0_8BIT | 80 | #ifdef CONFIG_EXYNOS4_SDHCI_CH0_8BIT |
82 | .max_width = 8, | 81 | .max_width = 8, |
83 | .host_caps = MMC_CAP_8_BIT_DATA, | 82 | .host_caps = MMC_CAP_8_BIT_DATA, |
@@ -88,13 +87,11 @@ static struct s3c_sdhci_platdata armlex4210_hsmmc2_pdata __initdata = { | |||
88 | .cd_type = S3C_SDHCI_CD_GPIO, | 87 | .cd_type = S3C_SDHCI_CD_GPIO, |
89 | .ext_cd_gpio = EXYNOS4_GPX2(5), | 88 | .ext_cd_gpio = EXYNOS4_GPX2(5), |
90 | .ext_cd_gpio_invert = 1, | 89 | .ext_cd_gpio_invert = 1, |
91 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
92 | .max_width = 4, | 90 | .max_width = 4, |
93 | }; | 91 | }; |
94 | 92 | ||
95 | static struct s3c_sdhci_platdata armlex4210_hsmmc3_pdata __initdata = { | 93 | static struct s3c_sdhci_platdata armlex4210_hsmmc3_pdata __initdata = { |
96 | .cd_type = S3C_SDHCI_CD_PERMANENT, | 94 | .cd_type = S3C_SDHCI_CD_PERMANENT, |
97 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
98 | .max_width = 4, | 95 | .max_width = 4, |
99 | }; | 96 | }; |
100 | 97 | ||
diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c index b4f1f902ce6d..91e5986a9d06 100644 --- a/arch/arm/mach-exynos/mach-nuri.c +++ b/arch/arm/mach-exynos/mach-nuri.c | |||
@@ -113,7 +113,6 @@ static struct s3c_sdhci_platdata nuri_hsmmc0_data __initdata = { | |||
113 | MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED | | 113 | MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED | |
114 | MMC_CAP_ERASE), | 114 | MMC_CAP_ERASE), |
115 | .cd_type = S3C_SDHCI_CD_PERMANENT, | 115 | .cd_type = S3C_SDHCI_CD_PERMANENT, |
116 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
117 | }; | 116 | }; |
118 | 117 | ||
119 | static struct regulator_consumer_supply emmc_supplies[] = { | 118 | static struct regulator_consumer_supply emmc_supplies[] = { |
@@ -154,7 +153,6 @@ static struct s3c_sdhci_platdata nuri_hsmmc2_data __initdata = { | |||
154 | .ext_cd_gpio = EXYNOS4_GPX3(3), /* XEINT_27 */ | 153 | .ext_cd_gpio = EXYNOS4_GPX3(3), /* XEINT_27 */ |
155 | .ext_cd_gpio_invert = 1, | 154 | .ext_cd_gpio_invert = 1, |
156 | .cd_type = S3C_SDHCI_CD_GPIO, | 155 | .cd_type = S3C_SDHCI_CD_GPIO, |
157 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
158 | }; | 156 | }; |
159 | 157 | ||
160 | /* WLAN */ | 158 | /* WLAN */ |
@@ -163,7 +161,6 @@ static struct s3c_sdhci_platdata nuri_hsmmc3_data __initdata = { | |||
163 | .host_caps = MMC_CAP_4_BIT_DATA | | 161 | .host_caps = MMC_CAP_4_BIT_DATA | |
164 | MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED, | 162 | MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED, |
165 | .cd_type = S3C_SDHCI_CD_EXTERNAL, | 163 | .cd_type = S3C_SDHCI_CD_EXTERNAL, |
166 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
167 | }; | 164 | }; |
168 | 165 | ||
169 | static void __init nuri_sdhci_init(void) | 166 | static void __init nuri_sdhci_init(void) |
diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index 878d4c99142d..827cb990c316 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c | |||
@@ -472,12 +472,10 @@ static struct i2c_board_info i2c0_devs[] __initdata = { | |||
472 | 472 | ||
473 | static struct s3c_sdhci_platdata origen_hsmmc0_pdata __initdata = { | 473 | static struct s3c_sdhci_platdata origen_hsmmc0_pdata __initdata = { |
474 | .cd_type = S3C_SDHCI_CD_INTERNAL, | 474 | .cd_type = S3C_SDHCI_CD_INTERNAL, |
475 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
476 | }; | 475 | }; |
477 | 476 | ||
478 | static struct s3c_sdhci_platdata origen_hsmmc2_pdata __initdata = { | 477 | static struct s3c_sdhci_platdata origen_hsmmc2_pdata __initdata = { |
479 | .cd_type = S3C_SDHCI_CD_INTERNAL, | 478 | .cd_type = S3C_SDHCI_CD_INTERNAL, |
480 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
481 | }; | 479 | }; |
482 | 480 | ||
483 | /* USB EHCI */ | 481 | /* USB EHCI */ |
diff --git a/arch/arm/mach-exynos/mach-smdk4x12.c b/arch/arm/mach-exynos/mach-smdk4x12.c index d00e4f016a68..4be083acf994 100644 --- a/arch/arm/mach-exynos/mach-smdk4x12.c +++ b/arch/arm/mach-exynos/mach-smdk4x12.c | |||
@@ -85,7 +85,6 @@ static struct s3c2410_uartcfg smdk4x12_uartcfgs[] __initdata = { | |||
85 | 85 | ||
86 | static struct s3c_sdhci_platdata smdk4x12_hsmmc2_pdata __initdata = { | 86 | static struct s3c_sdhci_platdata smdk4x12_hsmmc2_pdata __initdata = { |
87 | .cd_type = S3C_SDHCI_CD_INTERNAL, | 87 | .cd_type = S3C_SDHCI_CD_INTERNAL, |
88 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
89 | #ifdef CONFIG_EXYNOS4_SDHCI_CH2_8BIT | 88 | #ifdef CONFIG_EXYNOS4_SDHCI_CH2_8BIT |
90 | .max_width = 8, | 89 | .max_width = 8, |
91 | .host_caps = MMC_CAP_8_BIT_DATA, | 90 | .host_caps = MMC_CAP_8_BIT_DATA, |
@@ -94,7 +93,6 @@ static struct s3c_sdhci_platdata smdk4x12_hsmmc2_pdata __initdata = { | |||
94 | 93 | ||
95 | static struct s3c_sdhci_platdata smdk4x12_hsmmc3_pdata __initdata = { | 94 | static struct s3c_sdhci_platdata smdk4x12_hsmmc3_pdata __initdata = { |
96 | .cd_type = S3C_SDHCI_CD_INTERNAL, | 95 | .cd_type = S3C_SDHCI_CD_INTERNAL, |
97 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
98 | }; | 96 | }; |
99 | 97 | ||
100 | static struct regulator_consumer_supply max8997_buck1 = | 98 | static struct regulator_consumer_supply max8997_buck1 = |
diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c index 83b91fa777c1..f08529f9cdf6 100644 --- a/arch/arm/mach-exynos/mach-smdkv310.c +++ b/arch/arm/mach-exynos/mach-smdkv310.c | |||
@@ -93,7 +93,6 @@ static struct s3c2410_uartcfg smdkv310_uartcfgs[] __initdata = { | |||
93 | 93 | ||
94 | static struct s3c_sdhci_platdata smdkv310_hsmmc0_pdata __initdata = { | 94 | static struct s3c_sdhci_platdata smdkv310_hsmmc0_pdata __initdata = { |
95 | .cd_type = S3C_SDHCI_CD_INTERNAL, | 95 | .cd_type = S3C_SDHCI_CD_INTERNAL, |
96 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
97 | #ifdef CONFIG_EXYNOS4_SDHCI_CH0_8BIT | 96 | #ifdef CONFIG_EXYNOS4_SDHCI_CH0_8BIT |
98 | .max_width = 8, | 97 | .max_width = 8, |
99 | .host_caps = MMC_CAP_8_BIT_DATA, | 98 | .host_caps = MMC_CAP_8_BIT_DATA, |
@@ -104,12 +103,10 @@ static struct s3c_sdhci_platdata smdkv310_hsmmc1_pdata __initdata = { | |||
104 | .cd_type = S3C_SDHCI_CD_GPIO, | 103 | .cd_type = S3C_SDHCI_CD_GPIO, |
105 | .ext_cd_gpio = EXYNOS4_GPK0(2), | 104 | .ext_cd_gpio = EXYNOS4_GPK0(2), |
106 | .ext_cd_gpio_invert = 1, | 105 | .ext_cd_gpio_invert = 1, |
107 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
108 | }; | 106 | }; |
109 | 107 | ||
110 | static struct s3c_sdhci_platdata smdkv310_hsmmc2_pdata __initdata = { | 108 | static struct s3c_sdhci_platdata smdkv310_hsmmc2_pdata __initdata = { |
111 | .cd_type = S3C_SDHCI_CD_INTERNAL, | 109 | .cd_type = S3C_SDHCI_CD_INTERNAL, |
112 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
113 | #ifdef CONFIG_EXYNOS4_SDHCI_CH2_8BIT | 110 | #ifdef CONFIG_EXYNOS4_SDHCI_CH2_8BIT |
114 | .max_width = 8, | 111 | .max_width = 8, |
115 | .host_caps = MMC_CAP_8_BIT_DATA, | 112 | .host_caps = MMC_CAP_8_BIT_DATA, |
@@ -120,7 +117,6 @@ static struct s3c_sdhci_platdata smdkv310_hsmmc3_pdata __initdata = { | |||
120 | .cd_type = S3C_SDHCI_CD_GPIO, | 117 | .cd_type = S3C_SDHCI_CD_GPIO, |
121 | .ext_cd_gpio = EXYNOS4_GPK2(2), | 118 | .ext_cd_gpio = EXYNOS4_GPK2(2), |
122 | .ext_cd_gpio_invert = 1, | 119 | .ext_cd_gpio_invert = 1, |
123 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
124 | }; | 120 | }; |
125 | 121 | ||
126 | static void lcd_lte480wv_set_power(struct plat_lcd_data *pd, | 122 | static void lcd_lte480wv_set_power(struct plat_lcd_data *pd, |
diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c index 7ebf79c2ab34..ef706e98b595 100644 --- a/arch/arm/mach-exynos/mach-universal_c210.c +++ b/arch/arm/mach-exynos/mach-universal_c210.c | |||
@@ -748,7 +748,6 @@ static struct s3c_sdhci_platdata universal_hsmmc0_data __initdata = { | |||
748 | .host_caps = (MMC_CAP_8_BIT_DATA | MMC_CAP_4_BIT_DATA | | 748 | .host_caps = (MMC_CAP_8_BIT_DATA | MMC_CAP_4_BIT_DATA | |
749 | MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED), | 749 | MMC_CAP_MMC_HIGHSPEED | MMC_CAP_SD_HIGHSPEED), |
750 | .cd_type = S3C_SDHCI_CD_PERMANENT, | 750 | .cd_type = S3C_SDHCI_CD_PERMANENT, |
751 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
752 | }; | 751 | }; |
753 | 752 | ||
754 | static struct regulator_consumer_supply mmc0_supplies[] = { | 753 | static struct regulator_consumer_supply mmc0_supplies[] = { |
@@ -788,7 +787,6 @@ static struct s3c_sdhci_platdata universal_hsmmc2_data __initdata = { | |||
788 | .ext_cd_gpio = EXYNOS4_GPX3(4), /* XEINT_28 */ | 787 | .ext_cd_gpio = EXYNOS4_GPX3(4), /* XEINT_28 */ |
789 | .ext_cd_gpio_invert = 1, | 788 | .ext_cd_gpio_invert = 1, |
790 | .cd_type = S3C_SDHCI_CD_GPIO, | 789 | .cd_type = S3C_SDHCI_CD_GPIO, |
791 | .clk_type = S3C_SDHCI_CLK_DIV_EXTERNAL, | ||
792 | }; | 790 | }; |
793 | 791 | ||
794 | /* WiFi */ | 792 | /* WiFi */ |
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 | ||
376 | struct platform_device s3c_device_hsmmc0 = { | 375 | struct 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 | ||
407 | struct platform_device s3c_device_hsmmc1 = { | 405 | struct 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 | ||
440 | struct platform_device s3c_device_hsmmc2 = { | 437 | struct 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 | ||
471 | struct platform_device s3c_device_hsmmc3 = { | 467 | struct 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 | ||
34 | enum 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 | } |