xref: /linux/arch/m68k/68000/ucsimm.c (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1a734bbf6SArnd Bergmann // SPDX-License-Identifier: GPL-2.0
2a734bbf6SArnd Bergmann /*
3a734bbf6SArnd Bergmann  *  Copyright (C) 1993 Hamish Macdonald
4a734bbf6SArnd Bergmann  *  Copyright (C) 1999 D. Jeff Dionne
5a734bbf6SArnd Bergmann  *  Copyright (C) 2001 Georges Menie, Ken Desmet
6a734bbf6SArnd Bergmann  *
7a734bbf6SArnd Bergmann  * This file is subject to the terms and conditions of the GNU General Public
8a734bbf6SArnd Bergmann  * License.  See the file COPYING in the main directory of this archive
9a734bbf6SArnd Bergmann  * for more details.
10a734bbf6SArnd Bergmann  */
11a734bbf6SArnd Bergmann #include <linux/init.h>
12a734bbf6SArnd Bergmann #include <asm/bootstd.h>
13a734bbf6SArnd Bergmann #include <asm/machdep.h>
14a734bbf6SArnd Bergmann #include <asm/MC68VZ328.h>
15a734bbf6SArnd Bergmann 
16a734bbf6SArnd Bergmann 
17a734bbf6SArnd Bergmann #include "m68328.h"
18a734bbf6SArnd Bergmann 
19a734bbf6SArnd Bergmann static int errno;
20a734bbf6SArnd Bergmann 
_bsc0(char *,getserialnum)21*ffe74a6dSGreg Ungerer static _bsc0(char *, getserialnum)
22*ffe74a6dSGreg Ungerer static _bsc1(unsigned char *, gethwaddr, int, a)
23*ffe74a6dSGreg Ungerer static _bsc1(char *, getbenv, char *, a)
24a734bbf6SArnd Bergmann 
25a734bbf6SArnd Bergmann void __init init_ucsimm(char *command, int size)
26a734bbf6SArnd Bergmann {
27a734bbf6SArnd Bergmann 	char *p;
28a734bbf6SArnd Bergmann 
29a734bbf6SArnd Bergmann 	pr_info("uCsimm/uCdimm serial string [%s]\n", getserialnum());
30*ffe74a6dSGreg Ungerer 	p = gethwaddr(0);
31a734bbf6SArnd Bergmann 	pr_info("uCsimm/uCdimm hwaddr %pM\n", p);
32a734bbf6SArnd Bergmann 	p = getbenv("APPEND");
33a734bbf6SArnd Bergmann 	if (p)
34a734bbf6SArnd Bergmann 		strcpy(p, command);
35a734bbf6SArnd Bergmann 	else
36a734bbf6SArnd Bergmann 		command[0] = 0;
37a734bbf6SArnd Bergmann }
38