Skip to content

Commit df78b5c

Browse files
aurel32ralfbaechle
authored andcommitted
[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>
1 parent cc6e8e0 commit df78b5c

12 files changed

Lines changed: 18 additions & 8 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,9 @@ config ARCH_MAY_HAVE_PC_FDC
688688
config BOOT_RAW
689689
bool
690690

691+
config CFE
692+
bool
693+
691694
config DMA_COHERENT
692695
bool
693696

‎arch/mips/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ endif
149149
# Firmware support
150150
#
151151
libs-$(CONFIG_ARC) += arch/mips/arc/
152+
libs-$(CONFIG_CFE) += arch/mips/fw/cfe/
152153
libs-$(CONFIG_SIBYTE_CFE) += arch/mips/sibyte/cfe/
153154

154155
#

‎arch/mips/fw/cfe/Makefile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for the Broadcom Common Firmware Environment support
3+
#
4+
5+
lib-y += cfe_api.o
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
*
3131
********************************************************************* */
3232

33-
#include "cfe_api.h"
33+
#include <asm/fw/cfe/cfe_api.h>
3434
#include "cfe_api_int.h"
3535

3636
/* Cast from a native pointer to a cfe_xptr_t and back. */

‎arch/mips/sibyte/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ config SB1_CERR_STALL
124124
config SIBYTE_CFE
125125
bool "Booting from CFE"
126126
depends on SIBYTE_SB1xxx_SOC
127+
select CFE
127128
select SYS_HAS_EARLY_PRINTK
128129
help
129130
Make use of the CFE API for enumerating available memory,

‎arch/mips/sibyte/cfe/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
lib-y = cfe_api.o setup.o
1+
lib-y = setup.o
22
lib-$(CONFIG_SMP) += smp.o
33
lib-$(CONFIG_SIBYTE_CFE_CONSOLE) += console.o

‎arch/mips/sibyte/cfe/console.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
#include <asm/sibyte/board.h>
66

7-
#include "cfe_api.h"
8-
#include "cfe_error.h"
7+
#include <asm/fw/cfe/cfe_api.h>
8+
#include <asm/fw/cfe/cfe_error.h>
99

1010
extern int cfe_cons_handle;
1111

‎arch/mips/sibyte/cfe/setup.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
#include <asm/reboot.h>
3030
#include <asm/sibyte/board.h>
3131

32-
#include "cfe_api.h"
33-
#include "cfe_error.h"
32+
#include <asm/fw/cfe/cfe_api.h>
33+
#include <asm/fw/cfe/cfe_error.h>
3434

3535
/* Max ram addressable in 32-bit segments */
3636
#ifdef CONFIG_64BIT

‎arch/mips/sibyte/cfe/smp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#include <linux/smp.h>
2222
#include <asm/processor.h>
2323

24-
#include "cfe_api.h"
25-
#include "cfe_error.h"
24+
#include <asm/fw/cfe/cfe_api.h>
25+
#include <asm/fw/cfe/cfe_error.h>
2626

2727
/*
2828
* Use CFE to find out how many CPUs are available, setting up

0 commit comments

Comments
 (0)