Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | * linux/arch/mips/tx4938/common/setup.c |
| 3 | * |
| 4 | * common tx4938 setup routines |
| 5 | * |
| 6 | * 2003-2005 (c) MontaVista Software, Inc. This file is licensed under the |
| 7 | * terms of the GNU General Public License version 2. This program is |
| 8 | * licensed "as is" without any warranty of any kind, whether express |
| 9 | * or implied. |
| 10 | * |
| 11 | * Support for TX4938 in 2.6 - Manish Lachwani (mlachwani@mvista.com) |
| 12 | */ |
| 13 | |
| 14 | #include <linux/errno.h> |
| 15 | #include <linux/init.h> |
| 16 | #include <linux/kernel_stat.h> |
| 17 | #include <linux/module.h> |
| 18 | #include <linux/signal.h> |
| 19 | #include <linux/sched.h> |
| 20 | #include <linux/types.h> |
| 21 | #include <linux/interrupt.h> |
| 22 | #include <linux/ioport.h> |
| 23 | #include <linux/timex.h> |
| 24 | #include <linux/slab.h> |
| 25 | #include <linux/random.h> |
| 26 | #include <linux/irq.h> |
| 27 | #include <asm/bitops.h> |
| 28 | #include <asm/bootinfo.h> |
| 29 | #include <asm/io.h> |
| 30 | #include <asm/irq.h> |
| 31 | #include <asm/mipsregs.h> |
| 32 | #include <asm/system.h> |
| 33 | #include <asm/time.h> |
Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 34 | #include <asm/tx4938/rbtx4938.h> |
| 35 | |
| 36 | extern void toshiba_rbtx4938_setup(void); |
Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 37 | |
| 38 | void __init tx4938_setup(void); |
Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 39 | void dump_cp0(char *key); |
| 40 | |
Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 41 | void __init |
Ralf Baechle | 2925aba | 2006-06-18 01:32:22 +0100 | [diff] [blame] | 42 | plat_mem_setup(void) |
Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 43 | { |
Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 44 | toshiba_rbtx4938_setup(); |
| 45 | } |
| 46 | |
Ralf Baechle | 54d0a21 | 2006-07-09 21:38:56 +0100 | [diff] [blame] | 47 | void __init plat_timer_setup(struct irqaction *irq) |
Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 48 | { |
Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 49 | setup_irq(TX4938_IRQ_CPU_TIMER, irq); |
Ralf Baechle | 23fbee9 | 2005-07-25 22:45:45 +0000 | [diff] [blame] | 50 | } |