brcm63xx: add kernel 4.1 support
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-4.1 / 310-cfe_simplify_detection.patch
1 --- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_board.h
2 +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_board.h
3 @@ -1,6 +1,8 @@
4 #ifndef BCM63XX_BOARD_H_
5 #define BCM63XX_BOARD_H_
6
7 +#include <asm/bootinfo.h>
8 +
9 const char *board_get_name(void);
10
11 void board_prom_init(void);
12 @@ -9,4 +11,8 @@ void board_setup(void);
13
14 int board_register_devices(void);
15
16 +static inline bool bcm63xx_is_cfe_present(void) {
17 + return fw_arg3 == 0x43464531;
18 +}
19 +
20 #endif /* ! BCM63XX_BOARD_H_ */