init.c 1.02 KB
Newer Older
Ralf Bächle's avatar
Ralf Bächle committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
/*
 * FILE NAME
 *	arch/mips/vr41xx/ibm-workpad/init.c
 *
 * BRIEF MODULE DESCRIPTION
 *	Initialisation code for the IBM WorkPad z50.
 *
 * 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/init.h>
#include <linux/kernel.h>
#include <linux/string.h>

#include <asm/bootinfo.h>

const char *get_system_type(void)
{
	return "IBM WorkPad z50";
}

Andrew Morton's avatar
Andrew Morton committed
27
void __init prom_init(void)
Ralf Bächle's avatar
Ralf Bächle committed
28
{
Andrew Morton's avatar
Andrew Morton committed
29 30
	int argc = fw_arg0;
	char **argv = (char **) fw_arg1;
Ralf Bächle's avatar
Ralf Bächle committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
	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_IBM_WORKPAD;
}

Andrew Morton's avatar
Andrew Morton committed
46
unsigned long __init prom_free_prom_memory(void)
Ralf Bächle's avatar
Ralf Bächle committed
47
{
Andrew Morton's avatar
Andrew Morton committed
48
	return 0;
Ralf Bächle's avatar
Ralf Bächle committed
49
}