• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/m68knommu/platform/68328/
1/***************************************************************************/
2
3/*
4 *  linux/arch/m68knommu/platform/68328/config.c
5 *
6 *  Copyright (C) 1993 Hamish Macdonald
7 *  Copyright (C) 1999 D. Jeff Dionne
8 *
9 * This file is subject to the terms and conditions of the GNU General Public
10 * License.  See the file COPYING in the main directory of this archive
11 * for more details.
12 *
13 * VZ Support/Fixes             Evan Stawnyczy <e@lineo.ca>
14 */
15
16/***************************************************************************/
17
18#include <asm/dbg.h>
19#include <stdarg.h>
20#include <linux/types.h>
21#include <linux/kernel.h>
22#include <linux/mm.h>
23#include <linux/tty.h>
24#include <linux/console.h>
25#include <linux/interrupt.h>
26#include <asm/current.h>
27
28#include <asm/setup.h>
29#include <asm/system.h>
30#include <asm/pgtable.h>
31#include <asm/irq.h>
32#include <asm/machdep.h>
33#include <asm/MC68328.h>
34
35/***************************************************************************/
36
37void m68328_timer_init(irq_handler_t timer_routine);
38void m68328_timer_tick(void);
39unsigned long m68328_timer_gettimeoffset(void);
40void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);
41
42/***************************************************************************/
43
44void m68328_reset (void)
45{
46  local_irq_disable();
47  asm volatile ("moveal #0x10c00000, %a0;\n\t"
48		"moveb #0, 0xFFFFF300;\n\t"
49		"moveal 0(%a0), %sp;\n\t"
50		"moveal 4(%a0), %a0;\n\t"
51		"jmp (%a0);");
52}
53
54/***************************************************************************/
55
56void config_BSP(char *command, int len)
57{
58  printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
59  printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");
60  printk(KERN_INFO "68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n");
61
62  mach_sched_init      = m68328_timer_init;
63  mach_tick            = m68328_timer_tick;
64  mach_gettimeoffset   = m68328_timer_gettimeoffset;
65  mach_gettod          = m68328_timer_gettod;
66  mach_hwclk           = NULL;
67  mach_set_clock_mmss  = NULL;
68  mach_reset           = m68328_reset;
69  *command = '\0';
70}
71
72/***************************************************************************/
73