diff options
author | Jonas Gorski <jogo@openwrt.org> | 2013-05-19 18:32:02 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2013-05-19 18:32:02 +0000 |
commit | 1f4e5f77a0d5bc3cce01c501409ccfdce08b0382 (patch) | |
tree | f8546508f3f1b188cf1d39ef4cc8fe01739af3fe /target/linux/brcm63xx/patches-3.8/323-cfe_simplify_detection.patch | |
parent | 6e2b85b4016a2db5f49fb7da1ef479a82979393c (diff) | |
download | mtk-20170518-1f4e5f77a0d5bc3cce01c501409ccfdce08b0382.zip mtk-20170518-1f4e5f77a0d5bc3cce01c501409ccfdce08b0382.tar.gz mtk-20170518-1f4e5f77a0d5bc3cce01c501409ccfdce08b0382.tar.bz2 |
bcm63xx: Simplify CFE detection.
Check bootloader argument in mtd.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo@openwrt.org: split into two patches, one for detection,
one letting bcm63xxpart use it.]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36659
Diffstat (limited to 'target/linux/brcm63xx/patches-3.8/323-cfe_simplify_detection.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-3.8/323-cfe_simplify_detection.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-3.8/323-cfe_simplify_detection.patch b/target/linux/brcm63xx/patches-3.8/323-cfe_simplify_detection.patch new file mode 100644 index 0000000..e05c91d --- /dev/null +++ b/target/linux/brcm63xx/patches-3.8/323-cfe_simplify_detection.patch @@ -0,0 +1,20 @@ +--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_board.h ++++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_board.h +@@ -1,6 +1,8 @@ + #ifndef BCM63XX_BOARD_H_ + #define BCM63XX_BOARD_H_ + ++#include <asm/bootinfo.h> ++ + const char *board_get_name(void); + + void board_prom_init(void); +@@ -9,4 +11,8 @@ void board_setup(void); + + int board_register_devices(void); + ++static inline bool bcm63xx_is_cfe_present(void) { ++ return fw_arg3 == 0x43464531; ++} ++ + #endif /* ! BCM63XX_BOARD_H_ */ |