aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung
diff options
context:
space:
mode:
authorHyuk Lee <hyuk1.lee@samsung.com>2010-10-08 05:03:23 -0400
committerKukjin Kim <kgene.kim@samsung.com>2010-10-25 03:02:41 -0400
commit40fcd5b9bf27a8ea78df434a92f3d87533a13fc4 (patch)
tree8719a98e091e02eeb03fc5569dce18e5f6f5524c /arch/arm/plat-samsung
parent2b11148a80bf1a022e8165ae0026bf6ff5778f03 (diff)
ARM: SAMSUNG: Modified to change of bus width and host caps
This patch adds to change bus width and host capability of HSMMC, when HSMMC is only configured with another value of bus width and host capability from default one. Signed-off-by: Hyuk Lee <hyuk1.lee@samsung.com> 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')
-rw-r--r--arch/arm/plat-samsung/dev-hsmmc.c5
-rw-r--r--arch/arm/plat-samsung/dev-hsmmc1.c5
-rw-r--r--arch/arm/plat-samsung/dev-hsmmc2.c5
-rw-r--r--arch/arm/plat-samsung/dev-hsmmc3.c5
4 files changed, 13 insertions, 7 deletions
diff --git a/arch/arm/plat-samsung/dev-hsmmc.c b/arch/arm/plat-samsung/dev-hsmmc.c
index 9d2be0941410..5b8aacb5cbc6 100644
--- a/arch/arm/plat-samsung/dev-hsmmc.c
+++ b/arch/arm/plat-samsung/dev-hsmmc.c
@@ -59,17 +59,18 @@ void s3c_sdhci0_set_platdata(struct s3c_sdhci_platdata *pd)
59{ 59{
60 struct s3c_sdhci_platdata *set = &s3c_hsmmc0_def_platdata; 60 struct s3c_sdhci_platdata *set = &s3c_hsmmc0_def_platdata;
61 61
62 set->max_width = pd->max_width;
63 set->cd_type = pd->cd_type; 62 set->cd_type = pd->cd_type;
64 set->ext_cd_init = pd->ext_cd_init; 63 set->ext_cd_init = pd->ext_cd_init;
65 set->ext_cd_cleanup = pd->ext_cd_cleanup; 64 set->ext_cd_cleanup = pd->ext_cd_cleanup;
66 set->ext_cd_gpio = pd->ext_cd_gpio; 65 set->ext_cd_gpio = pd->ext_cd_gpio;
67 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; 66 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert;
68 67
68 if (pd->max_width)
69 set->max_width = pd->max_width;
69 if (pd->cfg_gpio) 70 if (pd->cfg_gpio)
70 set->cfg_gpio = pd->cfg_gpio; 71 set->cfg_gpio = pd->cfg_gpio;
71 if (pd->cfg_card) 72 if (pd->cfg_card)
72 set->cfg_card = pd->cfg_card; 73 set->cfg_card = pd->cfg_card;
73 if (pd->host_caps) 74 if (pd->host_caps)
74 set->host_caps = pd->host_caps; 75 set->host_caps |= pd->host_caps;
75} 76}
diff --git a/arch/arm/plat-samsung/dev-hsmmc1.c b/arch/arm/plat-samsung/dev-hsmmc1.c
index a6c8295840af..9b52828644d6 100644
--- a/arch/arm/plat-samsung/dev-hsmmc1.c
+++ b/arch/arm/plat-samsung/dev-hsmmc1.c
@@ -59,17 +59,18 @@ void s3c_sdhci1_set_platdata(struct s3c_sdhci_platdata *pd)
59{ 59{
60 struct s3c_sdhci_platdata *set = &s3c_hsmmc1_def_platdata; 60 struct s3c_sdhci_platdata *set = &s3c_hsmmc1_def_platdata;
61 61
62 set->max_width = pd->max_width;
63 set->cd_type = pd->cd_type; 62 set->cd_type = pd->cd_type;
64 set->ext_cd_init = pd->ext_cd_init; 63 set->ext_cd_init = pd->ext_cd_init;
65 set->ext_cd_cleanup = pd->ext_cd_cleanup; 64 set->ext_cd_cleanup = pd->ext_cd_cleanup;
66 set->ext_cd_gpio = pd->ext_cd_gpio; 65 set->ext_cd_gpio = pd->ext_cd_gpio;
67 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; 66 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert;
68 67
68 if (pd->max_width)
69 set->max_width = pd->max_width;
69 if (pd->cfg_gpio) 70 if (pd->cfg_gpio)
70 set->cfg_gpio = pd->cfg_gpio; 71 set->cfg_gpio = pd->cfg_gpio;
71 if (pd->cfg_card) 72 if (pd->cfg_card)
72 set->cfg_card = pd->cfg_card; 73 set->cfg_card = pd->cfg_card;
73 if (pd->host_caps) 74 if (pd->host_caps)
74 set->host_caps = pd->host_caps; 75 set->host_caps |= pd->host_caps;
75} 76}
diff --git a/arch/arm/plat-samsung/dev-hsmmc2.c b/arch/arm/plat-samsung/dev-hsmmc2.c
index cb0d7143381a..df9e36b54c0d 100644
--- a/arch/arm/plat-samsung/dev-hsmmc2.c
+++ b/arch/arm/plat-samsung/dev-hsmmc2.c
@@ -60,17 +60,18 @@ void s3c_sdhci2_set_platdata(struct s3c_sdhci_platdata *pd)
60{ 60{
61 struct s3c_sdhci_platdata *set = &s3c_hsmmc2_def_platdata; 61 struct s3c_sdhci_platdata *set = &s3c_hsmmc2_def_platdata;
62 62
63 set->max_width = pd->max_width;
64 set->cd_type = pd->cd_type; 63 set->cd_type = pd->cd_type;
65 set->ext_cd_init = pd->ext_cd_init; 64 set->ext_cd_init = pd->ext_cd_init;
66 set->ext_cd_cleanup = pd->ext_cd_cleanup; 65 set->ext_cd_cleanup = pd->ext_cd_cleanup;
67 set->ext_cd_gpio = pd->ext_cd_gpio; 66 set->ext_cd_gpio = pd->ext_cd_gpio;
68 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; 67 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert;
69 68
69 if (pd->max_width)
70 set->max_width = pd->max_width;
70 if (pd->cfg_gpio) 71 if (pd->cfg_gpio)
71 set->cfg_gpio = pd->cfg_gpio; 72 set->cfg_gpio = pd->cfg_gpio;
72 if (pd->cfg_card) 73 if (pd->cfg_card)
73 set->cfg_card = pd->cfg_card; 74 set->cfg_card = pd->cfg_card;
74 if (pd->host_caps) 75 if (pd->host_caps)
75 set->host_caps = pd->host_caps; 76 set->host_caps |= pd->host_caps;
76} 77}
diff --git a/arch/arm/plat-samsung/dev-hsmmc3.c b/arch/arm/plat-samsung/dev-hsmmc3.c
index 335bc35044d3..ca80897b0d7c 100644
--- a/arch/arm/plat-samsung/dev-hsmmc3.c
+++ b/arch/arm/plat-samsung/dev-hsmmc3.c
@@ -63,15 +63,18 @@ void s3c_sdhci3_set_platdata(struct s3c_sdhci_platdata *pd)
63{ 63{
64 struct s3c_sdhci_platdata *set = &s3c_hsmmc3_def_platdata; 64 struct s3c_sdhci_platdata *set = &s3c_hsmmc3_def_platdata;
65 65
66 set->max_width = pd->max_width;
67 set->cd_type = pd->cd_type; 66 set->cd_type = pd->cd_type;
68 set->ext_cd_init = pd->ext_cd_init; 67 set->ext_cd_init = pd->ext_cd_init;
69 set->ext_cd_cleanup = pd->ext_cd_cleanup; 68 set->ext_cd_cleanup = pd->ext_cd_cleanup;
70 set->ext_cd_gpio = pd->ext_cd_gpio; 69 set->ext_cd_gpio = pd->ext_cd_gpio;
71 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; 70 set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert;
72 71
72 if (pd->max_width)
73 set->max_width = pd->max_width;
73 if (pd->cfg_gpio) 74 if (pd->cfg_gpio)
74 set->cfg_gpio = pd->cfg_gpio; 75 set->cfg_gpio = pd->cfg_gpio;
75 if (pd->cfg_card) 76 if (pd->cfg_card)
76 set->cfg_card = pd->cfg_card; 77 set->cfg_card = pd->cfg_card;
78 if (pd->host_caps)
79 set->host_caps |= pd->host_caps;
77} 80}