Skip to content

Commit 92df954

Browse files
Sangwook Leecjb
authored andcommitted
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>
1 parent fa1773c commit 92df954

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/arm/plat-samsung/include/plat/sdhci.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ enum clk_types {
6363
struct s3c_sdhci_platdata {
6464
unsigned int max_width;
6565
unsigned int host_caps;
66+
unsigned int pm_caps;
6667
enum cd_types cd_type;
6768
enum clk_types clk_type;
6869

‎arch/arm/plat-samsung/platformdata.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ void s3c_sdhci_set_platdata(struct s3c_sdhci_platdata *pd,
5353
set->cfg_gpio = pd->cfg_gpio;
5454
if (pd->host_caps)
5555
set->host_caps |= pd->host_caps;
56+
if (pd->pm_caps)
57+
set->pm_caps |= pd->pm_caps;
5658
if (pd->clk_type)
5759
set->clk_type = pd->clk_type;
5860
}

0 commit comments

Comments
 (0)