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: 144856 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 83658B6EEC for ; Tue, 6 Mar 2012 18:02:10 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2CD192809D; Tue, 6 Mar 2012 08:02:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uq6pTZXbyflm; Tue, 6 Mar 2012 08:02:08 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5444A28086; Tue, 6 Mar 2012 08:02:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0351A28078 for ; Tue, 6 Mar 2012 02:40:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NxX3YPuxwjRz for ; Tue, 6 Mar 2012 02:40:46 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by theia.denx.de (Postfix) with ESMTPS id 218D62805F for ; Tue, 6 Mar 2012 02:40:44 +0100 (CET) Received: by pbbrq13 with SMTP id rq13so3195558pbb.3 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; Authentication-Results: mr.google.com; spf=pass (google.com: domain of matt.waddel@linaro.org designates 10.68.223.230 as permitted sender) smtp.mail=matt.waddel@linaro.org Received: from mr.google.com ([10.68.223.230]) by 10.68.223.230 with SMTP id qx6mr12239576pbc.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 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: ALoCoQmqSLPaHIvvqkbnsEt8y4UaW/WyYMaUFV3qWixQ1EAWxMgvQv3i3AGbehqGOtcZwirzoTgP X-Mailman-Approved-At: Tue, 06 Mar 2012 08:02:04 +0100 Cc: Matt Waddel , patches@linaro.org Subject: [U-Boot] [PATCH 1/1] arm: vexpress: Fixed get_ticks/get_tbclk build failures X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de 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; +}