From patchwork Sun Aug 26 11:59:30 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: 10961 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 4198323E00 for ; Sun, 26 Aug 2012 11:41:31 +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 D382FA1841B for ; Sun, 26 Aug 2012 11:41:07 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j25so3780951iaf.11 for ; Sun, 26 Aug 2012 04:41:30 -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=SEvyPfDFj3OhS6r82TbZwnl587ibvQbzi9+h80lWaG8=; b=ECFAFjLyMRoE4JlyunAjSqO87qGS4ptAQR5OjrhnygGzrx75cuntn3JZicokL/Cl9a E8aPFRSyR9mJ3s4NKcNGIFjgQ0MLIPl61QnEdFzFZnI4n7fFRNqeTLpi5xizmxlR75TS dAxg+l6MdIFzVT+6qBr4S/SWDcoapL7Je4EhWclfGdR4YWtbN4g0oA3kfb6HPgRkctWV G5kCAwI5ApeSR6yhpUkmXbgTINjvukj1rkzBIqWVRoeJ1Fb0piimEog81qxKXIs5ZhXl 5c92JR1tIe4lUIJsI+wBfscYrRx+sTAWEMA0V5M8HBqJXpfk9HNJ5I4Nvwd0eEbedRNp 5M8w== Received: by 10.50.180.129 with SMTP id do1mr7236477igc.28.1345981290737; Sun, 26 Aug 2012 04:41:30 -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 ex8csp396593igc; Sun, 26 Aug 2012 04:41:30 -0700 (PDT) Received: by 10.68.241.228 with SMTP id wl4mr26373425pbc.51.1345981290145; Sun, 26 Aug 2012 04:41:30 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id qs7si27195816pbc.342.2012.08.26.04.41.29; Sun, 26 Aug 2012 04:41:30 -0700 (PDT) Received-SPF: neutral (google.com: 203.254.224.25 is neither permitted nor denied by best guess record for domain of thomas.abraham@linaro.org) client-ip=203.254.224.25; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.25 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 mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9D008141SXU2C0@mailout2.samsung.com>; Sun, 26 Aug 2012 20:41:28 +0900 (KST) X-AuditID: cbfee61b-b7faf6d00000476a-f5-503a0b689c7a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id FC.8A.18282.86B0A305; Sun, 26 Aug 2012 20:41:28 +0900 (KST) Received: from localhost.localdomain ([107.108.73.37]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M9D00JEH1SVN450@mmp2.samsung.com>; Sun, 26 Aug 2012 20:41:28 +0900 (KST) From: Thomas Abraham To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, cjb@laptop.org, kgene.kim@samsung.com, girish.shivananjappa@linaro.org, jh80.chung@samsung.com, tgih.jun@samsung.com, patches@linaro.org Subject: [PATCH v3 2/3] ARM: Exynos5: Add AUXDATA support for MSHC controllers Date: Sun, 26 Aug 2012 17:29:30 +0530 Message-id: <1345982371-26483-3-git-send-email-thomas.abraham@linaro.org> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1345982371-26483-1-git-send-email-thomas.abraham@linaro.org> References: <1345982371-26483-1-git-send-email-thomas.abraham@linaro.org> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBJMWRmVeSWpSXmKPExsVy+t9jQd0MbqsAgyWPTC2+fD3BZjHl8BcW ByaPO9f2sAUwRnHZpKTmZJalFunbJXBlfDzxmrlgH1/FnpvhDYzneLoYOTkkBEwkjs18xgZh i0lcuLceyObiEBKYzihxY+k5VginjUli3e53YFVsAgYSjxa+YwexRQQ0JKZ0PWYHKWIW2Mwo seDBAWaQhLCAn8T8XQ2sIDaLgKrErD9HwZp5BTwlnt44ygSxTkliQy+EzSngJbH89WqwXiGg mmXHdjJOYORdwMiwilE0tSC5oDgpPddIrzgxt7g0L10vOT93EyPY/8+kdzCuarA4xCjAwajE wytQahkgxJpYVlyZe4hRgoNZSYT3+36gEG9KYmVValF+fFFpTmrxIUZpDhYlcV7+PsMAIYH0 xJLU7NTUgtQimCwTB6dUA6OAOXfJZVt/kSudefMX3WNez/VddtrXWcViAhfWzudQ/O1Wo/X9 GTvT/IuOXMr3Y37q6z4MOhf+qGg399tlLFps3pkcxh7pFeqvg7IkTM0nnK6zlG98LaJ45/Gv vmdaFU+aC+eofPo3efXb95umvXg7b9/de1c0y+WnTNhguq4v8dGB96KCeouUWIozEg21mIuK EwExEcpu+wEAAA== X-Gm-Message-State: ALoCoQk2+QQRlQxVDWctXkRG7xmKk7Ps4mVPn6VuElVWqbS/xFUXljGja5D1a4Xvia3Nr7KV+aZ7 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 9d1f3ac..5b0ee41 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -172,6 +172,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 ef770bc..4257cc1 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("samsung,exynos4210-spi", EXYNOS5_PA_SPI0, "exynos4210-spi.0", NULL), OF_DEV_AUXDATA("samsung,exynos4210-spi", EXYNOS5_PA_SPI1,