]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] S3C64XX: Add system boot-time support
authorBen Dooks <ben-linux@fluff.org>
Tue, 21 Oct 2008 13:06:45 +0000 (14:06 +0100)
committerBen Dooks <ben-linux@fluff.org>
Mon, 15 Dec 2008 21:49:32 +0000 (21:49 +0000)
Add the necessary defines for <mach/uncompress.h>
to function and build an working header code block.

Signed-off-by: Ben Doioks <ben-linux@fluff.org>
arch/arm/mach-s3c2410/include/mach/uncompress.h
arch/arm/mach-s3c6400/include/mach/uncompress.h [new file with mode: 0644]
arch/arm/plat-s3c/include/plat/uncompress.h
arch/arm/plat-s3c24xx/include/plat/map.h

index ab39491beee209328854aef56651b4e829d30171..c9432103750d3a1ab7f67461b170ae550b4acbd1 100644 (file)
@@ -1,3 +1,4 @@
+
 /* arch/arm/mach-s3c2410/include/mach/uncompress.h
  *
  * Copyright (c) 2003, 2007 Simtec Electronics
diff --git a/arch/arm/mach-s3c6400/include/mach/uncompress.h b/arch/arm/mach-s3c6400/include/mach/uncompress.h
new file mode 100644 (file)
index 0000000..cc822c5
--- /dev/null
@@ -0,0 +1,26 @@
+/* arch/arm/mach-s3c6400/include/mach/uncompress.h
+ *
+ * Copyright 2008 Openmoko, Inc.
+ * Copyright 2008 Simtec Electronics
+ *     http://armlinux.simtec.co.uk/
+ *     Ben Dooks <ben@simtec.co.uk>
+ *
+ * S3C6400 - uncompress code
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+*/
+
+#ifndef __ASM_ARCH_UNCOMPRESS_H
+#define __ASM_ARCH_UNCOMPRESS_H
+
+#include <mach/map.h>
+#include <plat/uncompress.h>
+
+static void arch_detect_cpu(void)
+{
+       /* we do not need to do any cpu detection here at the moment. */
+}
+
+#endif /* __ASM_ARCH_UNCOMPRESS_H */
index 8a8a927292e065e1961d0a09aeab5972c03cde34..eeef32c4312dc343ea4d3b35c286f455dc764566 100644 (file)
@@ -37,7 +37,7 @@ static void arch_detect_cpu(void);
 /* how many bytes we allow into the FIFO at a time in FIFO mode */
 #define FIFO_MAX        (14)
 
-#define uart_base S3C24XX_PA_UART + (0x4000*CONFIG_S3C_LOWLEVEL_UART_PORT)
+#define uart_base S3C_PA_UART + (S3C_UART_OFFSET * CONFIG_S3C_LOWLEVEL_UART_PORT)
 
 static __inline__ void
 uart_wr(unsigned int reg, unsigned int val)
index 6222ba8341d4efd98c958899284b580dd638fb99..e7be0c0d370284f5f9b32d6e3dcd36c3109c4dc9 100644 (file)
@@ -29,6 +29,7 @@
 #define S3C24XX_VA_UART           S3C_VA_UART
 #define S3C2410_PA_UART           (0x50000000)
 #define S3C24XX_SZ_UART           SZ_1M
+#define S3C_UART_OFFSET           (0x4000)
 
 /* Timers */
 #define S3C24XX_VA_TIMER   S3C_VA_TIMER