]> err.no Git - linux-2.6/commitdiff
[MIPS] Move CFE code into arch/mips/fw/cfe
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 5 Sep 2007 06:58:26 +0000 (08:58 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 11 Oct 2007 22:46:05 +0000 (23:46 +0100)
Move the platform independent part of the CFE code to arch/mips/fw/cfe from
arch/mips/sibyte/cfe.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
12 files changed:
arch/mips/Kconfig
arch/mips/Makefile
arch/mips/fw/cfe/Makefile [new file with mode: 0644]
arch/mips/fw/cfe/cfe_api.c [moved from arch/mips/sibyte/cfe/cfe_api.c with 99% similarity]
arch/mips/fw/cfe/cfe_api_int.h [moved from arch/mips/sibyte/cfe/cfe_api_int.h with 100% similarity]
arch/mips/sibyte/Kconfig
arch/mips/sibyte/cfe/Makefile
arch/mips/sibyte/cfe/console.c
arch/mips/sibyte/cfe/setup.c
arch/mips/sibyte/cfe/smp.c
include/asm-mips/fw/cfe/cfe_api.h [moved from arch/mips/sibyte/cfe/cfe_api.h with 100% similarity]
include/asm-mips/fw/cfe/cfe_error.h [moved from arch/mips/sibyte/cfe/cfe_error.h with 100% similarity]

index 90b409d06153bdef6d07d756d2a77437c887e9af..4863494bac9f8085af45e328ee3a91f711e32057 100644 (file)
@@ -688,6 +688,9 @@ config ARCH_MAY_HAVE_PC_FDC
 config BOOT_RAW
        bool
 
+config CFE
+       bool
+
 config DMA_COHERENT
        bool
 
index 7b936edd2c16eae053a2c6180a94ac49a9965d6b..a097ae61eb6b165b89e602b35199d8beff8f6028 100644 (file)
@@ -149,6 +149,7 @@ endif
 # Firmware support
 #
 libs-$(CONFIG_ARC)             += arch/mips/arc/
+libs-$(CONFIG_CFE)             += arch/mips/fw/cfe/
 libs-$(CONFIG_SIBYTE_CFE)      += arch/mips/sibyte/cfe/
 
 #
diff --git a/arch/mips/fw/cfe/Makefile b/arch/mips/fw/cfe/Makefile
new file mode 100644 (file)
index 0000000..8f20044
--- /dev/null
@@ -0,0 +1,5 @@
+#
+# Makefile for the Broadcom Common Firmware Environment support
+#
+
+lib-y += cfe_api.o
similarity index 99%
rename from arch/mips/sibyte/cfe/cfe_api.c
rename to arch/mips/fw/cfe/cfe_api.c
index c0213605e18a9bb086e43cc1a368f90065c47c33..a9f69e4e40ac6703da7db1921303ed7b13630ad7 100644 (file)
@@ -30,7 +30,7 @@
     *
     ********************************************************************* */
 
-#include "cfe_api.h"
+#include <asm/fw/cfe/cfe_api.h>
 #include "cfe_api_int.h"
 
 /* Cast from a native pointer to a cfe_xptr_t and back.         */
index fdd7bd98fb449521883810551e696e3d1a56f950..841b301c99f001ced939e44f3caa3c979c7b1ab4 100644 (file)
@@ -124,6 +124,7 @@ config SB1_CERR_STALL
 config SIBYTE_CFE
        bool "Booting from CFE"
        depends on SIBYTE_SB1xxx_SOC
+       select CFE
        select SYS_HAS_EARLY_PRINTK
        help
          Make use of the CFE API for enumerating available memory,
index 059d84a1d8a8be17d6779024d0a85be34878087d..a1214937b705404a77f9106664c3ab5501233066 100644 (file)
@@ -1,3 +1,3 @@
-lib-y                                  = cfe_api.o setup.o
+lib-y                                  = setup.o
 lib-$(CONFIG_SMP)                      += smp.o
 lib-$(CONFIG_SIBYTE_CFE_CONSOLE)       += console.o
index 4cec9d798d2fefc28d2245798a0018c4b2aebdc8..7a4ecfcde48de747078ecd67df0a4b2e5de52209 100644 (file)
@@ -4,8 +4,8 @@
 
 #include <asm/sibyte/board.h>
 
-#include "cfe_api.h"
-#include "cfe_error.h"
+#include <asm/fw/cfe/cfe_api.h>
+#include <asm/fw/cfe/cfe_error.h>
 
 extern int cfe_cons_handle;
 
index 51898dd1304a85ad95f76665b3ee69b88368c306..d842b98efb679d08684e845cb86e13044a76d98b 100644 (file)
@@ -29,8 +29,8 @@
 #include <asm/reboot.h>
 #include <asm/sibyte/board.h>
 
-#include "cfe_api.h"
-#include "cfe_error.h"
+#include <asm/fw/cfe/cfe_api.h>
+#include <asm/fw/cfe/cfe_error.h>
 
 /* Max ram addressable in 32-bit segments */
 #ifdef CONFIG_64BIT
index 5de4cff9d14ab7b26e96ee08f3af5cb0330a9039..534a62912f21ef8d2a0c7b7d909991d604974db4 100644 (file)
@@ -21,8 +21,8 @@
 #include <linux/smp.h>
 #include <asm/processor.h>
 
-#include "cfe_api.h"
-#include "cfe_error.h"
+#include <asm/fw/cfe/cfe_api.h>
+#include <asm/fw/cfe/cfe_error.h>
 
 /*
  * Use CFE to find out how many CPUs are available, setting up