switch to 2.6.24
[librecmc/librecmc.git] / target / linux / adm5120 / files / arch / mips / adm5120 / time.c
1 /*
2  *  $Id$
3  *
4  *  ADM5120 specific hooks for MIPS CPU Counter/Compare timer
5  *
6  *  Copyright (C) 2007 OpenWrt.org
7  *  Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
8  *
9  *  This file was based on: arch/mips/gt64120/wrppmc/time.c
10  *      Original author: Mark.Zhan
11  *      Copyright (C) 1996, 1997, 2004 by Ralf Baechle
12  *      Copyright (C) 2006, Wind River System Inc.
13  *
14  *  This program is free software; you can redistribute it and/or modify it
15  *  under the terms of the GNU General Public License version 2 as published
16  *  by the Free Software Foundation.
17  *
18  */
19
20 #include <linux/types.h>
21 #include <linux/init.h>
22 #include <linux/interrupt.h>
23 #include <linux/timex.h>
24
25 #include <asm/irq.h>
26 #include <asm/cpu.h>
27 #include <asm/time.h>
28
29 #include <adm5120_info.h>
30 #include <adm5120_irq.h>
31
32 void __init plat_time_init(void)
33 {
34         mips_hpt_frequency = adm5120_speed / 2;
35 }