From patchwork Tue Oct 8 10:50:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 20889 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A0C4426ED8 for ; Tue, 8 Oct 2013 10:48:40 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id gd11sf15088983vcb.4 for ; Tue, 08 Oct 2013 03:48:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:dlp-filter:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=j0LkvcxCWpflIZrloMHxcerfQ3jaN1GDzMyVX4qgiqI=; b=gle35jXNZPBsM4sjGyywMAfiTod5z6Z+assm3BqlTbaSSwbSSgHtRQKMnNieccmV5g U62zlwYXlKzr+0FGujpYY7zyQgEKnyoG/RdoQAIyczKUaIc6Ckvp0kgAYF6SdrYXyNtu ytCWSogE54laLM2AWwIdqW89XXDvHm0gKSpmfgjIJme665DEI4GRA3OnHC3niaZ4Phtt +gimiyCG/LIY3vxzT7JdfdEvwhwx3YL5L+LiLTmdkpoGrDlSpPHPvQXCAxgnuK6omd9o xTWx4OCRkGpDKu+BR3MjPMGEBry72Sh5fgk/70aUHY0frT8JlDqID9NIXzp4HvoN32cM 3t2g== X-Received: by 10.236.93.45 with SMTP id k33mr889133yhf.19.1381229320469; Tue, 08 Oct 2013 03:48:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.116.135 with SMTP id jw7ls161508qeb.58.gmail; Tue, 08 Oct 2013 03:48:40 -0700 (PDT) X-Received: by 10.52.228.137 with SMTP id si9mr422923vdc.29.1381229320317; Tue, 08 Oct 2013 03:48:40 -0700 (PDT) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id h2si9273552vcy.17.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Oct 2013 03:48:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.46; Received: by mail-vb0-f46.google.com with SMTP id p13so3968309vbe.19 for ; Tue, 08 Oct 2013 03:48:40 -0700 (PDT) X-Gm-Message-State: ALoCoQlZHnKnL/IjXvlrRrmef2dgrGWq3bH8CSBALbmqE0yASb7KmLaPmv09i5Cfif/EmuAGHtCs X-Received: by 10.52.65.136 with SMTP id x8mr440290vds.23.1381229320238; Tue, 08 Oct 2013 03:48:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp194478vcz; Tue, 8 Oct 2013 03:48:39 -0700 (PDT) X-Received: by 10.66.246.229 with SMTP id xz5mr2747300pac.128.1381229318932; Tue, 08 Oct 2013 03:48:38 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id fk10si26821689pab.0.1969.12.31.16.00.00; Tue, 08 Oct 2013 03:48:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.25 as permitted sender) client-ip=203.254.224.25; Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MUC00AHSJCFX9N0@mailout2.samsung.com>; Tue, 08 Oct 2013 19:48:38 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.125]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 7D.89.29948.603E3525; Tue, 08 Oct 2013 19:48:38 +0900 (KST) X-AuditID: cbfee691-b7f4a6d0000074fc-fe-5253e306edc6 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id AA.33.09055.503E3525; Tue, 08 Oct 2013 19:48:38 +0900 (KST) Received: from localhost.localdomain.com ([107.108.73.95]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MUC00059JCVG700@mmp1.samsung.com>; Tue, 08 Oct 2013 19:48:37 +0900 (KST) From: Rajeshwari S Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, u-boot-review@google.com, jagannadh.teki@gmail.com, alim.akhtar@samsung.com, Rajeshwari Shinde Subject: [PATCH 1/4] exynos: Export timer_get_us() to get microsecond timer Date: Tue, 08 Oct 2013 16:20:03 +0530 Message-id: <1381229406-12478-2-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.11.7 In-reply-to: <1381229406-12478-1-git-send-email-rajeshwari.s@samsung.com> References: <1381229406-12478-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplkeLIzCtJLcpLzFFi42JZI2JSq8v2ODjI4M9FHosH87axWTxcf5PF YtfWFlaLjiMtjBZTDn9hsWhZe4DV4tuWbYwWy19vZLd4u7eT3YHTY3bDRRaPnbPusnss2FTq cefaHjaPs3d2MHr0bVnFGMAWxWWTkpqTWZZapG+XwJVx/H87Y0EHe8XZiyfYGhhfsHYxcnJI CJhIPLm7hRnCFpO4cG89WxcjF4eQwFJGiU8z7jPCFLXP/8kOkVjEKHHi8TywDiGBLi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BuLLB4hCjAAejEg+vwOGgICHWxLLiytxDjBIc zEoivIH3g4OEeFMSK6tSi/Lji0pzUosPMSYDXTWRWUo0OR8Y/3kl8YbGJuamxqaWJhYmZpak CSuJ8x5otQ4UEkhPLEnNTk0tSC2C2cLEwSnVwNi7aUPqpXWv/Iu1dh4PfGJRdz9e6ORGgan7 jBPSc+7Pln6vlxeqorpN8N5K/VfHWjdLHU7N26v1om1B3ofdLmqGG2yeF3rvUnt0vyRkWZi0 UEnsliyh1ieFLib3nx27NslsDje/9tN9ZzI9Xgn9s7xvzb6ScZPNyuMlhz64/eZzlnt5Tf/k t8lKLMUZiYZazEXFiQAkfnYV9QIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: rajeshwari.s@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Rajeshwari Shinde This function, if implemented by the board, provides a microsecond timer. The granularity may be larger than 1us if hardware does not support this. Signed-off-by: Simon Glass Signed-off-by: Rajeshwari S Shinde --- include/common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/common.h b/include/common.h index 8addf43..42964bc 100644 --- a/include/common.h +++ b/include/common.h @@ -596,6 +596,12 @@ void ddr_enable_ecc(unsigned int dram_size); #endif #endif +/* + * Return the current value of a monotonically increasing microsecond timer. + * Granularity may be larger than 1us if hardware does not support this. + */ +ulong timer_get_us(void); + /* $(CPU)/cpu.c */ static inline int cpumask_next(int cpu, unsigned int mask) {