From patchwork Mon Nov 7 17:05:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sangwook X-Patchwork-Id: 4948 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 5A35D23E0E for ; Mon, 7 Nov 2011 17:07:36 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 4E481A1860E for ; Mon, 7 Nov 2011 17:07:36 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id n26so7576820faa.11 for ; Mon, 07 Nov 2011 09:07:36 -0800 (PST) Received: by 10.152.106.115 with SMTP id gt19mr6948271lab.27.1320685656139; Mon, 07 Nov 2011 09:07:36 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.14.103 with SMTP id o7cs63679lac; Mon, 7 Nov 2011 09:07:35 -0800 (PST) Received: by 10.223.91.82 with SMTP id l18mr46355043fam.30.1320685654353; Mon, 07 Nov 2011 09:07:34 -0800 (PST) Received: from mail-fx0-f50.google.com (mail-fx0-f50.google.com [209.85.161.50]) by mx.google.com with ESMTPS id z23si9867076fam.49.2011.11.07.09.07.33 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Nov 2011 09:07:34 -0800 (PST) Received-SPF: neutral (google.com: 209.85.161.50 is neither permitted nor denied by best guess record for domain of sangwook.lee@linaro.org) client-ip=209.85.161.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.161.50 is neither permitted nor denied by best guess record for domain of sangwook.lee@linaro.org) smtp.mail=sangwook.lee@linaro.org Received: by mail-fx0-f50.google.com with SMTP id r15so3266676faa.37 for ; Mon, 07 Nov 2011 09:07:33 -0800 (PST) Received: by 10.223.76.197 with SMTP id d5mr48556929fak.13.1320685653316; Mon, 07 Nov 2011 09:07:33 -0800 (PST) Received: from localhost.localdomain (host86-147-187-67.range86-147.btcentralplus.com. [86.147.187.67]) by mx.google.com with ESMTPS id d3sm19366270fad.2.2011.11.07.09.07.30 (version=SSLv3 cipher=OTHER); Mon, 07 Nov 2011 09:07:32 -0800 (PST) From: Sangwook Lee To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org Cc: cjb@laptop.org, kgene.kim@samsung.com, ben-linux@fluff.org, linaro-dev@lists.linaro.org, patches@linaro.org, Sangwook Lee , Sangwook Lee Subject: [PATCH 1/2] ARM: SAMSUNG: Add pm_caps into platform data Date: Mon, 7 Nov 2011 17:05:21 +0000 Message-Id: <1320685522-17481-2-git-send-email-sangwook.lee@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1320685522-17481-1-git-send-email-sangwook.lee@linaro.org> References: <1320685522-17481-1-git-send-email-sangwook.lee@linaro.org> Add pm_caps into platform_data. This is power management, usually for SDIO device such as SDIO WLAN. Signed-off-by: Sangwook Lee --- arch/arm/plat-samsung/dev-hsmmc3.c | 2 ++ arch/arm/plat-samsung/include/plat/sdhci.h | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-samsung/dev-hsmmc3.c b/arch/arm/plat-samsung/dev-hsmmc3.c index ede776f..8f467f2 100644 --- a/arch/arm/plat-samsung/dev-hsmmc3.c +++ b/arch/arm/plat-samsung/dev-hsmmc3.c @@ -78,6 +78,8 @@ void s3c_sdhci3_set_platdata(struct s3c_sdhci_platdata *pd) set->cfg_card = pd->cfg_card; 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; } diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h b/arch/arm/plat-samsung/include/plat/sdhci.h index 058e096..35646de 100644 --- a/arch/arm/plat-samsung/include/plat/sdhci.h +++ b/arch/arm/plat-samsung/include/plat/sdhci.h @@ -40,6 +40,7 @@ enum clk_types { * struct s3c_sdhci_platdata() - Platform device data for Samsung SDHCI * @max_width: The maximum number of data bits supported. * @host_caps: Standard MMC host capabilities bit field. + * @pm_caps: SDIO host PM 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) * @ext_cd_init: Initialize external card detect subsystem. Called on @@ -67,6 +68,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;