[MIPS] Move CFE code into arch/mips/fw/cfe

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>
This commit is contained in:
Aurelien Jarno 2007-09-05 08:58:26 +02:00 committed by Ralf Baechle
parent cc6e8e0812
commit df78b5c8fa
12 changed files with 18 additions and 8 deletions

View file

@ -688,6 +688,9 @@ config ARCH_MAY_HAVE_PC_FDC
config BOOT_RAW config BOOT_RAW
bool bool
config CFE
bool
config DMA_COHERENT config DMA_COHERENT
bool bool

View file

@ -149,6 +149,7 @@ endif
# Firmware support # Firmware support
# #
libs-$(CONFIG_ARC) += arch/mips/arc/ libs-$(CONFIG_ARC) += arch/mips/arc/
libs-$(CONFIG_CFE) += arch/mips/fw/cfe/
libs-$(CONFIG_SIBYTE_CFE) += arch/mips/sibyte/cfe/ libs-$(CONFIG_SIBYTE_CFE) += arch/mips/sibyte/cfe/
# #

View file

@ -0,0 +1,5 @@
#
# Makefile for the Broadcom Common Firmware Environment support
#
lib-y += cfe_api.o

View file

@ -30,7 +30,7 @@
* *
********************************************************************* */ ********************************************************************* */
#include "cfe_api.h" #include <asm/fw/cfe/cfe_api.h>
#include "cfe_api_int.h" #include "cfe_api_int.h"
/* Cast from a native pointer to a cfe_xptr_t and back. */ /* Cast from a native pointer to a cfe_xptr_t and back. */

View file

@ -124,6 +124,7 @@ config SB1_CERR_STALL
config SIBYTE_CFE config SIBYTE_CFE
bool "Booting from CFE" bool "Booting from CFE"
depends on SIBYTE_SB1xxx_SOC depends on SIBYTE_SB1xxx_SOC
select CFE
select SYS_HAS_EARLY_PRINTK select SYS_HAS_EARLY_PRINTK
help help
Make use of the CFE API for enumerating available memory, Make use of the CFE API for enumerating available memory,

View file

@ -1,3 +1,3 @@
lib-y = cfe_api.o setup.o lib-y = setup.o
lib-$(CONFIG_SMP) += smp.o lib-$(CONFIG_SMP) += smp.o
lib-$(CONFIG_SIBYTE_CFE_CONSOLE) += console.o lib-$(CONFIG_SIBYTE_CFE_CONSOLE) += console.o

View file

@ -4,8 +4,8 @@
#include <asm/sibyte/board.h> #include <asm/sibyte/board.h>
#include "cfe_api.h" #include <asm/fw/cfe/cfe_api.h>
#include "cfe_error.h" #include <asm/fw/cfe/cfe_error.h>
extern int cfe_cons_handle; extern int cfe_cons_handle;

View file

@ -29,8 +29,8 @@
#include <asm/reboot.h> #include <asm/reboot.h>
#include <asm/sibyte/board.h> #include <asm/sibyte/board.h>
#include "cfe_api.h" #include <asm/fw/cfe/cfe_api.h>
#include "cfe_error.h" #include <asm/fw/cfe/cfe_error.h>
/* Max ram addressable in 32-bit segments */ /* Max ram addressable in 32-bit segments */
#ifdef CONFIG_64BIT #ifdef CONFIG_64BIT

View file

@ -21,8 +21,8 @@
#include <linux/smp.h> #include <linux/smp.h>
#include <asm/processor.h> #include <asm/processor.h>
#include "cfe_api.h" #include <asm/fw/cfe/cfe_api.h>
#include "cfe_error.h" #include <asm/fw/cfe/cfe_error.h>
/* /*
* Use CFE to find out how many CPUs are available, setting up * Use CFE to find out how many CPUs are available, setting up