Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7f78c4a authored by Manuel Lauss's avatar Manuel Lauss Committed by Ralf Baechle
Browse files

MIPS: Alchemy: Add devboard machine type to cpuinfo



Prints the devboard name in cpuinfo "machine" line.

Signed-off-by: default avatarManuel Lauss <manuel.lauss@gmail.com>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15285/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 8535f2ba
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
 * Alchemy DB/PB1xxx board support.
 */

#include <asm/prom.h>
#include <asm/mach-au1x00/au1000.h>
#include <asm/mach-db1x00/bcsr.h>

@@ -97,6 +98,7 @@ arch_initcall(db1xxx_arch_init);

static int __init db1xxx_dev_init(void)
{
	mips_set_machine_name(board_type_str());
	switch (BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI))) {
	case BCSR_WHOAMI_DB1000:
	case BCSR_WHOAMI_DB1500: