310-cfe_simplify_detection.patch 480 B

1234567891011121314151617181920
  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. +#include <asm/bootinfo.h>
  7. +
  8. const char *board_get_name(void);
  9. void board_prom_init(void);
  10. @@ -9,4 +11,8 @@ void board_setup(void);
  11. int board_register_devices(void);
  12. +static inline bool bcm63xx_is_cfe_present(void) {
  13. + return fw_arg3 == 0x43464531;
  14. +}
  15. +
  16. #endif /* ! BCM63XX_BOARD_H_ */