From patchwork Thu May 30 05:19:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Birje X-Patchwork-Id: 247450 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id B5FA42C008F for ; Thu, 30 May 2013 15:17:55 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 161174A032; Thu, 30 May 2013 07:17:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZAyVC1frEs+y; Thu, 30 May 2013 07:17:49 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4A7614A03B; Thu, 30 May 2013 07:17:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C77994A020 for ; Thu, 30 May 2013 07:17:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4VzANddBnwzx for ; Thu, 30 May 2013 07:17:33 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by theia.denx.de (Postfix) with ESMTP id 2F6024A026 for ; Thu, 30 May 2013 07:17:29 +0200 (CEST) Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MNL00K0QINTDNC0@mailout2.samsung.com> for u-boot@lists.denx.de; Thu, 30 May 2013 14:17:19 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id FF.81.03969.FD0E6A15; Thu, 30 May 2013 14:17:19 +0900 (KST) X-AuditID: cbfee68f-b7f436d000000f81-de-51a6e0df6932 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 1A.31.21068.ED0E6A15; Thu, 30 May 2013 14:17:19 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MNL007IHIO8I4K0@mmp1.samsung.com>; Thu, 30 May 2013 14:17:18 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Date: Thu, 30 May 2013 10:49:50 +0530 Message-id: <1369891191-28274-2-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1369891191-28274-1-git-send-email-rajeshwari.s@samsung.com> References: <1369891191-28274-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGLMWRmVeSWpSXmKPExsWyRsSkWvf+g2WBBisucVvs2trCatFxpIXR YsrhLywW37ZsY7RY/noju8XbvZ3sDmwesxsusnjsnHWX3WPBplKPO9f2sHmcvbOD0aNvyyrG ALYoLpuU1JzMstQifbsEroyTJ/+zFexkr3g47TRzA2MHWxcjJ4eEgInEjC17oWwxiQv31gPZ XBxCAksZJTbu/McMU7R+wVqoxCJGiTmnJzGCJIQEJjJJvJ/jCGKzCRhJbD05DSwuIiAh8av/ KpjNLFAiMev0MTBbWMBPYtEriBoWAVWJF29vgdm8Ah4SPeu2QC1Tk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Kt1oJBAemJJanZqakFqEcwWJg5O qQZGxWcBgc3tyoeZP5mvkUjZdNfR78GbDVYr+pL/taTrpDUJ2XqxC0yRuJz2XPX9i2PzfHk4 4svP9E+2PpVmvi/J4EEsy6Gr175sXvVFRLrg6auTWSVvNz4/ralX6XSa9/H9g/fN6/7utlCd 5ty7ldUkd6vE1GamziuOWWsipiZ/nr5pG4edYdJtJZbijERDLeai4kQAIsBR7OYCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: u-boot-review@google.com, patches@linaro.org Subject: [U-Boot] [PATCH 1/2 V3] exynos: Export timer_get_us() to get microsecond timer X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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 Shinde --- Changes in V2: - Removed #ifdefine for exported function. Changes in V3: - None include/common.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/common.h b/include/common.h index 8a1f3e4..c228d44 100644 --- a/include/common.h +++ b/include/common.h @@ -590,6 +590,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) {