summaryrefslogtreecommitdiff
path: root/src/cpu/samsung/exynos5250/mct.c
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2013-05-02 16:47:54 -0700
committerRonald G. Minnich <rminnich@gmail.com>2013-05-06 05:32:07 +0200
commit998d0c6d50cd75a703ae6cb161a406a382cdd8a2 (patch)
treeda8c6955e7921afb2a42aa2f57dfc7b0f7f34a62 /src/cpu/samsung/exynos5250/mct.c
parent040f25b73a9e131d18c2f64a6c3b60e695e3d7d6 (diff)
exynos5250/snow: deprecate time.h
This re-introduces 2fde966 (http://review.coreboot.org/#/c/3177/) which was reverted due to unsatisfied dependencies. time.h We Hardly Knew Ye. This deprecates time.h which is currently only used by Exynos5250 and Snow. The original idea was to try and unify some of the various timer interfaces and has been supplanted by the monotonic timer API. timer_us() is now obsolete. timer_start() is now mct_start() and is exposed in exynos5250/clk.h. Change-Id: I8e60105629d9da68ed622e89209b3ef6c8e2445b Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: http://review.coreboot.org/3201 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/cpu/samsung/exynos5250/mct.c')
-rw-r--r--src/cpu/samsung/exynos5250/mct.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/cpu/samsung/exynos5250/mct.c b/src/cpu/samsung/exynos5250/mct.c
index 4216643140..db76e9d0b4 100644
--- a/src/cpu/samsung/exynos5250/mct.c
+++ b/src/cpu/samsung/exynos5250/mct.c
@@ -22,7 +22,7 @@
#include <arch/io.h>
#include <stdint.h>
-#include <time.h>
+
#include "clk.h"
struct __attribute__((packed)) mct_regs
@@ -101,16 +101,8 @@ uint64_t mct_raw_value(void)
return (upper << 32) | lower;
}
-void timer_start(void)
+void mct_start(void)
{
writel(readl(&mct->g_tcon) | (0x1 << 8), &mct->g_tcon);
enabled = 1;
}
-
-u32 timer_us(void)
-{
- uint64_t raw = mct_raw_value();
- static uint32_t ticks_per_microsecond = MCT_HZ/1000000;
- uint32_t usec = raw / ticks_per_microsecond;
- return usec;
-}