2 * arch/m32r/boot/compressed/m32r_sio.c
4 * 2003-02-12: Takeo Takahashi
8 #include <asm/processor.h>
10 static void putc(char c
);
12 static int puts(const char *s
)
15 while ((c
= *s
++)) putc(c
);
19 #if defined(CONFIG_PLAT_M32700UT_Alpha) || defined(CONFIG_PLAT_M32700UT)
23 #define USE_FPGA_MAP 0
27 * fpga configuration program uses MMU, and define map as same as
28 * M32104 uT-Engine board.
30 #define BOOT_SIO0STS (volatile unsigned short *)(0x02c00000 + 0x20006)
31 #define BOOT_SIO0TXB (volatile unsigned short *)(0x02c00000 + 0x2000c)
34 #define PLD_BASE 0xa4c00000
35 #define BOOT_SIO0STS PLD_ESIO0STS
36 #define BOOT_SIO0TXB PLD_ESIO0TXB
39 static void putc(char c
)
41 while ((*BOOT_SIO0STS
& 0x3) != 0x3)
45 while ((*BOOT_SIO0STS
& 0x3) != 0x3)
50 #else /* !(CONFIG_PLAT_M32700UT_Alpha) && !(CONFIG_PLAT_M32700UT) */
51 #if defined(CONFIG_PLAT_MAPPI2)
52 #define SIO0STS (volatile unsigned short *)(0xa0efd000 + 14)
53 #define SIO0TXB (volatile unsigned short *)(0xa0efd000 + 30)
55 #define SIO0STS (volatile unsigned short *)(0x00efd000 + 14)
56 #define SIO0TXB (volatile unsigned short *)(0x00efd000 + 30)
59 static void putc(char c
)
61 while ((*SIO0STS
& 0x1) == 0)
65 while ((*SIO0STS
& 0x1) == 0)