From patchwork Thu Jul 12 12:58:46 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: 9962 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 04D7A23E3D for ; Thu, 12 Jul 2012 12:45:03 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id C8A74A186D0 for ; Thu, 12 Jul 2012 12:45:02 +0000 (UTC) Received: by mail-yw0-f52.google.com with SMTP id p61so2661821yhp.11 for ; Thu, 12 Jul 2012 05:45:02 -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-tm-as-mml:x-gm-message-state; bh=N1tE4hg0XrYjw5bT+nVxA8KYYvbhyW2Gszd/tenxxpE=; b=SCZIKGe5vZn8EYCKsXqScUlRQkr/oa7AZ3J1Jcx2YjwzsrFZMJUIx9+n1N/fpgqvSv xUm3ryrKo+dPwl8xn7JDFVb4gj8HeHmXZi7nf92hb4wgpjGBbvix2HZoPd7wS7kY19qI aeEHmlMkUq6fLeA8hcsgLjAyw2H0Ic+NO0/GEGLxQ1S6HMkRF73a8Ag1PoOMrC9SKjzR MPHXDE7fUttCdssBkUtnVIT0Q0vhVLI9hflhOpUQSoPsPHGl7LuyiRRERBz1hij4rVIf LF0UrdrWZ1L5uLMLvJPY2a1/+grd8KDSxnRY1E0xCIh1umfD5JmgKHYIIHciPHWDC/sX iCuA== Received: by 10.42.155.73 with SMTP id t9mr27485038icw.48.1342097102303; Thu, 12 Jul 2012 05:45:02 -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.231.241.2 with SMTP id lc2csp2673ibb; Thu, 12 Jul 2012 05:45:01 -0700 (PDT) Received: by 10.68.227.163 with SMTP id sb3mr5397803pbc.74.1342097101552; Thu, 12 Jul 2012 05:45:01 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id ot3si8915096pbc.41.2012.07.12.05.45.01; Thu, 12 Jul 2012 05:45:01 -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 (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M7100CGQSQVP9C0@mailout3.samsung.com> for patches@linaro.org; Thu, 12 Jul 2012 21:45:00 +0900 (KST) X-AuditID: cbfee61b-b7f566d000005c8a-33-4ffec6cbdd76 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id A0.DE.23690.BC6CEFF4; Thu, 12 Jul 2012 21:44:59 +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 <0M7100BY3SQSXZ10@mmp1.samsung.com> for patches@linaro.org; Thu, 12 Jul 2012 21:44:59 +0900 (KST) From: Thomas Abraham To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com, patches@linaro.org Subject: [PATCH v2 2/3] ARM: Exynos5: Add AUXDATA support for MSHC controllers Date: Thu, 12 Jul 2012 18:28:46 +0530 Message-id: <1342097927-25334-3-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1342097927-25334-1-git-send-email-thomas.abraham@linaro.org> References: <1342097927-25334-1-git-send-email-thomas.abraham@linaro.org> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPJMWRmVeSWpSXmKPExsVy+t9jAd3Tx/75G/x6Ymox5fAXFgdGjzvX 9rAFMEZx2aSk5mSWpRbp2yVwZUzsmcBe8IOv4uSvLWwNjK28XYzsHBICJhKX2LsYOYEsMYkL 99azdTFycQgJLGKU2H3iLlhCSGAuk8SXr0IgNpuAgcSjhe/A4iICGhJTuh4D2RwczAIBEne/ 2YCEhQX8JHbvWwRWwiKgKnGvZyWYzSvgKbHg0mlGiF1KEht6jzKB2JwCXhJT3s9mg1jlKXFm 4WzmCYy8CxgZVjGKphYkFxQnpeca6RUn5haX5qXrJefnbmIEe/uZ9A7GVQ0WhxgFOBiVeHgf bPrnL8SaWFZcmXuIUYKDWUmEtz8XKMSbklhZlVqUH19UmpNafIhRmoNFSZzXxPurv5BAemJJ anZqakFqEUyWiYNTqoGxa9OZhiVr74Wqv77EX7bi3cXPG7rqloYZB9iHP/4uJljLxL3mYM7U dbz1AkVV9plnXx0t1FJ8xLmnJNSjjKWk4CHD2sQU9Svf/02YN/O32ZRXmvFbc89zTbt1t4Ld 3ff8pst/JSe7OrW+NOuUXNlS8dGit+Qnp9P3EnVtj9TVJntSX/9/86FHiaU4I9FQi7moOBEA 9oI8CfIBAAA= X-TM-AS-MML: No X-Gm-Message-State: ALoCoQnMLwI+sBY6hNAyWKWSisakrwc0DT9i0j8o8PiFT1yjVPZCcSFZ+eEyqaXwG1AxDm1EpGvD 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 | 1 + arch/arm/mach-exynos/mach-exynos5-dt.c | 8 ++++++++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index ca4aa89..9be4165 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -170,6 +170,7 @@ #define EXYNOS4_PA_HSMMC(x) (0x12510000 + ((x) * 0x10000)) #define EXYNOS4_PA_DWMCI 0x12550000 +#define EXYNOS5_PA_DWMCI(x) (0x12200000 + ((x) * 0x10000)) #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 7b1e11a..d4f8309 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_DWMCI(0), + "dw_mmc.0", NULL), + OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI(1), + "dw_mmc.1", NULL), + OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI(2), + "dw_mmc.2", NULL), + OF_DEV_AUXDATA("samsung,exynos5250-dw-mshc", EXYNOS5_PA_DWMCI(3), + "dw_mmc.3", NULL), OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA0, "dma-pl330.0", NULL), OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA1, "dma-pl330.1", NULL), OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_MDMA1, "dma-pl330.2", NULL),