From patchwork Fri Mar 22 12:28:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 15532 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id EB5B923DEE for ; Fri, 22 Mar 2013 12:23:38 +0000 (UTC) Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com [209.85.220.181]) by fiordland.canonical.com (Postfix) with ESMTP id 95635A181A0 for ; Fri, 22 Mar 2013 12:23:38 +0000 (UTC) Received: by mail-vc0-f181.google.com with SMTP id hv10so3103940vcb.40 for ; Fri, 22 Mar 2013 05:23:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=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; bh=Ph88a5937u73wPZbBreMjreHvsPIzp6ZA909c+TVXL8=; b=fssd+oiiBGEoFfaT1G8w9hQo6poK3Uf0G1MEzclE3O0YhBqUaswH5iajzSAnnc6sXQ hV/2X+wJ/n+A7qhp6JvGTbCwf5nrRfx8zo5fEc8gCP4nPRhYDjXZjO7ypKNVXUj138iI dwXIx9iJpC68q6u+CV+T9lptmKVvRZWA0w61dHh3+BuJeIovYWvMeHCJIiTCzpi5qiKm Rq0AdSum3+U2ImVxvTbeQPJRRn5GEAzCAIpTdSBdO3owMqZZI7VuElHe5rtb8g8cifSk w+Cg6Pb7V7QIeyk/YHsfBrT6JS5OHJILdHjCX1jPbf2vp41srVM+ZKauESlxofVB1uNz rcDQ== X-Received: by 10.58.224.101 with SMTP id rb5mr1925528vec.17.1363955018088; Fri, 22 Mar 2013 05:23:38 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.233.198 with SMTP id ty6csp102029vec; Fri, 22 Mar 2013 05:23:37 -0700 (PDT) X-Received: by 10.68.31.130 with SMTP id a2mr2163375pbi.213.1363955017063; Fri, 22 Mar 2013 05:23:37 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id te10si2833224pab.241.2013.03.22.05.23.36; Fri, 22 Mar 2013 05:23:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MK200L2RAFBVCO0@mailout4.samsung.com>; Fri, 22 Mar 2013 21:23:35 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.124]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 09.A6.20872.74D4C415; Fri, 22 Mar 2013 21:23:35 +0900 (KST) X-AuditID: cbfee68d-b7f786d000005188-8b-514c4d47ad98 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 0A.65.17838.74D4C415; Fri, 22 Mar 2013 21:23:35 +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 <0MK200CQVAD0C220@mmp1.samsung.com>; Fri, 22 Mar 2013 21:23:35 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org Subject: [PATCH 1/2] EXYNOS: Export timer_get_us() to get microsecond timer Date: Fri, 22 Mar 2013 17:58:16 +0530 Message-id: <1363955297-3707-2-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1363955297-3707-1-git-send-email-rajeshwari.s@samsung.com> References: <1363955297-3707-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsWyRsSkRtfd1yfQ4HOvvsXD9TdZLDqOtDBa TDn8hcXi25ZtjBZv93ayO7B6zG64yOJx59oeNo+zd3YwevRtWcUYwBLFZZOSmpNZllqkb5fA lbHn2lbGgm72ivvz5zA2ML5g7WLk5JAQMJHYNGU1lC0mceHeerYuRi4OIYGljBLz7h1lhyn6 82UJK0RiEVBi3SIWCGcik8Ti4yvA2tkEjCS2npzGCGKLCEhI/Oq/CmYzC8RIvN7/gw3EFhbw lnj9ZTOYzSKgKjFh4yNmEJtXwF3iz5I3UNsUJI5N/Qo2k1PAQ2L5u59gc4SAas4+ucMOslhC oJld4vT/W4wQgwQkvk0+BHQRB1BCVmLTAWaIOZISB1fcYJnAKLyAkWEVo2hqQXJBcVJ6kaFe cWJucWleul5yfu4mRmAwn/73rHcH4+0D1ocYk4HGTWSWEk3OB0ZDXkm8obGZkYWpiamxkbml GWnCSuK8ai3WgUIC6YklqdmpqQWpRfFFpTmpxYcYmTg4pRoYmR+a3F7leDFbeBGL1oWGig/P nt3pOWxwrICNXfDb8j26N6wPHJllEFa3d2HYtrzzcidCypvfHHDor9e0n5L3ec4UsYiLFxvf nHBon1rv9eGU87rrEvfnX2Rc3vp4esBS60axacwnpq9MDWydIXTg7F1mU/OJ1yMyo0Vdg+7z MAb9O7Hiyt7zj5VYijMSDbWYi4oTAYVjOk58AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGIsWRmVeSWpSXmKPExsVy+t9jAV13X59Ag0cN6hYP199kseg40sJo MeXwFxaLb1u2MVq83dvJ7sDqMbvhIovHnWt72DzO3tnB6NG3ZRVjAEtUA6NNRmpiSmqRQmpe cn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBmJYWyxJxSoFBAYnGxkr4d pgmhIW66FjCNEbq+IUFwPUYGaCBhDWPGnmtbGQu62Svuz5/D2MD4grWLkZNDQsBE4s+XJVC2 mMSFe+vZuhi5OIQEFjFKzFu3iAXCmcgksfj4CrAqNgEjia0npzGC2CICEhK/+q+C2cwCMRKv 9/9gA7GFBbwlXn/ZDGazCKhKTNj4iBnE5hVwl/iz5A07xDYFiWNTv4LN5BTwkFj+7ifYHCGg mrNP7rBPYORdwMiwilE0tSC5oDgpPddQrzgxt7g0L10vOT93EyM4Vp5J7WBc2WBxiFGAg1GJ h1dDxztQiDWxrLgy9xCjBAezkgjvamufQCHelMTKqtSi/Pii0pzU4kOMyUBXTWSWEk3OB8Zx Xkm8obGJuamxqaWJhYmZJWnCSuK8B1qtA4UE0hNLUrNTUwtSi2C2MHFwSjUwtumZ73R+9FZn /6O5xtMuM0j3HP7wR8LpzPKwnsQS41bO5MLiA1N2lD9erN9m+5p9pm1wm4bs/0PHbATKtJ1W 77KOu9wgvqTke4DJTZ5JrS/eO/7Y/fi4M5fr7RL/rN27mxnFb3w8Prfj22n//SHRaj7VnCWP 7vHpy4nbnBLKMglkUMlbpL9IiaU4I9FQi7moOBEAkiwRx9kCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQmoAb3Hf+yvUxL6vhGLXhfnKM+RgOwsSgtfNd3VQQvyI8zf8ZUVhUTZoFgRIxpgnvDxwRwc 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 Acked-by: Simon Glass --- include/common.h | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/include/common.h b/include/common.h index 4ad17ea..0c21edc 100644 --- a/include/common.h +++ b/include/common.h @@ -558,6 +558,14 @@ void ddr_enable_ecc(unsigned int dram_size); #endif #endif +#if defined CONFIG_EXYNOS5 +/* + * 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); +#endif + /* $(CPU)/cpu.c */ static inline int cpumask_next(int cpu, unsigned int mask) {