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 Shinde X-Patchwork-Id: 17022 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f199.google.com (mail-qc0-f199.google.com [209.85.216.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9ECAA238F0 for ; Fri, 17 May 2013 12:46:51 +0000 (UTC) Received: by mail-qc0-f199.google.com with SMTP id s1sf585355qcw.10 for ; Fri, 17 May 2013 05:46:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-auditid:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-brightmail-tracker:x-brightmail-tracker :dlp-filter:x-mtr:x-cfilter-loop:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=ZrCZAzShKMf31qsr7IjZ5qyceNV9hmnyGPdQWNC1AO0=; b=SeZ/kpviyPnd7dy7YNesh6Xcsnzu2rCA37mpScbjYi0+v0DfR73x90XAIb/sJi5FQ1 zb/CmmmQYg4WcTtaumqY3ohnOJr59NsO5d5ZkAiHA0ckT/WwIzDIONcJZhWrCvA5xNpu sfk4/mHE1fqpotIoJDkfpzGiDATb3Y/T7HTrAKX2N2fgPEaOEqNGejxDSrV5WgAR5y5r pMqS0zmodzax/0gJs6HkVWKQDx4nQTm4ZwFaNc0kgIkBFyLlPdQ7NtDsEma6NwXDwQNO sgRN3OvSAknq9dvT0BzCN0/lMaalZBzw9w2AmQBVsXobxscrOrQpdXUtyAAN+tZBU+Rc vCFg== X-Received: by 10.236.190.134 with SMTP id e6mr23729877yhn.40.1368794770155; Fri, 17 May 2013 05:46:10 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.101.34 with SMTP id fd2ls1686945qeb.7.gmail; Fri, 17 May 2013 05:46:10 -0700 (PDT) X-Received: by 10.52.230.201 with SMTP id ta9mr25687080vdc.119.1368794769997; Fri, 17 May 2013 05:46:09 -0700 (PDT) Received: from mail-ve0-x22a.google.com (mail-ve0-x22a.google.com [2607:f8b0:400c:c01::22a]) by mx.google.com with ESMTPS id gs2si5777748vdc.11.2013.05.17.05.46.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 May 2013 05:46:09 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22a; Received: by mail-ve0-f170.google.com with SMTP id 15so2109406vea.15 for ; Fri, 17 May 2013 05:46:09 -0700 (PDT) X-Received: by 10.52.233.34 with SMTP id tt2mr25000026vdc.70.1368794769801; Fri, 17 May 2013 05:46:09 -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.126.138 with SMTP id c10csp107910vcs; Fri, 17 May 2013 05:46:09 -0700 (PDT) X-Received: by 10.66.252.133 with SMTP id zs5mr22366531pac.47.1368794768523; Fri, 17 May 2013 05:46:08 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id tc4si7805405pbc.154.2013.05.17.05.46.08 for ; Fri, 17 May 2013 05:46:08 -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 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 patches@linaro.org; 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 Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, u-boot-review@google.com Subject: [PATCH 1/2 V2] EXYNOS: Export timer_get_us() to get microsecond timer 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/8qmM0sECXxv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4zmvJJ4Q2MTc1NjU0sTCxMzS9KElcR5D7RaBwoJpCeWpGanphakFsFsYeLglGpg5Ptg tfSWSNEt94aPWztrw6b+a7c4K/Vi6mGjTaKLbU8t+5MzJ/z4vz0/r34OMpQK5LK53s/7tf/d bHGjEzG+Z3oWhlxQ3XH1zvZPGnxlje/rPFq275139W5bqGFeqOfUOfN1MkOva893Nfi5irXH Lbv1j+uN3fPnff7ey84un3m84U3ZHZbZV5RYijMSDbWYi4oTAfZbAyLcAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQlKhEgrwg1L5e9hsAolWhd5w8MfZllKLR6gyo8GzpEzG7JryXd8Xad1D8cJ+UxkNZNP6Pt0 X-Original-Sender: rajeshwari.s@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22a 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: , 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) {