2 * arch/m32r/boot/compressed/m32r_sio.c
4 * 2003-02-12: Takeo Takahashi
5 * 2006-11-30: OPSPUT support by Kazuhiro Inaoka
9 #include <asm/processor.h>
11 static void m32r_putc(char c
);
13 static int puts(const char *s
)
21 #if defined(CONFIG_PLAT_M32700UT) || defined(CONFIG_PLAT_OPSPUT)
25 #define USE_FPGA_MAP 0
29 * fpga configuration program uses MMU, and define map as same as
30 * M32104 uT-Engine board.
32 #define BOOT_SIO0STS (volatile unsigned short *)(0x02c00000 + 0x20006)
33 #define BOOT_SIO0TXB (volatile unsigned short *)(0x02c00000 + 0x2000c)
36 #if defined(CONFIG_PLAT_OPSPUT)
37 #define PLD_BASE 0x1cc00000
39 #define PLD_BASE 0xa4c00000
41 #define BOOT_SIO0STS PLD_ESIO0STS
42 #define BOOT_SIO0TXB PLD_ESIO0TXB
45 static void m32r_putc(char c
)
47 while ((*BOOT_SIO0STS
& 0x3) != 0x3)
51 while ((*BOOT_SIO0STS
& 0x3) != 0x3)
56 #else /* !(CONFIG_PLAT_M32700UT) */
57 #if defined(CONFIG_PLAT_MAPPI2)
58 #define SIO0STS (volatile unsigned short *)(0xa0efd000 + 14)
59 #define SIO0TXB (volatile unsigned short *)(0xa0efd000 + 30)
61 #define SIO0STS (volatile unsigned short *)(0x00efd000 + 14)
62 #define SIO0TXB (volatile unsigned short *)(0x00efd000 + 30)
65 static void m32r_putc(char c
)
67 while ((*SIO0STS
& 0x1) == 0)
71 while ((*SIO0STS
& 0x1) == 0)