projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8535f2b
)
MIPS: Alchemy: Add devboard machine type to cpuinfo
author
Manuel Lauss
<
[email protected]
>
Tue, 14 Feb 2017 12:03:26 +0000
(13:03 +0100)
committer
Ralf Baechle
<
[email protected]
>
Tue, 29 Aug 2017 13:21:53 +0000
(15:21 +0200)
Prints the devboard name in cpuinfo "machine" line.
Signed-off-by: Manuel Lauss <
[email protected]
>
Cc: James Hogan <
[email protected]
>
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/15285/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/alchemy/devboards/db1xxx.c
patch
|
blob
|
history
diff --git
a/arch/mips/alchemy/devboards/db1xxx.c
b/arch/mips/alchemy/devboards/db1xxx.c
index 2d47f951121a710fb5960fdae14d28a777e07997..c9ad28995cd2d637ca4bc37ffeec5e7f853d26bc 100644
(file)
--- a/
arch/mips/alchemy/devboards/db1xxx.c
+++ b/
arch/mips/alchemy/devboards/db1xxx.c
@@
-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: