Path: blob/master/arch/m68k/platform/68328/config.c
10819 views
/***************************************************************************/12/*3* linux/arch/m68knommu/platform/68328/config.c4*5* Copyright (C) 1993 Hamish Macdonald6* Copyright (C) 1999 D. Jeff Dionne7*8* This file is subject to the terms and conditions of the GNU General Public9* License. See the file COPYING in the main directory of this archive10* for more details.11*12* VZ Support/Fixes Evan Stawnyczy <[email protected]>13*/1415/***************************************************************************/1617#include <linux/types.h>18#include <linux/kernel.h>19#include <asm/system.h>20#include <asm/machdep.h>21#include <asm/MC68328.h>2223/***************************************************************************/2425void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);2627/***************************************************************************/2829void m68328_reset (void)30{31local_irq_disable();32asm volatile ("moveal #0x10c00000, %a0;\n\t"33"moveb #0, 0xFFFFF300;\n\t"34"moveal 0(%a0), %sp;\n\t"35"moveal 4(%a0), %a0;\n\t"36"jmp (%a0);");37}3839/***************************************************************************/4041void config_BSP(char *command, int len)42{43printk(KERN_INFO "\n68328 support D. Jeff Dionne <[email protected]>\n");44printk(KERN_INFO "68328 support Kenneth Albanowski <[email protected]>\n");45printk(KERN_INFO "68328/Pilot support Bernhard Kuhn <[email protected]>\n");4647mach_gettod = m68328_timer_gettod;48mach_reset = m68328_reset;49}5051/***************************************************************************/525354