From: George G. Davis <davis_g@comcast.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Add sa1100 get_ticks
Date: Tue, 9 Mar 2004 21:42:43 -0500 [thread overview]
Message-ID: <20040310024243.GY23258@mvista.com> (raw)
Greetings,
This fixes recent build failure for sa1100 targets:
Index: u-boot/cpu/sa1100/interrupts.c
===================================================================
RCS file: /cvsroot/u-boot/u-boot/cpu/sa1100/interrupts.c,v
retrieving revision 1.2
diff -u -r1.2 interrupts.c
--- u-boot/cpu/sa1100/interrupts.c 27 Jun 2003 21:32:36 -0000 1.2
+++ u-boot/cpu/sa1100/interrupts.c 10 Mar 2004 02:09:43 -0000
@@ -218,3 +218,24 @@
while (tmo >= get_timer_masked ())
/*NOP*/;
}
+
+/*
+ * This function is derived from PowerPC code (read timebase as long long).
+ * On ARM it just returns the timer value.
+ */
+unsigned long long get_ticks(void)
+{
+ return get_timer(0);
+}
+
+/*
+ * This function is derived from PowerPC code (timebase clock frequency).
+ * On ARM it returns the number of timer ticks per second.
+ */
+ulong get_tbclk (void)
+{
+ ulong tbclk;
+
+ tbclk = CFG_HZ;
+ return tbclk;
+}
I haven't specifically tested get_ticks or get_tbclk. But this fixes the
build and my target (gcplus) works fine for those features that I have
tested (bootp/tftp/bootm) with this patch applied.
--
Regards,
George
next reply other threads:[~2004-03-10 2:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-10 2:42 George G. Davis [this message]
2004-03-14 15:17 ` [U-Boot-Users] [PATCH] Add sa1100 get_ticks Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040310024243.GY23258@mvista.com \
--to=davis_g@comcast.net \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox