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 Shinde X-Patchwork-Id: 17283 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DB33825D81 for ; Thu, 30 May 2013 05:17:28 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf4273975wgh.1 for ; Wed, 29 May 2013 22:17:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to: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=EWjbSAuwyiGK5wvP9zMPU1cCGuLGi1iH3RSLEp9MWVw=; b=QmJVKtLtSIxTsJ0SK/882PofawK0oCX+WsZVLDLmJRFeweZeoANgYIyYeptCxG0aQm GHrm5EGy6t7CZ07EDVWdPdjABF06AL2Yt70xskPQH1mnssXe6SzcpQCDbQMuZtbm73Zu d3WVzZ/9R4G5cBbXXIob/qGSXSv846K9K+ATdhAsq7RSEIyJKu1JjKURPjFlqbWFU1qc ChhM6bZ1Y9q6+77+ZqlhEWuM1r9Tc5FMNGcUPr41t8vD0h/ceZxzA1niZJ9yOZUavdP7 luC2iYaDctQZ0JFrXNaKAJC4vTjk0a18wLYjjkdGkuSaiQo9ym+94AQ5v++YPtrKeZ5Y eA1w== X-Received: by 10.180.206.107 with SMTP id ln11mr7417850wic.7.1369891047906; Wed, 29 May 2013 22:17:27 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.93.234 with SMTP id cx10ls145144wib.23.gmail; Wed, 29 May 2013 22:17:27 -0700 (PDT) X-Received: by 10.194.77.15 with SMTP id o15mr2915258wjw.27.1369891047830; Wed, 29 May 2013 22:17:27 -0700 (PDT) Received: from mail-ve0-x233.google.com (mail-ve0-x233.google.com [2607:f8b0:400c:c01::233]) by mx.google.com with ESMTPS id lv7si360278wjb.208.2013.05.29.22.17.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 May 2013 22:17:27 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::233 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::233; Received: by mail-ve0-f179.google.com with SMTP id d10so5160021vea.24 for ; Wed, 29 May 2013 22:17:26 -0700 (PDT) X-Received: by 10.220.192.3 with SMTP id do3mr4052773vcb.16.1369891046774; Wed, 29 May 2013 22:17:26 -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.229.199 with SMTP id jj7csp1936vcb; Wed, 29 May 2013 22:17:26 -0700 (PDT) X-Received: by 10.68.248.100 with SMTP id yl4mr6098239pbc.125.1369891045666; Wed, 29 May 2013 22:17:25 -0700 (PDT) Received: from mailout2.samsung.com (mailout2.samsung.com. [203.254.224.25]) by mx.google.com with ESMTP id uh1si28800089pab.36.2013.05.29.22.17.25 for ; Wed, 29 May 2013 22:17:25 -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 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 patches@linaro.org; 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 Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, u-boot-review@google.com, jagannadh.teki@gmail.com Subject: [PATCH 1/2 V3] exynos: Export timer_get_us() to get microsecond timer 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/ KpjNLFAiMev0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qicxSosn5wAjPK4k3NDYxNzU2tTSxMDGzJE1YSZz3YKt1oJBAemJJanZqakFqEcwWJg5O qQZGxWcBgc3tyoeZP5mvkUjZdNfR78GbDVYr+pL/taTrpDUJ2XqxC0yRuJz2XPX9i2PzfHk4 4svP9E+2PpVmvi/J4EEsy6Gr175sXvVFRLrg6auTWSVvNz4/ralX6XSa9/H9g/fN6/7utlCd 5ty7ldUkd6vE1GamziuOWWsipiZ/nr5pG4edYdJtJZbijERDLeai4kQAIsBR7OYCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQn9Byb75M1Qp/J1w5feliT18A8EUiMf09DHldAkhtwiLuaqqynMa8CUTSf6qYzyJ7p796dQ X-Original-Sender: rajeshwari.s@samsung.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::233 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. 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) {