From patchwork Fri Oct 26 09:29:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kachhap X-Patchwork-Id: 1650511 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id DFEC140135 for ; Fri, 26 Oct 2012 09:08:58 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TRfsn-0007Qf-O2; Fri, 26 Oct 2012 09:07:13 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TRfsi-0007Nw-N9 for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2012 09:07:10 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCH005DNTB88NI0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2012 18:07:03 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 80.78.01231.7B25A805; Fri, 26 Oct 2012 18:07:03 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-bf-508a52b70f36 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 00.78.01231.6B25A805; Fri, 26 Oct 2012 18:07:03 +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 <0MCH00BAFT8G5T90@mmp1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 26 Oct 2012 18:07:02 +0900 (KST) From: Amit Daniel Kachhap To: kgene.kim@samsung.com Subject: [PATCH v2 2/2] ARM: exynos5: Add devicetree node for TMU driver Date: Fri, 26 Oct 2012 14:59:06 +0530 Message-id: <1351243746-4173-3-git-send-email-amit.daniel@samsung.com> X-Mailer: git-send-email 1.6.6.rc2 In-reply-to: <1351243746-4173-2-git-send-email-amit.daniel@samsung.com> References: <1351243746-4173-1-git-send-email-amit.daniel@samsung.com> <1351243746-4173-2-git-send-email-amit.daniel@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsWyRsSkVnd7UFeAwcV9QhabHl9jdWD02Lyk PoAxissmJTUnsyy1SN8ugStj806Dgm0iFSe/JjUwThTsYuTkkBAwkVj1eQE7hC0mceHeerYu Ri4OIYGljBLTrl5lgim6suwYK0RiEaPEj4uXoKrWM0lMutnDCFLFJmAs8XPnfrBRIgKSEk0N f5hBbGaBqYwS7UukQGxhAQ+JjVd3soLYLAKqEl3LloPZvAJuEnPmvGaE2KYksaH3KNBmDg5O AXeJQ9d0IXY1M0rseziZGaJXQOLb5EMsIDUSArISmw4wg9RICFxmk1i88TgrxBxJiYMrbrBM YBRewMiwilE0tSC5oDgpPddQrzgxt7g0L10vOT93EyMwAE//eya1g3Flg8UhRgEORiUe3oiU zgAh1sSy4srcQ4wSHMxKIry7pwKFeFMSK6tSi/Lji0pzUosPMfoAXTKRWUo0OR8YHXkl8YbG JuamxqaWRkZmpqY4hJXEeZs9UgKEBNITS1KzU1MLUotgxjFxcEo1MEqXLdow++4PoQU8k69I TLn+6IfQWv/qO+uN4jNaNiQneJ6MTQzXNt1YuapSz24uR++fOw1BEY5zDl3X/MHzW1RDe4Hf CXsBO3PN0E5fvvmb1ZSDNgqe+FTtULrf9dSaVQVHyp88N1jcu/zhxQZmW92jwescAg6/5boT sebDm72mrXuu2aTfma/EUpyRaKjFXFScCABl48XPbQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupkkeLIzCtJLcpLzFFi42I5/e+xgO72oK4Ag9OrWS02Pb7G6sDosXlJ fQBjVAOjTUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7Q VCWFssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFBcD1GBmggYQ1jxuadBgXbRCpOfk1qYJwo 2MXIySEhYCJxZdkxVghbTOLCvfVsXYxcHEICixglfly8BOWsZ5KYdLOHEaSKTcBY4ufO/ewg toiApERTwx9mEJtZYCqjRPsSKRBbWMBDYuPVnWBTWQRUJbqWLQezeQXcJObMec0IsU1JYkPv UaYuRg4OTgF3iUPXdCF2NTNK7Hs4mXkCI+8CRoZVjKKpBckFxUnpuYZ6xYm5xaV56XrJ+bmb GMHh/UxqB+PKBotDjAIcjEo8vBEpnQFCrIllxZW5hxglOJiVRHh3TwUK8aYkVlalFuXHF5Xm pBYfYvQBumois5Rocj4w9vJK4g2NTcxNjU0tTSxMzCxxCCuJ8zZ7pAQICaQnlqRmp6YWpBbB jGPi4JRqYOzT/hfQOmVJTpvCLqkIlWXzeudOurY35fjKeLZcHon5rXoez20WbFA18Wa9E7DN 8OLEMqtY43us++Ztm5oXPjtLqntvq+bvNUtE6y5EuZ5ea/AgYsvnZz6XX5jnn8lWnrfz+cH8 pcLh51t2RdVwtJk8vrGszjgz1PXGE9lJsqcFbpTala+pTVViKc5INNRiLipOBADtTAVpnAIA AA== X-CFilter-Loop: Reflected X-Spam-Note: CRM114 invocation failed X-Spam-Score: -7.6 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.24 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 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] Cc: Amit Daniel Kachhap , linux-samsung-soc@vger.kernel.org, amit.kachhap@linaro.org, linux-arm-kernel@lists.infradead.org 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 From: Amit Daniel Kachhap This patch adds necessary source definations needed for TMU driver and adds devicetree node for exynos5250. Signed-off-by: Amit Daniel Kachhap --- arch/arm/boot/dts/exynos5250.dtsi | 6 ++++++ arch/arm/mach-exynos/clock-exynos5.c | 5 +++++ arch/arm/mach-exynos/include/mach/map.h | 1 + arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 4 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 49546bc..670dfdb 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -74,6 +74,12 @@ interrupts = <0 43 0>, <0 44 0>; }; + tmu@10060000 { + compatible = "samsung,exynos5250-tmu"; + reg = <0x10060000 0x100>; + interrupts = <0 65 0>; + }; + serial@12C00000 { compatible = "samsung,exynos4210-uart"; reg = <0x12C00000 0x100>; diff --git a/arch/arm/mach-exynos/clock-exynos5.c b/arch/arm/mach-exynos/clock-exynos5.c index 2ca9391..d4ae64e 100644 --- a/arch/arm/mach-exynos/clock-exynos5.c +++ b/arch/arm/mach-exynos/clock-exynos5.c @@ -616,6 +616,11 @@ static struct clk exynos5_init_clocks_off[] = { .enable = exynos5_clk_ip_peric_ctrl, .ctrlbit = (1 << 24), }, { + .name = "tmu_apbif", + .parent = &exynos5_clk_aclk_66.clk, + .enable = exynos5_clk_ip_peris_ctrl, + .ctrlbit = (1 << 21), + }, { .name = "rtc", .parent = &exynos5_clk_aclk_66.clk, .enable = exynos5_clk_ip_peris_ctrl, diff --git a/arch/arm/mach-exynos/include/mach/map.h b/arch/arm/mach-exynos/include/mach/map.h index 772acd3..2a28ef9 100644 --- a/arch/arm/mach-exynos/include/mach/map.h +++ b/arch/arm/mach-exynos/include/mach/map.h @@ -89,6 +89,7 @@ #define EXYNOS4_PA_L2CC 0x10502000 #define EXYNOS4_PA_TMU 0x100C0000 +#define EXYNOS5_PA_TMU 0x10060000 #define EXYNOS4_PA_MDMA0 0x10810000 #define EXYNOS4_PA_MDMA1 0x12850000 diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index b7f1154..f8d5a9b 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -76,6 +76,8 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = { OF_DEV_AUXDATA("samsung,exynos5-gsc", EXYNOS5_PA_GSC3, "exynos-gsc.3", NULL), OF_DEV_AUXDATA("samsung,mfc-v6", 0x11000000, "s5p-mfc-v6", NULL), + OF_DEV_AUXDATA("samsung,exynos5250-tmu", EXYNOS5_PA_TMU, + "exynos-tmu", NULL), {}, };