OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [mips/] [vr41xx/] [tanbac-tb0229/] [init.c] - Rev 1765

Compare with Previous | Blame | View Log

/*
 * FILE NAME
 *	arch/mips/vr41xx/tanbac-tb0229/init.c
 *
 * BRIEF MODULE DESCRIPTION
 *	Initialisation code for the TANBAC TB0229(VR4131DIMM)
 *
 * Copyright 2002,2003 Yoichi Yuasa
 *                yuasa@hh.iij4u.or.jp
 *
 * Modified for TANBAC TB0229:
 * Copyright 2003 Megasolution Inc.
 *                matsu@megasolution.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/sched.h>
#include <linux/string.h>
 
#include <asm/bootinfo.h>
#include <asm/cpu.h>
#include <asm/mipsregs.h>
#include <asm/vr41xx/vr41xx.h>
 
char arcs_cmdline[CL_SIZE];
 
const char *get_system_type(void)
{
	return "TANBAC TB0229";
}
 
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_TANBAC_TB0229;
}
 
void __init prom_free_prom_memory (void)
{
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.