From patchwork Wed Aug 29 11:01:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thomas.abraham@linaro.org X-Patchwork-Id: 11026 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 2CACE23E02 for ; Wed, 29 Aug 2012 10:43:43 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id DE262A191F9 for ; Wed, 29 Aug 2012 10:43:10 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so751214iaf.11 for ; Wed, 29 Aug 2012 03:43:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-gm-message-state; bh=ZMggz1JuBDRdG6yd/yNT6/SvDHgyVIAdjgfshlMEejM=; b=Hd8qIE3iRTc4lqhVL+B9BW8GP1J+5h2HefPKTqpjZLVMipvAGDRTF5/m4aPNRiRem3 kYt/L+KvqPCA6oWLDQJwJe3Ki+khhzU6XpNFssp1uwVEMyk4z8piXwZKOY0aCVkV46qX GmnliJNwA80/2Y6OinwFj4kY6S8horGeGPcpmqEM8NAnwVGw8sUwjMvDqXsgzdZonk8X 1oLV51cO4D6a6mmAx7BUOG9m7inmNrHg9phTJi4wjQHst7JHgXHmvYEi08UCFDRGibZd kr3x/0uk8gz4lWaMj+Bp3FiuaPH6UaaEkwBeJd9raOoysu9pPiJ3kUhjQbdzMLZOc2gT wCpA== Received: by 10.50.45.162 with SMTP id o2mr1146291igm.0.1346237022671; Wed, 29 Aug 2012 03:43:42 -0700 (PDT) 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.50.184.232 with SMTP id ex8csp77930igc; Wed, 29 Aug 2012 03:43:42 -0700 (PDT) Received: by 10.68.237.34 with SMTP id uz2mr3827178pbc.71.1346237022031; Wed, 29 Aug 2012 03:43:42 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id qd8si27287352pbc.187.2012.08.29.03.43.41; Wed, 29 Aug 2012 03:43:42 -0700 (PDT) Received-SPF: neutral (google.com: 203.254.224.33 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.33 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) smtp.mail=thomas.abraham@linaro.org Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9I0014IJ4K2O30@mailout3.samsung.com>; Wed, 29 Aug 2012 19:43:40 +0900 (KST) X-AuditID: cbfee61b-b7faf6d00000476a-21-503df25c9e83 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id C8.71.18282.C52FD305; Wed, 29 Aug 2012 19:43:40 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M9I00K0KJ3AVK60@mmp1.samsung.com>; Wed, 29 Aug 2012 19:43:40 +0900 (KST) From: Thomas Abraham To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, kgene.kim@samsung.com, girish.shivananjappa@linaro.org, jh80.chung@samsung.com, tgih.jun@samsung.com, patches@linaro.org Subject: [PATCH v4 2/3] ARM: Exynos5: Add AUXDATA support for MSHC controllers Date: Wed, 29 Aug 2012 16:31:11 +0530 Message-id: <1346238072-7324-3-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1346238072-7324-1-git-send-email-thomas.abraham@linaro.org> References: <1346238072-7324-1-git-send-email-thomas.abraham@linaro.org> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJJMWRmVeSWpSXmKPExsVy+t9jAd2YT7YBBvs2mFh8+XqCzWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DK2Pywm61gLn/F1x/fWRoYF/F2MXJySAiYSEze3MII YYtJXLi3nq2LkYtDSGARo8TZc5/YIZw2Jom9h6+wgVSxCRhIPFr4jh3EFhHQkJjS9RisiFng BKPErRfvWUESwgJ+Etumv2AGsVkEVCVO3boL1sAr4CFxpLWFHWKdksSG3qNMIDangKfEmi/X wRYIAdVsP3SIcQIj7wJGhlWMoqkFyQXFSem5RnrFibnFpXnpesn5uZsYwQHwTHoH46oGi0OM AhyMSjy8F7htA4RYE8uKK3MPMUpwMCuJ8Ka+AgrxpiRWVqUW5ccXleakFh9ilOZgURLn5e8z DBASSE8sSc1OTS1ILYLJMnFwSjUwBjqrL6le8eifpTiHqpdmuYS4mrkf9xmOi9+TFc2Olj1b YHRbNkJ38gr+ZbF+7yb9e7C/brtk8D/zi/pPdvKs6jrrYLJcTyJi0waj7ecXMF79kHB3p/b+ XgV97q8anKnbzu96+72/Kv1HnX1/LF9+VN23S2wOx9YGPZGasP7opZefZHdfuvXvvxJLcUai oRZzUXEiABLgCQj8AQAA X-Gm-Message-State: ALoCoQlPnwd+yq6m47T/WTAax7QPReljC8r5/Oa1lmf0Mny9SLIGQg6eV2fWwIUOwd+bjHbi3JYn Add entries if MSHC controllers in AUXDATA table for correct device name initialization. Signed-off-by: Abhilash Kesavan Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/include/mach/map.h | 4 ++++ arch/arm/mach-exynos/mach-exynos5-dt.c | 8 ++++++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index 9d1f3ac..7cf6738 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -172,6 +172,10 @@ #define EXYNOS4_PA_HSMMC(x) (0x12510000 + ((x) * 0x10000)) #define EXYNOS4_PA_DWMCI 0x12550000 +#define EXYNOS5_PA_DWMCI0 0x12200000 +#define EXYNOS5_PA_DWMCI1 0x12210000 +#define EXYNOS5_PA_DWMCI2 0x12220000 +#define EXYNOS5_PA_DWMCI3 0x12230000 #define EXYNOS4_PA_HSOTG 0x12480000 #define EXYNOS4_PA_USB_HSPHY 0x125B0000 diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index ef770bc..ce82f30 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -47,6 +47,14 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { "s3c2440-i2c.0", NULL), OF_DEV_AUXDATA("samsung,s3c2440-i2c", EXYNOS5_PA_IIC(1), "s3c2440-i2c.1", NULL), + OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI0, + "dw_mmc.0", NULL), + OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI1, + "dw_mmc.1", NULL), + OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI2, + "dw_mmc.2", NULL), + OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI3, + "dw_mmc.3", NULL), OF_DEV_AUXDATA("samsung,exynos4210-spi", EXYNOS5_PA_SPI0, "exynos4210-spi.0", NULL), OF_DEV_AUXDATA("samsung,exynos4210-spi", EXYNOS5_PA_SPI1,