summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSangwook Lee <sangwook.lee@samsung.com>2011-12-07 22:49:29 -0500
committerChris Ball <cjb@laptop.org>2012-01-11 23:58:43 -0500
commit92df954df3422a7dcf99eea34cf4cb68bb06ea08 (patch)
tree1497e67e187bcb82f52c634c575a827f55b64111
parentfa1773cc5b78faa1ef0ab1ab0f48bce7bc72cec5 (diff)
downloadblackbird-op-linux-92df954df3422a7dcf99eea34cf4cb68bb06ea08.tar.gz
blackbird-op-linux-92df954df3422a7dcf99eea34cf4cb68bb06ea08.zip
ARM: SAMSUNG: Add pm_caps into platform data
Add pm_caps into platform_data. This is power management, usually for SDIO device such as SDIO WLAN. Signed-off-by: Sangwook Lee <sangwook.lee@samsung.com> Acked-by: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--arch/arm/plat-samsung/include/plat/sdhci.h1
-rw-r--r--arch/arm/plat-samsung/platformdata.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h b/arch/arm/plat-samsung/include/plat/sdhci.h
index e7b3c752e919..6e999436dad8 100644
--- a/arch/arm/plat-samsung/include/plat/sdhci.h
+++ b/arch/arm/plat-samsung/include/plat/sdhci.h
@@ -63,6 +63,7 @@ enum clk_types {
struct s3c_sdhci_platdata {
unsigned int max_width;
unsigned int host_caps;
+ unsigned int pm_caps;
enum cd_types cd_type;
enum clk_types clk_type;
diff --git a/arch/arm/plat-samsung/platformdata.c b/arch/arm/plat-samsung/platformdata.c
index ceb9fa3a80c0..0f707184eae0 100644
--- a/arch/arm/plat-samsung/platformdata.c
+++ b/arch/arm/plat-samsung/platformdata.c
@@ -53,6 +53,8 @@ void s3c_sdhci_set_platdata(struct s3c_sdhci_platdata *pd,
set->cfg_gpio = pd->cfg_gpio;
if (pd->host_caps)
set->host_caps |= pd->host_caps;
+ if (pd->pm_caps)
+ set->pm_caps |= pd->pm_caps;
if (pd->clk_type)
set->clk_type = pd->clk_type;
}
OpenPOWER on IntegriCloud