PageRenderTime 26ms CodeModel.GetById 16ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/Ethereal-msm8939-beta9/arch/m68k/platform/68000/m68328.c

https://bitbucket.org/MilosStamenkovic95/etherealos
C | 55 lines | 26 code | 11 blank | 18 comment | 1 complexity | 6e0b131f7de49af8c5a6fb93d4adbc2a MD5 | raw file
 1/***************************************************************************/
 2
 3/*
 4 *  m68328.c - 68328 specific config
 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 <linux/types.h>
19#include <linux/kernel.h>
20#include <linux/rtc.h>
21#include <asm/machdep.h>
22#include <asm/MC68328.h>
23#if defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD)
24#include "bootlogo.h"
25#endif
26
27/***************************************************************************/
28
29int m68328_hwclk(int set, struct rtc_time *t);
30
31/***************************************************************************/
32
33void m68328_reset (void)
34{
35  local_irq_disable();
36  asm volatile ("moveal #0x10c00000, %a0;\n\t"
37		"moveb #0, 0xFFFFF300;\n\t"
38		"moveal 0(%a0), %sp;\n\t"
39		"moveal 4(%a0), %a0;\n\t"
40		"jmp (%a0);");
41}
42
43/***************************************************************************/
44
45void config_BSP(char *command, int len)
46{
47  printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
48  printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");
49  printk(KERN_INFO "68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n");
50
51  mach_hwclk = m68328_hwclk;
52  mach_reset = m68328_reset;
53}
54
55/***************************************************************************/