This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / include / asm-arm / arch-s3c2410 / uncompress.h
index fa240af..023f22b 100644 (file)
  *  22-May-2003 BJD  Created
  *  08-Sep-2003 BJD  Moved to linux v2.6
  *  12-Mar-2004 BJD  Updated header protection
- *  12-Oct-2004 BJD  Take account of debug uart configuration
- *  15-Nov-2004 BJD  Fixed uart configuration
 */
 
 #ifndef __ASM_ARCH_UNCOMPRESS_H
 #define __ASM_ARCH_UNCOMPRESS_H
 
-#include <linux/config.h>
-
 /* defines for UART registers */
 #include "asm/arch/regs-serial.h"
-#include "asm/arch/regs-gpio.h"
 
 #include <asm/arch/map.h>
 
-/* working in physical space... */
-#undef S3C2410_GPIOREG
-#define S3C2410_GPIOREG(x) ((S3C2410_PA_GPIO + (x)))
-
 /* how many bytes we allow into the FIFO at a time in FIFO mode */
 #define FIFO_MAX        (14)
 
-#define uart_base S3C2410_PA_UART + (0x4000*CONFIG_S3C2410_LOWLEVEL_UART_PORT)
+#if 1
+#define uart_base S3C2410_PA_UART
+#else
+static unsigned int uart_base = S3C2410_PA_UART;
+#endif
 
 static __inline__ void
 uart_wr(unsigned int reg, unsigned int val)
@@ -79,10 +74,6 @@ arch_decomp_setup(void)
 static void
 putc(char ch)
 {
-       int cpuid = *((volatile unsigned int *)S3C2410_GSTATUS1);
-
-       cpuid &= S3C2410_GSTATUS1_IDMASK;
-
        if (ch == '\n')
                putc('\r');    /* expand newline to \r\n */
 
@@ -91,14 +82,8 @@ putc(char ch)
 
                while (1) {
                        level = uart_rd(S3C2410_UFSTAT);
-
-                       if (cpuid == S3C2410_GSTATUS1_2440) {
-                               level &= S3C2440_UFSTAT_TXMASK;
-                               level >>= S3C2440_UFSTAT_TXSHIFT;
-                       } else {
-                               level &= S3C2410_UFSTAT_TXMASK;
-                               level >>= S3C2410_UFSTAT_TXSHIFT;
-                       }
+                       level &= S3C2410_UFSTAT_TXMASK;
+                       level >>= S3C2410_UFSTAT_TXSHIFT;
 
                        if (level < FIFO_MAX)
                                break;
@@ -107,7 +92,7 @@ putc(char ch)
        } else {
                /* not using fifos */
 
-               while ((uart_rd(S3C2410_UTRSTAT) & S3C2410_UTRSTAT_TXE) != S3C2410_UTRSTAT_TXE);
+               while ((uart_rd(S3C2410_UTRSTAT) & S3C2410_UTRSTAT_TXFE) != S3C2410_UTRSTAT_TXFE);
        }
 
        /* write byte to transmission register */