bcm53xx: 3.18: add early support for Buffalo WZR-900DHP
[openwrt.git] / target / linux / brcm47xx / patches-3.10 / 073-MIPS-BCM47XX-print-board-name-in-machine-entry-in-cp.patch
1 From 6d683038f2155bf0d6f486a1f11a10bbc455da8a Mon Sep 17 00:00:00 2001
2 From: Hauke Mehrtens <hauke@hauke-m.de>
3 Date: Thu, 19 Sep 2013 23:40:10 +0200
4 Subject: [PATCH 019/110] MIPS: BCM47XX: print board name in machine entry in
5  cpuinfo
6
7 This will add the board name to the machine entry in /proc/cpuinfo.
8
9 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
10 Acked-by: John Crispin <blogic@openwrt.org>
11 Patchwork: http://patchwork.linux-mips.org/patch/5864/
12 ---
13  arch/mips/bcm47xx/setup.c |    2 ++
14  1 file changed, 2 insertions(+)
15
16 --- a/arch/mips/bcm47xx/setup.c
17 +++ b/arch/mips/bcm47xx/setup.c
18 @@ -32,6 +32,7 @@
19  #include <linux/ssb/ssb_embedded.h>
20  #include <linux/bcma/bcma_soc.h>
21  #include <asm/bootinfo.h>
22 +#include <asm/prom.h>
23  #include <asm/reboot.h>
24  #include <asm/time.h>
25  #include <bcm47xx.h>
26 @@ -225,6 +226,7 @@ void __init plat_mem_setup(void)
27         _machine_halt = bcm47xx_machine_halt;
28         pm_power_off = bcm47xx_machine_halt;
29         bcm47xx_board_detect();
30 +       mips_set_machine_name(bcm47xx_board_get_name());
31  }
32  
33  static int __init bcm47xx_register_bus_complete(void)