From patchwork Tue Mar 6 01:15:03 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: 7101 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 A6A2423E64 for ; Tue, 6 Mar 2012 01:15:12 +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 6DEBDA1820F for ; Tue, 6 Mar 2012 01:15:12 +0000 (UTC) Received: by iage36 with SMTP id e36so8539390iag.11 for ; Mon, 05 Mar 2012 17:15:11 -0800 (PST) Received: by 10.50.85.202 with SMTP id j10mr7188036igz.58.1330996511847; Mon, 05 Mar 2012 17:15:11 -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 k18csp43177ibg; Mon, 5 Mar 2012 17:15:11 -0800 (PST) Received: by 10.68.237.66 with SMTP id va2mr37505106pbc.32.1330996510829; Mon, 05 Mar 2012 17:15:10 -0800 (PST) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx.google.com with ESMTPS id e6si22650550pbj.30.2012.03.05.17.15.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Mar 2012 17:15:10 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.44 is neither permitted nor denied by best guess record for domain of matt.waddel@linaro.org) client-ip=209.85.210.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.44 is neither permitted nor denied by best guess record for domain of matt.waddel@linaro.org) smtp.mail=matt.waddel@linaro.org Received: by dakl33 with SMTP id l33so16811470dak.17 for ; Mon, 05 Mar 2012 17:15:09 -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 qx6mr12043679pbc.29.1330996509961 (num_hops = 1); Mon, 05 Mar 2012 17:15:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.68.223.230 with SMTP id qx6mr10273598pbc.29.1330996509863; Mon, 05 Mar 2012 17:15:09 -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 o2sm9830065pbb.45.2012.03.05.17.15.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Mar 2012 17:15:08 -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:15:03 -0700 Message-Id: <1330996503-22411-1-git-send-email-matt.waddel@linaro.org> X-Mailer: git-send-email 1.7.5.4 X-Gm-Message-State: ALoCoQliEoXUwpNy42K17iWok8RmmaA5bcJdRqyAn/IzHCW37SW8tkSZBNTjvHysSLT9H2YS3Hpr 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; +}