* [U-Boot-Users] [PATCH] Add sa1100 get_ticks
@ 2004-03-10 2:42 George G. Davis
2004-03-14 15:17 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: George G. Davis @ 2004-03-10 2:42 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 2+ messages in thread* [U-Boot-Users] [PATCH] Add sa1100 get_ticks
2004-03-10 2:42 [U-Boot-Users] [PATCH] Add sa1100 get_ticks George G. Davis
@ 2004-03-14 15:17 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2004-03-14 15:17 UTC (permalink / raw)
To: u-boot
In message <20040310024243.GY23258@mvista.com> you wrote:
>
> This fixes recent build failure for sa1100 targets:
Thanks, added.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Bugs are by far the largest and most successful class of
entity, with nearly a million known species. In this res-
pect they outnumber all the other known creatures about
four to one. -- Professor Snope's Encyclopedia of Animal
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-14 15:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-10 2:42 [U-Boot-Users] [PATCH] Add sa1100 get_ticks George G. Davis
2004-03-14 15:17 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox