forked from luck/tmp_suning_uos_patched
12e4396bf0
If R4k counter was used for hpt_timer and interrupt source, c0_hpt_timer_init() initializes the c0_compare register. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
60 lines
1.3 KiB
C
60 lines
1.3 KiB
C
/*
|
|
* linux/arch/mips/tx4938/common/setup.c
|
|
*
|
|
* common tx4938 setup routines
|
|
*
|
|
* 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the
|
|
* terms of the GNU General Public License version 2. This program is
|
|
* licensed "as is" without any warranty of any kind, whether express
|
|
* or implied.
|
|
*
|
|
* Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com)
|
|
*/
|
|
|
|
#include <linux/errno.h>
|
|
#include <linux/init.h>
|
|
#include <linux/kernel_stat.h>
|
|
#include <linux/module.h>
|
|
#include <linux/signal.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/types.h>
|
|
#include <linux/interrupt.h>
|
|
#include <linux/ioport.h>
|
|
#include <linux/timex.h>
|
|
#include <linux/slab.h>
|
|
#include <linux/random.h>
|
|
#include <linux/irq.h>
|
|
#include <asm/bitops.h>
|
|
#include <asm/bootinfo.h>
|
|
#include <asm/io.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/mipsregs.h>
|
|
#include <asm/system.h>
|
|
#include <asm/time.h>
|
|
#include <asm/tx4938/rbtx4938.h>
|
|
|
|
extern void toshiba_rbtx4938_setup(void);
|
|
extern void rbtx4938_time_init(void);
|
|
|
|
void __init tx4938_setup(void);
|
|
void __init tx4938_time_init(void);
|
|
void dump_cp0(char *key);
|
|
|
|
void __init
|
|
plat_mem_setup(void)
|
|
{
|
|
board_time_init = tx4938_time_init;
|
|
toshiba_rbtx4938_setup();
|
|
}
|
|
|
|
void __init
|
|
tx4938_time_init(void)
|
|
{
|
|
rbtx4938_time_init();
|
|
}
|
|
|
|
void __init plat_timer_setup(struct irqaction *irq)
|
|
{
|
|
setup_irq(TX4938_IRQ_CPU_TIMER, irq);
|
|
}
|