Skip to content

Commit 8405419

Browse files
pcercueitsbogend
authored andcommitted
MIPS: generic: Allow boards to set system type
Check for the system_type variable in the get_system_type() function. If non-NULL, return it as the system type. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent c434b9f commit 8405419

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎arch/mips/generic/proc.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@
88

99
#include <asm/bootinfo.h>
1010

11+
char *system_type;
12+
1113
const char *get_system_type(void)
1214
{
1315
const char *str;
1416
int err;
1517

18+
if (system_type)
19+
return system_type;
20+
1621
err = of_property_read_string(of_root, "model", &str);
1722
if (!err)
1823
return str;

0 commit comments

Comments
 (0)