blob: efc1f48923573d4731806326b1e72395775fde3d [file] [log] [blame]
Greg Ungererebafc172009-01-29 16:28:11 +10001/*
2 * linux/include/asm-m68k/timex.h
3 *
4 * m68k architecture timex specifications
5 */
Philippe De Muyter27567302009-08-12 16:35:28 +10006#ifndef _ASMm68K_TIMEX_H
7#define _ASMm68K_TIMEX_H
Greg Ungererebafc172009-01-29 16:28:11 +10008
Philippe De Muyter27567302009-08-12 16:35:28 +10009#ifdef CONFIG_COLDFIRE
10/*
11 * CLOCK_TICK_RATE should give the underlying frequency of the tick timer
12 * to make ntp work best. For Coldfires, that's the main clock.
13 */
14#include <asm/coldfire.h>
15#define CLOCK_TICK_RATE MCF_CLK
16#else
17/*
18 * This default CLOCK_TICK_RATE is probably wrong for many 68k boards
19 * Users of those boards will need to check and modify accordingly
20 */
Greg Ungererebafc172009-01-29 16:28:11 +100021#define CLOCK_TICK_RATE 1193180 /* Underlying HZ */
Philippe De Muyter27567302009-08-12 16:35:28 +100022#endif
Greg Ungererebafc172009-01-29 16:28:11 +100023
24typedef unsigned long cycles_t;
25
26static inline cycles_t get_cycles(void)
27{
28 return 0;
29}
30
Geert Uytterhoeven017cece2013-10-18 13:10:08 +020031extern unsigned long (*mach_random_get_entropy)(void);
32
33static inline unsigned long random_get_entropy(void)
34{
35 if (mach_random_get_entropy)
36 return mach_random_get_entropy();
37 return 0;
38}
39#define random_get_entropy random_get_entropy
40
Sam Ravnborg49148022009-01-16 21:58:10 +100041#endif