2 * arch/m32r/boot/compressed/m32r_sio.c
4 * 2003-02-12: Takeo Takahashi
8 #include <linux/config.h>
9 #include <asm/processor.h>
11 static void putc(char c);
13 static int puts(const char *s)
16 while ((c = *s++)) putc(c);
20 #if defined(CONFIG_PLAT_M32700UT_Alpha) || defined(CONFIG_PLAT_M32700UT)
24 #define USE_FPGA_MAP 0
28 * fpga configuration program uses MMU, and define map as same as
29 * M32104 uT-Engine board.
31 #define BOOT_SIO0STS (volatile unsigned short *)(0x02c00000 + 0x20006)
32 #define BOOT_SIO0TXB (volatile unsigned short *)(0x02c00000 + 0x2000c)
35 #define PLD_BASE 0xa4c00000
36 #define BOOT_SIO0STS PLD_ESIO0STS
37 #define BOOT_SIO0TXB PLD_ESIO0TXB
40 static void putc(char c)
42 while ((*BOOT_SIO0STS & 0x3) != 0x3)
46 while ((*BOOT_SIO0STS & 0x3) != 0x3)
51 #else /* !(CONFIG_PLAT_M32700UT_Alpha) && !(CONFIG_PLAT_M32700UT) */
52 #if defined(CONFIG_PLAT_MAPPI2)
53 #define SIO0STS (volatile unsigned short *)(0xa0efd000 + 14)
54 #define SIO0TXB (volatile unsigned short *)(0xa0efd000 + 30)
56 #define SIO0STS (volatile unsigned short *)(0x00efd000 + 14)
57 #define SIO0TXB (volatile unsigned short *)(0x00efd000 + 30)
60 static void putc(char c)
62 while ((*SIO0STS & 0x1) == 0)
66 while ((*SIO0STS & 0x1) == 0)