Skip to contentSkip to conversation

Move platform independent CFE code into arch/mips/cfe

PATCH New Aurelien Jarno 1 participant 1 message Aug 15, 2007 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Move platform independent CFE code into arch/mips/cfe

The patch below moves the platform independent part of the CFE code to arch/mips/cfe from arch/mips/sibyte/cfe. This way it can be used on other systems.

The patch looks big but it just because some files are moved, it is actually almost trivial.

arch/mips/Kconfig +3 -0
index 6595928..716c34d 100644
@@ -658,6 +658,9 @@ config ARCH_MAY_HAVE_PC_FDC
 config BOOT_RAW
 	bool
 
+config CFE
+	bool
+
 config DMA_COHERENT
 	bool
 
arch/mips/Makefile +1 -0
index 32c1c8f..a3c31d1 100644
@@ -154,6 +154,7 @@ endif
 # Firmware support
 #
 libs-$(CONFIG_ARC)		+= arch/mips/arc/
+libs-$(CONFIG_CFE)		+= arch/mips/cfe/
 libs-$(CONFIG_SIBYTE_CFE)	+= arch/mips/sibyte/cfe/
 
 #
arch/mips/cfe/Makefile new file +5 -0
new file mode 100644
index 0000000..8f20044
@@ -0,0 +1,5 @@
+#
+# Makefile for the Broadcom Common Firmware Environment support
+#
+
+lib-y += cfe_api.o
arch/mips/cfe/cfe_api.c new file +502 -0

502 lines not on this page · raw message

arch/mips/cfe/cfe_api_int.h new file +152 -0

152 lines not on this page · raw message

arch/mips/sibyte/Kconfig +1 -0
index e6b003e..9be317b 100644
@@ -125,6 +125,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,
arch/mips/sibyte/cfe/Makefile +1 -1
index 059d84a..a121493 100644
@@ -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
arch/mips/sibyte/cfe/cfe_api.c deleted +0 -502

502 lines not on this page · raw message

arch/mips/sibyte/cfe/cfe_api.h deleted +0 -185

185 lines not on this page · raw message

arch/mips/sibyte/cfe/cfe_api_int.h deleted +0 -152

152 lines not on this page · raw message

arch/mips/sibyte/cfe/cfe_error.h deleted +0 -85

85 lines not on this page · raw message

arch/mips/sibyte/cfe/console.c +2 -2
index c6ec748..d369d93 100644
@@ -4,8 +4,8 @@
 
 #include <asm/sibyte/board.h>
 
-#include "cfe_api.h"
-#include "cfe_error.h"
+#include <asm/cfe/cfe_api.h>
+#include <asm/cfe/cfe_error.h>
 
 extern int cfe_cons_handle;
 
arch/mips/sibyte/cfe/setup.c +2 -2
index 51898dd..4d6ed6b 100644
@@ -29,8 +29,8 @@
 #include <asm/reboot.h>
 #include <asm/sibyte/board.h>
 
-#include "cfe_api.h"
-#include "cfe_error.h"
+#include <asm/cfe/cfe_api.h>
+#include <asm/cfe/cfe_error.h>
 
 /* Max ram addressable in 32-bit segments */
 #ifdef CONFIG_64BIT
arch/mips/sibyte/cfe/smp.c +2 -2
index 5de4cff..ffb5a8f 100644
@@ -21,8 +21,8 @@
 #include <linux/smp.h>
 #include <asm/processor.h>
 
-#include "cfe_api.h"
-#include "cfe_error.h"
+#include <asm/cfe/cfe_api.h>
+#include <asm/cfe/cfe_error.h>
 
 /*
  * Use CFE to find out how many CPUs are available, setting up
include/asm-mips/cfe/cfe_api.h new file +185 -0

185 lines not on this page · raw message

include/asm-mips/cfe/cfe_error.h new file +85 -0

85 lines not on this page · raw message

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net