[BACK]Return to init.c CVS log [TXT][DIR] Up to [Development] / linux-2.4-xfs / arch / mips / vr41xx / casio-e55

File: [Development] / linux-2.4-xfs / arch / mips / vr41xx / casio-e55 / init.c (download)

Revision 1.1, Wed Dec 31 00:54:49 2003 UTC (13 years, 9 months ago) by cattelan
Branch: MAIN
CVS Tags: HEAD

Initial Import 2.4.24pre2

/*
 * FILE NAME
 *	arch/mips/vr41xx/casio-e55/init.c
 *
 * BRIEF MODULE DESCRIPTION
 *	Initialisation code for the CASIO CASSIOPEIA E-55/65.
 *
 * Copyright 2002 Yoichi Yuasa
 *                yuasa@hh.iij4u.or.jp
 *
 *  This program is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License as published by the
 *  Free Software Foundation; either version 2 of the License, or (at your
 *  option) any later version.
 */
#include <linux/config.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/string.h>

#include <asm/bootinfo.h>

char arcs_cmdline[CL_SIZE];

const char *get_system_type(void)
{
	return "CASIO CASSIOPEIA E-11/15/55/65";
}

void __init prom_init(int argc, char **argv, unsigned long magic, int *prom_vec)
{
	int i;

	/*
	 * collect args and prepare cmd_line
	 */
	for (i = 1; i < argc; i++) {
		strcat(arcs_cmdline, argv[i]);
		if (i < (argc - 1))
			strcat(arcs_cmdline, " ");
	}

	mips_machgroup = MACH_GROUP_NEC_VR41XX;
	mips_machtype = MACH_CASIO_E55;
}

void __init prom_free_prom_memory (void)
{
}