blob: e53caf4c3bfbf9d141e1f49857ce08f8da785cc2 [file] [log] [blame]
Greg Ungereree721122005-09-09 09:32:14 +10001/***************************************************************************/
2
Linus Torvalds1da177e2005-04-16 15:20:36 -07003/*
Luis Alves99e08372012-12-04 23:04:49 +00004 * m68328.c - 68328 specific config
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 *
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
Greg Ungereree721122005-09-09 09:32:14 +100016/***************************************************************************/
17
Geert Uytterhoevendf592eb2013-06-30 11:58:40 +020018#include <linux/init.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070019#include <linux/types.h>
20#include <linux/kernel.h>
Greg Ungerer95177462012-01-23 13:25:56 +100021#include <linux/rtc.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070022#include <asm/machdep.h>
23#include <asm/MC68328.h>
Greg Ungererc0e0c892011-12-22 16:19:59 +100024#if defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD)
25#include "bootlogo.h"
26#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
Greg Ungereree721122005-09-09 09:32:14 +100028/***************************************************************************/
Linus Torvalds1da177e2005-04-16 15:20:36 -070029
Greg Ungerer95177462012-01-23 13:25:56 +100030int m68328_hwclk(int set, struct rtc_time *t);
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
Greg Ungereree721122005-09-09 09:32:14 +100032/***************************************************************************/
Linus Torvalds1da177e2005-04-16 15:20:36 -070033
Greg Ungereree721122005-09-09 09:32:14 +100034void m68328_reset (void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070035{
36 local_irq_disable();
37 asm volatile ("moveal #0x10c00000, %a0;\n\t"
38 "moveb #0, 0xFFFFF300;\n\t"
39 "moveal 0(%a0), %sp;\n\t"
40 "moveal 4(%a0), %a0;\n\t"
41 "jmp (%a0);");
42}
43
Greg Ungereree721122005-09-09 09:32:14 +100044/***************************************************************************/
45
Geert Uytterhoevendf592eb2013-06-30 11:58:40 +020046void __init config_BSP(char *command, int len)
Linus Torvalds1da177e2005-04-16 15:20:36 -070047{
48 printk(KERN_INFO "\n68328 support D. Jeff Dionne <jeff@uclinux.org>\n");
49 printk(KERN_INFO "68328 support Kenneth Albanowski <kjahds@kjshds.com>\n");
50 printk(KERN_INFO "68328/Pilot support Bernhard Kuhn <kuhn@lpr.e-technik.tu-muenchen.de>\n");
51
Greg Ungerer95177462012-01-23 13:25:56 +100052 mach_hwclk = m68328_hwclk;
Greg Ungerer0e298eb2007-10-24 12:03:16 +100053 mach_reset = m68328_reset;
Linus Torvalds1da177e2005-04-16 15:20:36 -070054}
Greg Ungereree721122005-09-09 09:32:14 +100055
56/***************************************************************************/