From patchwork Tue Mar 6 01:40:36 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: 7103 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 6D18F23DE1 for ; Tue, 6 Mar 2012 01:40:44 +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 36A66A1820F for ; Tue, 6 Mar 2012 01:40:44 +0000 (UTC) Received: by iage36 with SMTP id e36so8578147iag.11 for ; Mon, 05 Mar 2012 17:40:43 -0800 (PST) Received: by 10.50.85.202 with SMTP id j10mr7226668igz.58.1330998043698; Mon, 05 Mar 2012 17:40:43 -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 k18csp43565ibg; Mon, 5 Mar 2012 17:40:43 -0800 (PST) Received: by 10.68.201.201 with SMTP id kc9mr2734898pbc.143.1330998042939; Mon, 05 Mar 2012 17:40:42 -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 b5si5908060pbj.113.2012.03.05.17.40.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Mar 2012 17:40:42 -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 xa12so587813pbc.37 for ; Mon, 05 Mar 2012 17:40:42 -0800 (PST) Received-SPF: pass (google.com: domain of matt.waddel@linaro.org designates 10.68.223.230 as permitted sender) client-ip=10.68.223.230; Received: from mr.google.com ([10.68.223.230]) by 10.68.223.230 with SMTP id qx6mr12239577pbc.29.1330998042751 (num_hops = 1); Mon, 05 Mar 2012 17:40:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.223.230 with SMTP id qx6mr10437900pbc.29.1330998042689; Mon, 05 Mar 2012 17:40:42 -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 o2sm9885292pbb.45.2012.03.05.17.40.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Mar 2012 17:40:42 -0800 (PST) From: matt.waddel@linaro.org To: u-boot@lists.denx.de Cc: patches@linaro.org, Matt Waddel Subject: [PATCH 1/1] arm: vexpress: Fixed get_ticks/get_tbclk build failures Date: Mon, 5 Mar 2012 18:40:36 -0700 Message-Id: <1330998036-22900-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: ALoCoQkqVgDZDFvUjSAHLq0PNtTs9Ic/QG30qMnNUSvlwhqQftdh5QULawiUyUCo5aAWvyPr2hNj 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; +}