0001
0002
0003
0004
0005
0006
0007 #include <asm/mach-types.h>
0008
0009
0010
0011
0012 #define DC21285_BASE ((volatile unsigned int *)0x42000160)
0013 #define SER0_BASE ((volatile unsigned char *)0x7c0003f8)
0014
0015 static inline void putc(char c)
0016 {
0017 if (machine_is_netwinder()) {
0018 while ((SER0_BASE[5] & 0x60) != 0x60)
0019 barrier();
0020 SER0_BASE[0] = c;
0021 } else {
0022 while (DC21285_BASE[6] & 8);
0023 DC21285_BASE[0] = c;
0024 }
0025 }
0026
0027 static inline void flush(void)
0028 {
0029 }
0030
0031
0032
0033
0034 #define arch_decomp_setup()