From patchwork Tue Mar 6 01:38:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: matt.waddel@linaro.org X-Patchwork-Id: 7102 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 0F83923DE1 for ; Tue, 6 Mar 2012 01:39:09 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id C507BA18223 for ; Tue, 6 Mar 2012 01:39:08 +0000 (UTC) Received: by iage36 with SMTP id e36so8575738iag.11 for ; Mon, 05 Mar 2012 17:39:08 -0800 (PST) Received: from mr.google.com ([10.50.195.234]) by 10.50.195.234 with SMTP id ih10mr8884187igc.50.1330997948328 (num_hops = 1); Mon, 05 Mar 2012 17:39:08 -0800 (PST) Received: by 10.50.195.234 with SMTP id ih10mr7353232igc.50.1330997948286; Mon, 05 Mar 2012 17:39:08 -0800 (PST) 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.231.53.18 with SMTP id k18csp43543ibg; Mon, 5 Mar 2012 17:39:07 -0800 (PST) Received: by 10.68.129.36 with SMTP id nt4mr49364199pbb.116.1330997946885; Mon, 05 Mar 2012 17:39:06 -0800 (PST) Received: from mail-pw0-f50.google.com (mail-pw0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id c8si20148147pbv.47.2012.03.05.17.39.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Mar 2012 17:39:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of matt.waddel@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of matt.waddel@linaro.org) smtp.mail=matt.waddel@linaro.org Received: by pbcxa12 with SMTP id xa12so586219pbc.37 for ; Mon, 05 Mar 2012 17:39:06 -0800 (PST) Received-SPF: pass (google.com: domain of matt.waddel@linaro.org designates 10.68.219.232 as permitted sender) client-ip=10.68.219.232; Received: from mr.google.com ([10.68.219.232]) by 10.68.219.232 with SMTP id pr8mr55710723pbc.12.1330997946648 (num_hops = 1); Mon, 05 Mar 2012 17:39:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.219.232 with SMTP id pr8mr47665424pbc.12.1330997946568; Mon, 05 Mar 2012 17:39:06 -0800 (PST) Received: from localhost.localdomain (c-98-202-116-201.hsd1.ut.comcast.net. [98.202.116.201]) by mx.google.com with ESMTPS id q1sm14778477pbq.68.2012.03.05.17.39.05 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Mar 2012 17:39:06 -0800 (PST) From: matt.waddel@linaro.org To: mwaddel@yahoo.com Cc: Matt Waddel Subject: [PATCH 1/1] arm: vexpress: Fixed get_ticks/get_tbclk build failures Date: Mon, 5 Mar 2012 18:38:56 -0700 Message-Id: <1330997936-22822-1-git-send-email-matt.waddel@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <201203050715.46002.marex@denx.de> References: <201203050715.46002.marex@denx.de> X-Gm-Message-State: ALoCoQkwBG3jjDlcendUg9uBZg+GN0umTttY9Jn2/osqICI3nKqjnbNcW1CqP3Y4wWH99dvC9VNI From: Matt Waddel Added get_ticks() and get_tbclk() routines Signed-off-by: Matt Waddel --- board/armltd/vexpress/ca9x4_ct_vxp.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/board/armltd/vexpress/ca9x4_ct_vxp.c b/board/armltd/vexpress/ca9x4_ct_vxp.c index da6f14d..22e5af1 100644 --- a/board/armltd/vexpress/ca9x4_ct_vxp.c +++ b/board/armltd/vexpress/ca9x4_ct_vxp.c @@ -226,3 +226,13 @@ void lowlevel_init(void) ulong get_board_rev(void){ return readl((u32 *)SYS_ID); } + +unsigned long long get_ticks(void) +{ + return get_timer(0); +} + +ulong get_tbclk(void) +{ + return (ulong)CONFIG_SYS_HZ; +}