From patchwork Thu Apr 4 16:51:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 2394231 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork1.kernel.org (Postfix) with ESMTP id B68D53FD8C for ; Thu, 4 Apr 2013 16:54:23 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNnQc-0006d4-St for patchwork-linux-arm@patchwork.kernel.org; Thu, 04 Apr 2013 16:54:23 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNnOW-0008CH-Fh; Thu, 04 Apr 2013 16:52:12 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNnNx-0007sl-Ck for linux-arm-kernel@lists.infradead.org; Thu, 04 Apr 2013 16:51:38 +0000 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 <0MKQ0091PPHTFFG0@mailout2.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2013 01:51:36 +0900 (KST) X-AuditID: cbfee61b-b7f076d0000034b6-40-515daf982ff9 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D5.4C.13494.89FAD515; Fri, 05 Apr 2013 01:51:36 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MKQ00LPLPHMJW70@mmp2.samsung.com>; Fri, 05 Apr 2013 01:51:36 +0900 (KST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] ARM: EXYNOS: Add support for Exynos4210 EVT0 SoC Date: Thu, 04 Apr 2013 18:51:14 +0200 Message-id: <1365094275-4811-3-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.7.10 In-reply-to: <1365094275-4811-1-git-send-email-t.figa@samsung.com> References: <1365094275-4811-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOLMWRmVeSWpSXmKPExsVy+t9jQd0Z62MDDe6fl7E4MPshq0Xvgqts Fmeb3rBbbHp8jdVixvl9TBZrj9xlt1g/4zWLxbEZSxgdODzuXNvD5rF5Sb3H+RkLGT36tqxi 9Pi8SS6ANYrLJiU1J7MstUjfLoErY8t0l4KXwhVnzn5mb2B8INDFyMkhIWAi8eD1ZjYIW0zi wr31QDYXh5DAdEaJnkk/mCGcLiaJhw8WM4JUsQmoSXxueATWISKgITGl6zE7SBGzwHVGiRVr d7OCJIQFXCUmdz9hAbFZBFQl/p1fDBbnFXCUOLV/EwvEOnmJp/f7wAZxCjhJrJz5AcjmANrm KPFtTsgERt4FjAyrGEVTC5ILipPSc430ihNzi0vz0vWS83M3MYKD65n0DsZVDRaHGAU4GJV4 eDP6YgOFWBPLiitzDzFKcDArifAebQEK8aYkVlalFuXHF5XmpBYfYpTmYFES5z3Yah0oJJCe WJKanZpakFoEk2Xi4JRqYJyQN2nhrulLLz4yuMfw5+02a6Z+y/9heudV/q/dxczwxafVWa14 c7mI54vJ/Eqeoau+pN2t5gi65L1AQ8pYu1N4w+ykOT5a2ilTJjl+en/FvNhnwWaZz6bbOnme HlxQuuC0qOjsjbO6KnRSxEIsgpx9Sl+qMj+Lv/ZpH1v/mxuy/S4leTYKwkosxRmJhlrMRcWJ AIgHKu8qAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130404_125137_730093_A11B4212 X-CRM114-Status: UNSURE ( 9.91 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -9.3 (---------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-9.3 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 SPF_HELO_PASS SPF: HELO matches SPF record -2.4 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: kgene.kim@samsung.com, devicetree-discuss@lists.ozlabs.org, kyungmin.park@samsung.com, linux-samsung-soc@vger.kernel.org, thomas.abraham@linaro.org, Tomasz Figa , m.szyprowski@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch extends mach-exynos4-dt generic board file with support for Exynos4210 EVT0 SoC, which differs in availability of system timers and needs different time initialization. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- arch/arm/mach-exynos/Kconfig | 9 +++++++++ arch/arm/mach-exynos/mach-exynos4-dt.c | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig index e538705..56920b3 100644 --- a/arch/arm/mach-exynos/Kconfig +++ b/arch/arm/mach-exynos/Kconfig @@ -39,6 +39,15 @@ config CPU_EXYNOS4210 help Enable EXYNOS4210 CPU support +config SOC_EXYNOS4210_EVT0 + bool "SAMSUNG EXYNOS4210 EVT0" + default y + select SOC_EXYNOS4210 + select CLKSRC_MMIO + select SAMSUNG_HRT + help + Enable EXYNOS4210 EVT0 SoC support + config SOC_EXYNOS4212 bool "SAMSUNG EXYNOS4212" default y diff --git a/arch/arm/mach-exynos/mach-exynos4-dt.c b/arch/arm/mach-exynos/mach-exynos4-dt.c index b9ed834..ec6dd17 100644 --- a/arch/arm/mach-exynos/mach-exynos4-dt.c +++ b/arch/arm/mach-exynos/mach-exynos4-dt.c @@ -16,10 +16,12 @@ #include #include #include +#include #include #include #include +#include #include "common.h" @@ -65,3 +67,34 @@ DT_MACHINE_START(EXYNOS4210_DT, "Samsung Exynos4 (Flattened Device Tree)") .restart = exynos4_restart, .reserve = exynos4_reserve, MACHINE_END + +#ifdef CONFIG_SOC_EXYNOS4210_EVT0 +static void __init exynos4210_evt0_init_time(void) +{ + of_clk_init(NULL); + samsung_time_init(); +} + +static void __init exynos4210_evt0_dt_map_io(void) +{ + exynos4_dt_map_io(); +} + +static char const *exynos4210_evt0_dt_compat[] __initdata = { + "samsung,exynos4210-evt0", + NULL +}; + +DT_MACHINE_START(EXYNOS4210_EVT0_DT, "Samsung Exynos4210 EVT0 (Device Tree)") + .smp = smp_ops(exynos_smp_ops), + .init_irq = exynos4_init_irq, + .map_io = exynos4210_evt0_dt_map_io, + .init_early = exynos_firmware_init, + .init_machine = exynos4_dt_machine_init, + .init_late = exynos_init_late, + .init_time = exynos4210_evt0_init_time, + .dt_compat = exynos4210_evt0_dt_compat, + .restart = exynos4_restart, + .reserve = exynos4_reserve, +MACHINE_END +#endif