From patchwork Fri May 17 12:52:57 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Birje X-Patchwork-Id: 244632 X-Patchwork-Delegate: promsoft@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 1AD002C0090 for ; Fri, 17 May 2013 22:56:54 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DE3CE4A0C3; Fri, 17 May 2013 14:56:52 +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 Yw0tMGHs5YQ1; Fri, 17 May 2013 14:56:52 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 818554A0B9; Fri, 17 May 2013 14:56:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CF3F24A0B6 for ; Fri, 17 May 2013 14:56:26 +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 jkJ-sAA53ddp for ; Fri, 17 May 2013 14:56:20 +0200 (CEST) X-Greylist: delayed 604 seconds by postgrey-1.27 at theia; Fri, 17 May 2013 14:56:14 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 7C89F4A09F for ; Fri, 17 May 2013 14:56:14 +0200 (CEST) Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMY004GG0SVEW10@mailout2.samsung.com> for u-boot@lists.denx.de; Fri, 17 May 2013 21:46:07 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.123]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 0E.25.08825.F8626915; Fri, 17 May 2013 21:46:07 +0900 (KST) X-AuditID: cbfee68e-b7f276d000002279-48-5196268fa720 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 51.C4.16109.F8626915; Fri, 17 May 2013 21:46:07 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMY004NE0QITT10@mmp2.samsung.com>; Fri, 17 May 2013 21:46:07 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Date: Fri, 17 May 2013 18:22:57 +0530 Message-id: <1368795178-25909-2-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1368795178-25909-1-git-send-email-rajeshwari.s@samsung.com> References: <1368795178-25909-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRmVeSWpSXmKPExsWyRsSkWrdfbVqgQdt9QYuOIy2MFlMOf2Gx +LZlG6PF8tcb2S3e7u1kd2D1mN1wkcVjwaZSjzvX9rB5nL2zg9Gjb8sqxgDWKC6blNSczLLU In27BK6Mns0tLAUL2Cs+XJ/D3sD4nbWLkZNDQsBE4v6yw0wQtpjEhXvr2boYuTiEBJYySrSv fQlXdPf/DUaIxHRGiXV966CciUwSazedYwapYhMwkth6chojiC0iICHxq/8qmM0sECXxvfsS O4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J4Q2MTc1NjU0sTCxMzS9KElcR5D7RaBwoJpCeWpGanphakFsFsYeLglGpg5Ptg tfSWSNEt94aPWztrw6b+a7c4K/Vi6mGjTaKLbU8t+5MzJ/z4vz0/r34OMpQK5LK53s/7tf/d bHGjEzG+Z3oWhlxQ3XH1zvZPGnxlje/rPFq275139W5bqGFeqOfUOfN1MkOva893Nfi5irXH Lbv1j+uN3fPnff7ey84un3m84U3ZHZbZV5RYijMSDbWYi4oTAfZbAyLcAgAA 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 V2] 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. include/common.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/common.h b/include/common.h index 0cfa6a8..7e54fd7 100644 --- a/include/common.h +++ b/include/common.h @@ -577,6 +577,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) {