Greg Ungerer | ee72112 | 2005-09-09 09:32:14 +1000 | [diff] [blame] | 1 | /***************************************************************************/ |
| 2 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | /* |
Luis Alves | 99e0837 | 2012-12-04 23:04:49 +0000 | [diff] [blame] | 4 | * m68328.c - 68328 specific config |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Greg Ungerer | ee72112 | 2005-09-09 09:32:14 +1000 | [diff] [blame] | 16 | /***************************************************************************/ |
| 17 | |
Geert Uytterhoeven | df592eb | 2013-06-30 11:58:40 +0200 | [diff] [blame] | 18 | #include <linux/init.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | #include <linux/types.h> |
| 20 | #include <linux/kernel.h> |
Greg Ungerer | 9517746 | 2012-01-23 13:25:56 +1000 | [diff] [blame] | 21 | #include <linux/rtc.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | #include <asm/machdep.h> |
| 23 | #include <asm/MC68328.h> |
Greg Ungerer | c0e0c89 | 2011-12-22 16:19:59 +1000 | [diff] [blame] | 24 | #if defined(CONFIG_PILOT) || defined(CONFIG_INIT_LCD) |
| 25 | #include "bootlogo.h" |
| 26 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
Greg Ungerer | ee72112 | 2005-09-09 09:32:14 +1000 | [diff] [blame] | 28 | /***************************************************************************/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 29 | |
Greg Ungerer | 9517746 | 2012-01-23 13:25:56 +1000 | [diff] [blame] | 30 | int m68328_hwclk(int set, struct rtc_time *t); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | |
Greg Ungerer | ee72112 | 2005-09-09 09:32:14 +1000 | [diff] [blame] | 32 | /***************************************************************************/ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | |
Greg Ungerer | ee72112 | 2005-09-09 09:32:14 +1000 | [diff] [blame] | 34 | void m68328_reset (void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | { |
| 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 Ungerer | ee72112 | 2005-09-09 09:32:14 +1000 | [diff] [blame] | 44 | /***************************************************************************/ |
| 45 | |
Geert Uytterhoeven | df592eb | 2013-06-30 11:58:40 +0200 | [diff] [blame] | 46 | void __init config_BSP(char *command, int len) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 47 | { |
| 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 Ungerer | 9517746 | 2012-01-23 13:25:56 +1000 | [diff] [blame] | 52 | mach_hwclk = m68328_hwclk; |
Greg Ungerer | 0e298eb | 2007-10-24 12:03:16 +1000 | [diff] [blame] | 53 | mach_reset = m68328_reset; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | } |
Greg Ungerer | ee72112 | 2005-09-09 09:32:14 +1000 | [diff] [blame] | 55 | |
| 56 | /***************************************************************************/ |