From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Waddel Date: Fri, 09 Mar 2012 17:11:00 -0700 Subject: [U-Boot] [PATCH resend] ARMV7/Vexpress: add missing get_ticks() and get_tbclk() In-Reply-To: <1329922591-14743-1-git-send-email-walimisdev@gmail.com> References: <1329922591-14743-1-git-send-email-walimisdev@gmail.com> Message-ID: <4F5A9C14.5000004@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/22/2012 07:56 AM, walimis wrote: > From: Liming Wang > > commit f31a911fe (arm, post: add missing post_time_ms for arm) > enables get_ticks and get_tbclk for all arm based boards, > arm/vexpress also needs these functions to work. > > Signed-off-by: Liming Wang Acked-by: Matt.Waddel at linaro.org > --- > 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..0b36d12 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; > +}