b7bc335f95ac67b4bed226f486a7acf733ada785
[openwrt.git] / target / linux / brcm47xx / patches-3.10 / 073-MIPS-BCM47XX-print-board-name-in-machine-entry-in-cp.patch
1 commit 86bd812676d1e99968f395ad82ccaa2db7965748
2 Author: Hauke Mehrtens <hauke@hauke-m.de>
3 Date:   Thu Sep 19 22:04:04 2013 +0200
4
5     MIPS: BCM47XX: print board name in machine entry in 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
11 --- a/arch/mips/bcm47xx/setup.c
12 +++ b/arch/mips/bcm47xx/setup.c
13 @@ -32,6 +32,7 @@
14  #include <linux/ssb/ssb_embedded.h>
15  #include <linux/bcma/bcma_soc.h>
16  #include <asm/bootinfo.h>
17 +#include <asm/prom.h>
18  #include <asm/reboot.h>
19  #include <asm/time.h>
20  #include <bcm47xx.h>
21 @@ -225,6 +226,7 @@ void __init plat_mem_setup(void)
22         _machine_halt = bcm47xx_machine_halt;
23         pm_power_off = bcm47xx_machine_halt;
24         bcm47xx_board_detect();
25 +       mips_set_machine_name(bcm47xx_board_get_name());
26  }
27  
28  static int __init bcm47xx_register_bus_complete(void)