1 /*
2  * Carsten Langgaard, carstenl@mips.com
3  * Copyright (C) 1999,2000 MIPS Technologies, Inc.  All rights reserved.
4  *
5  * ########################################################################
6  *
7  *  This program is free software; you can distribute it and/or modify it
8  *  under the terms of the GNU General Public License (Version 2) as
9  *  published by the Free Software Foundation.
10  *
11  *  This program is distributed in the hope it will be useful, but WITHOUT
12  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  *  for more details.
15  *
16  *  You should have received a copy of the GNU General Public License along
17  *  with this program; if not, write to the Free Software Foundation, Inc.,
18  *  59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
19  *
20  * ########################################################################
21  *
22  * Display routines for display messages in MIPS boards ascii display.
23  *
24  */
25 
26 #include <asm/mips-boards/generic.h>
27 
28 
mips_display_message(const char * str)29 void mips_display_message(const char *str)
30 {
31         volatile unsigned int *display = (void *)ASCII_DISPLAY_POS_BASE;
32 	int i;
33 
34 	for (i = 0; i <= 14; i=i+2) {
35 	         if (*str)
36 		         display[i] = *str++;
37 		 else
38 		         display[i] = ' ';
39 	}
40 }
41 
42 #ifndef CONFIG_MIPS_SEAD
mips_display_word(unsigned int num)43 void mips_display_word(unsigned int num)
44 {
45         volatile unsigned int *display = (void *)ASCII_DISPLAY_WORD_BASE;
46 
47 	*display = num;
48 }
49 #endif
50