Commit 7da4b6f8 authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by Ralf Baechle

MIPS: BCM47XX: print board name in machine entry in cpuinfo

This will add the board name to the machine entry in /proc/cpuinfo.
Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarJohn Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5864/
parent e92e1d0d
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <linux/ssb/ssb_embedded.h> #include <linux/ssb/ssb_embedded.h>
#include <linux/bcma/bcma_soc.h> #include <linux/bcma/bcma_soc.h>
#include <asm/bootinfo.h> #include <asm/bootinfo.h>
#include <asm/prom.h>
#include <asm/reboot.h> #include <asm/reboot.h>
#include <asm/time.h> #include <asm/time.h>
#include <bcm47xx.h> #include <bcm47xx.h>
...@@ -225,6 +226,7 @@ void __init plat_mem_setup(void) ...@@ -225,6 +226,7 @@ void __init plat_mem_setup(void)
_machine_halt = bcm47xx_machine_halt; _machine_halt = bcm47xx_machine_halt;
pm_power_off = bcm47xx_machine_halt; pm_power_off = bcm47xx_machine_halt;
bcm47xx_board_detect(); bcm47xx_board_detect();
mips_set_machine_name(bcm47xx_board_get_name());
} }
static int __init bcm47xx_register_bus_complete(void) static int __init bcm47xx_register_bus_complete(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment