4 * Copyright (C) 2006, 2007 OpenWrt.org
6 * Carsten Langgaard, carstenl@mips.com
7 * Copyright (C) 1999,2000 MIPS Technologies, Inc. All rights reserved.
9 * This program is free software; you can distribute it and/or modify it
10 * under the terms of the GNU General Public License (Version 2) as
11 * published by the Free Software Foundation.
13 * This program is distributed in the hope it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
22 * Setting up the clock on the MIPS boards.
25 #include <linux/types.h>
26 #include <linux/init.h>
27 #include <linux/kernel_stat.h>
28 #include <linux/sched.h>
29 #include <linux/spinlock.h>
30 #include <linux/interrupt.h>
31 #include <linux/time.h>
32 #include <linux/timex.h>
33 #include <linux/mc146818rtc.h>
35 #include <asm/mipsregs.h>
36 #include <asm/ptrace.h>
37 #include <asm/hardirq.h>
39 #include <asm/div64.h>
42 #include <asm/mc146818-time.h>
43 #include <asm/msc01_ic.h>
45 #include <asm/mips-boards/generic.h>
46 #include <asm/mips-boards/prom.h>
47 #include <asm/mips-boards/maltaint.h>
48 #include <asm/mc146818-time.h>
49 #include <asm/ar7/ar7.h>
51 void __init
ar7_time_init(void)
53 mips_hpt_frequency
= ar7_cpu_freq() / 2;
56 void __init
plat_timer_setup(struct irqaction
*irq
)
This page took 0.047456 seconds and 5 git commands to generate.