Move platform independent CFE code into arch/mips/cfe
PATCH 1/1 Move platform independent CFE code into arch/mips/cfe
The patch below against current git tree 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 platforms.
The patch looks big but it just because some files are moved, it is actually almost trivial.
arch/mips/Kconfig +3 -0
@@ -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
@@ -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/sibyte/Kconfig +1 -0
@@ -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
@@ -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 +0 -502
502 lines not on this page · raw message
arch/mips/sibyte/cfe/cfe_api.h +0 -185
185 lines not on this page · raw message
arch/mips/sibyte/cfe/cfe_api_int.h +0 -152
152 lines not on this page · raw message
arch/mips/sibyte/cfe/cfe_error.h +0 -85
85 lines not on this page · raw message
arch/mips/sibyte/cfe/console.c +2 -2
@@ -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
@@ -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
@@ -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
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
PATCH 1/1 Move platform independent CFE code into arch/mips/cfe (v2)
Quoted 4 lines · Aurelien Jarno
The patch below against current git tree moves the platform independent part of the CFE code to
arch/mips/cfefromarch/mips/sibyte/cfe. This way it can be used on other platforms.
It seems I have to learn a bit more how to use git. The previous patch was not complete, the patch below should be correct.
Aurelien
The patch below against current git tree 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 platforms.
The patch looks big but it just because some files are moved, it is actually almost trivial.
--- arch/mips/Kconfig | 3 + arch/mips/Makefile | 1 + arch/mips/cfe/cfe_api.c | 502 ++++++++++++++++++++++++++++++++++++ arch/mips/cfe/cfe_api_int.h | 152 +++++++++++ arch/mips/sibyte/Kconfig | 1 + arch/mips/sibyte/cfe/Makefile | 2 +- arch/mips/sibyte/cfe/cfe_api.c | 502 ------------------------------------ arch/mips/sibyte/cfe/cfe_api.h | 185 ------------- arch/mips/sibyte/cfe/cfe_api_int.h | 152 ----------- arch/mips/sibyte/cfe/cfe_error.h | 85 ------ arch/mips/sibyte/cfe/console.c | 4 +- arch/mips/sibyte/cfe/setup.c | 4 +- arch/mips/sibyte/cfe/smp.c | 4 +- include/asm-mips/cfe/cfe_api.h | 185 +++++++++++++ include/asm-mips/cfe/cfe_error.h | 85 ++++++ 15 files changed, 936 insertions(+), 931 deletions(-)
arch/mips/Kconfig +3 -0
@@ -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
@@ -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/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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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