From patchwork Wed Jul 25 12:06:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Padmavathi Venna X-Patchwork-Id: 1236891 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 87EE1DFFCD for ; Wed, 25 Jul 2012 12:08:15 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Su0J2-0000vs-EJ; Wed, 25 Jul 2012 12:03:08 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Su0IS-0000vH-Kx for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2012 12:03:01 +0000 Received: from epcpsbgm2.samsung.com (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M7P001U3TFFCPQ0@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2012 21:02:12 +0900 (KST) X-AuditID: cbfee61b-b7f566d000005c8a-27-500fe044aee2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id CF.A8.23690.440EF005; Wed, 25 Jul 2012 21:02:12 +0900 (KST) Received: from padma-linuxpc.sisodomain.com ([107.108.83.35]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M7P003SETFH9250@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 25 Jul 2012 21:02:12 +0900 (KST) From: Padmavathi Venna To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] ARM: EXYNOS: Add static mapping for EXYNOS Audio Subsystem Date: Wed, 25 Jul 2012 17:36:49 +0530 Message-id: <1343218009-30400-1-git-send-email-padma.v@samsung.com> X-Mailer: git-send-email 1.7.4.4 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOJMWRmVeSWpSXmKPExsVy+t9jQV2XB/wBBkv3yFhsenyN1YHRY/OS +gDGKC6blNSczLLUIn27BK6Mf13TWQomClTMXPOXuYFxF28XIyeHhICJxOMzC9kgbDGJC/fW A9lcHEIC0xklzm1ZxAiSEBLYyiTxt8m/i5GDg01AR6LlrAuIKSLgLbH8miJIObPAUUaJ3kUr WEDKhYHiF78sZwWxWQRUJXZ3n2YEqecVcJa49CoFYpWCxLGpX1knMHIvYGRYxSiaWpBcUJyU nmukV5yYW1yal66XnJ+7iRHsvWfSOxhXNVgcYhTgYFTi4V3xki9AiDWxrLgy9xCjBAezkgjv 4xv8AUK8KYmVValF+fFFpTmpxYcYpTlYlMR5Tby/+gsJpCeWpGanphakFsFkmTg4pRoYA5n+ /pAUc1QTZ3XklT+wj5HH2abBZu6bQ/tuXkwU8Fwif/jXiylKt6YoH3PblLuqI/5c+XoPAfsz /queRLCeDw06wVFv8i0wO2rzNL++qoOHfQtn5mwVOr18YYHYQR1P8SmiFiZL0maETtnxsMLY tKpB6dzlPpGtnVyTqqRKHmt9aOsyFJykxFKckWioxVxUnAgAr07HptoBAAA= X-TM-AS-MML: No X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.9 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.25 listed in list.dnswl.org] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 4.0 HDRS_LCASE Odd capitalization of message header Cc: kgene.kim@samsung.com, rcsekar@samsung.com, sbkim73@samsung.com, sangsu4u.park@samsung.com, padma.v@samsung.com, joshi@samsung.com, thutt@chromium.org, ben-linux@fluff.org, olofj@google.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The CMU of EXYNOS can't control Audio Subsystem's clocks because AUDSS SFRs aren't located in CMU. But AUDSS is a kind of CMU for Audio Subsystem and need to use clock framework. This mapping address will be used for AUDSS clock control. Signed-off-by: sangsu4u.park Signed-off-by: Padmavathi Venna --- arch/arm/mach-exynos/common.c | 5 +++++ arch/arm/mach-exynos/include/mach/map.h | 1 + arch/arm/plat-samsung/include/plat/map-s5p.h | 2 ++ 3 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/common.c b/arch/arm/mach-exynos/common.c index 4eb39cd..4070c79 100644 --- a/arch/arm/mach-exynos/common.c +++ b/arch/arm/mach-exynos/common.c @@ -109,6 +109,11 @@ static struct map_desc exynos_iodesc[] __initdata = { .pfn = __phys_to_pfn(EXYNOS_PA_CHIPID), .length = SZ_4K, .type = MT_DEVICE, + }, { + .virtual = (unsigned long)S5P_VA_AUDSS, + .pfn = __phys_to_pfn(EXYNOS_PA_AUDSS), + .length = SZ_4K, + .type = MT_DEVICE, }, }; diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index 5cf7d91..9c044a0 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -39,6 +39,7 @@ #define EXYNOS4_PA_G2D 0x12800000 +#define EXYNOS_PA_AUDSS 0x03810000 #define EXYNOS_PA_I2S0 0x03830000 #define EXYNOS4_PA_I2S1 0xE2100000 #define EXYNOS4_PA_I2S2 0xE2A00000 diff --git a/arch/arm/plat-samsung/include/plat/map-s5p.h b/arch/arm/plat-samsung/include/plat/map-s5p.h index c2d7bda..3558277 100644 --- a/arch/arm/plat-samsung/include/plat/map-s5p.h +++ b/arch/arm/plat-samsung/include/plat/map-s5p.h @@ -40,6 +40,8 @@ #define S5P_VA_GIC_CPU S3C_ADDR(0x02810000) #define S5P_VA_GIC_DIST S3C_ADDR(0x02820000) +#define S5P_VA_AUDSS S3C_ADDR(0x02910000) + #define VA_VIC(x) (S3C_VA_IRQ + ((x) * 0x10000)) #define VA_VIC0 VA_VIC(0) #define VA_VIC1 VA_VIC(1)