Skip to content

Commit

Permalink
[MIPS] Move CFE code into arch/mips/fw/cfe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Aurelien Jarno authored and Ralf Baechle committed Oct 11, 2007
1 parent cc6e8e0 commit df78b5c
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 8 deletions.
3 changes: 3 additions & 0 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@ config ARCH_MAY_HAVE_PC_FDC
config BOOT_RAW
bool

config CFE
bool

config DMA_COHERENT
bool

Expand Down
1 change: 1 addition & 0 deletions arch/mips/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

#
Expand Down
5 changes: 5 additions & 0 deletions arch/mips/fw/cfe/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# Makefile for the Broadcom Common Firmware Environment support
#

lib-y += cfe_api.o
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions arch/mips/sibyte/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/sibyte/cfe/Makefile
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions arch/mips/sibyte/cfe/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions arch/mips/sibyte/cfe/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions arch/mips/sibyte/cfe/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit df78b5c

Please sign in to comment.