arm: samsung: add wakeup platdata
Subsystems (4)
PATCH 1/2 arm: samsung: add wakeup platdata
Signed-off-by Wonil Choi <[email protected]>
Signed-off-by Jaehoon Chung <[email protected]>
--- arch/arm/plat-samsung/dev-hsmmc.c | 1 + arch/arm/plat-samsung/dev-hsmmc1.c | 1 + arch/arm/plat-samsung/dev-hsmmc2.c | 1 + arch/arm/plat-samsung/dev-hsmmc3.c | 1 + arch/arm/plat-samsung/include/plat/sdhci.h | 2 ++ 5 files changed, 6 insertions(+), 0 deletions(-)
arch/arm/plat-samsung/dev-hsmmc.c +1 -0
@@ -65,6 +65,7 @@ void s3c_sdhci0_set_platdata(struct s3c_sdhci_platdata *pd) set->ext_cd_cleanup = pd->ext_cd_cleanup; set->ext_cd_gpio = pd->ext_cd_gpio; set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; + set->wakeup = pd->wakeup;if (pd->max_width) set->max_width = pd->max_width;
arch/arm/plat-samsung/dev-hsmmc1.c +1 -0
@@ -65,6 +65,7 @@ void s3c_sdhci1_set_platdata(struct s3c_sdhci_platdata *pd) set->ext_cd_cleanup = pd->ext_cd_cleanup; set->ext_cd_gpio = pd->ext_cd_gpio; set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; + set->wakeup = pd->wakeup;if (pd->max_width) set->max_width = pd->max_width;
arch/arm/plat-samsung/dev-hsmmc2.c +1 -0
@@ -66,6 +66,7 @@ void s3c_sdhci2_set_platdata(struct s3c_sdhci_platdata *pd) set->ext_cd_cleanup = pd->ext_cd_cleanup; set->ext_cd_gpio = pd->ext_cd_gpio; set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; + set->wakeup = pd->wakeup;if (pd->max_width) set->max_width = pd->max_width;
arch/arm/plat-samsung/dev-hsmmc3.c +1 -0
@@ -69,6 +69,7 @@ void s3c_sdhci3_set_platdata(struct s3c_sdhci_platdata *pd) set->ext_cd_cleanup = pd->ext_cd_cleanup; set->ext_cd_gpio = pd->ext_cd_gpio; set->ext_cd_gpio_invert = pd->ext_cd_gpio_invert; + set->wakeup = pd->wakeup;if (pd->max_width) set->max_width = pd->max_width;
arch/arm/plat-samsung/include/plat/sdhci.h +2 -0
@@ -42,6 +42,7 @@ enum clk_types {* @host_caps: Standard MMC host capabilities bit field. * @cd_type: Type of Card Detection method (see cd_types enum above) * @clk_type: Type of clock divider method (see clk_types enum above) +* @wakeup: denote whether can wakeup or not during suspend. * @ext_cd_init: Initialize external card detect subsystem. Called on * sdhci-s3c driver probe when cd_type == S3C_SDHCI_CD_EXTERNAL. * notify_func argument is a callback to the sdhci-s3c driver
@@ -74,6 +75,7 @@ struct s3c_sdhci_platdata {int ext_cd_gpio;bool ext_cd_gpio_invert; +bool wakeup;int (*ext_cd_init)(void (*notify_func)(struct platform_device *,int state)); int (*ext_cd_cleanup)(void (*notify_func)(struct platform_device *,