2 * linux/include/asm-arm/arch-brutus/uncompress.h
4 * (C) 1999 Nicolas Pitre <nico@cam.org>
6 * Reorganised to use machine_is_*() macros.
10 #include "serial_reg.h"
12 #include <asm/mach-types.h>
14 /* Assabet's Status Control "Register" */
15 unsigned long SCR_value;
17 /* sa1100_setup() will perform any special initialization for UART, etc. */
18 extern void sa1100_setup( int arch_id );
19 #define arch_decomp_setup() sa1100_setup(arch_id)
22 * The following code assumes the serial port has already been
23 * initialized by the bootloader or such...
25 static void puts( const char *s )
27 volatile unsigned long *serial_port;
29 if (machine_is_assabet()) {
30 if( machine_has_neponset() )
31 serial_port = (unsigned long *)_Ser3UTCR0;
33 serial_port = (unsigned long *)_Ser1UTCR0;
34 } else if (machine_is_brutus()||machine_is_nanoengine())
35 serial_port = (unsigned long *)_Ser1UTCR0;
36 else if (machine_is_empeg() || machine_is_bitsy() ||
37 machine_is_victor() || machine_is_lart())
38 serial_port = (unsigned long *)_Ser3UTCR0;
43 /* wait for space in the UART's transmiter */
44 while (!(serial_port[UTSR1] & UTSR1_TNF));
46 /* send the character out. */
47 serial_port[UART_TX] = *s;
49 /* if a LF, also do CR... */
51 while (!(serial_port[UTSR1] & UTSR1_TNF));
52 serial_port[UART_TX] = 13;
58 * Nothing to do for these
60 #define arch_decomp_wdog()