summaryrefslogtreecommitdiff
path: root/cpu/pxa
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-10-08 22:33:00 +0000
committerwdenk <wdenk>2003-10-08 22:33:00 +0000
commitfc3e2165efda62670d447617a7d44c5666178ea4 (patch)
treea1ab5ba88bafe1fbb0e539f81016cead9cab81c0 /cpu/pxa
parentef1464cc01cf9dcab52396283bf597e609caa450 (diff)
downloadu-boot-imx-fc3e2165efda62670d447617a7d44c5666178ea4.zip
u-boot-imx-fc3e2165efda62670d447617a7d44c5666178ea4.tar.gz
u-boot-imx-fc3e2165efda62670d447617a7d44c5666178ea4.tar.bz2
* Patch by Sangmoon Kim, 23 Sep 2003:
fix pll_pci_to_mem_multiplier table for MPC8245 * Patch by Anders Larsen, 22 Sep 2003: enable timed autoboot on PXA * Patch by David Müller, 22 Sep 2003: - add $(CFLAGS) to "-print-libgcc-filename" so compiler driver returns correct libgcc file path - "latency" reduction of busy-loop waiting to improve "U-Boot" boot time on s3c24x0 systems * Patch by Jon Diekema, 19 Sep 2003: - Add CFG_FAULT_ECHO_LINK_DOWN option to echo the inverted Ethernet link state to the fault LED. - In NetLoop, make the Fault LED reflect the link status. The link status gets updated on entry, and on timeouts.
Diffstat (limited to 'cpu/pxa')
-rw-r--r--cpu/pxa/interrupts.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/cpu/pxa/interrupts.c b/cpu/pxa/interrupts.c
index cf529f4..b161b74 100644
--- a/cpu/pxa/interrupts.c
+++ b/cpu/pxa/interrupts.c
@@ -202,3 +202,23 @@ void udelay_masked (unsigned long usec)
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;
+}