Path: blob/master/arch/m68k/platform/68EZ328/config.c
10818 views
/***************************************************************************/12/*3* linux/arch/m68knommu/platform/68EZ328/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*/1213/***************************************************************************/1415#include <linux/types.h>16#include <linux/kernel.h>17#include <asm/system.h>18#include <asm/pgtable.h>19#include <asm/machdep.h>20#include <asm/MC68EZ328.h>21#ifdef CONFIG_UCSIMM22#include <asm/bootstd.h>23#endif2425/***************************************************************************/2627void m68328_timer_gettod(int *year, int *mon, int *day, int *hour, int *min, int *sec);2829/***************************************************************************/3031void m68ez328_reset(void)32{33local_irq_disable();34asm volatile (35"moveal #0x10c00000, %a0;\n"36"moveb #0, 0xFFFFF300;\n"37"moveal 0(%a0), %sp;\n"38"moveal 4(%a0), %a0;\n"39"jmp (%a0);\n"40);41}4243/***************************************************************************/4445unsigned char *cs8900a_hwaddr;46static int errno;4748#ifdef CONFIG_UCSIMM49_bsc0(char *, getserialnum)50_bsc1(unsigned char *, gethwaddr, int, a)51_bsc1(char *, getbenv, char *, a)52#endif5354void config_BSP(char *command, int len)55{56unsigned char *p;5758printk(KERN_INFO "\n68EZ328 DragonBallEZ support (C) 1999 Rt-Control, Inc\n");5960#ifdef CONFIG_UCSIMM61printk(KERN_INFO "uCsimm serial string [%s]\n",getserialnum());62p = cs8900a_hwaddr = gethwaddr(0);63printk(KERN_INFO "uCsimm hwaddr %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n",64p[0], p[1], p[2], p[3], p[4], p[5]);6566p = getbenv("APPEND");67if (p) strcpy(p,command);68else command[0] = 0;69#endif7071mach_gettod = m68328_timer_gettod;72mach_reset = m68ez328_reset;73}7475/***************************************************************************/767778