Skip to content

Commit a9fee3a

Browse files
XBursttsbogend
authored andcommitted
MIPS: Ingenic: Add system type for new Ingenic SoCs.
Add JZ4775, X1000E, X2000, and X2000E system type for cat /proc/cpuinfo to give out JZ4775, X1000E, X2000 and X2000E. Signed-off-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com> Reviewed-by: Paul Cercueil <paul@crapouillou.net> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
1 parent 2372b50 commit a9fee3a

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

‎arch/mips/generic/board-ingenic.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,20 @@
2121
static __init char *ingenic_get_system_type(unsigned long machtype)
2222
{
2323
switch (machtype) {
24+
case MACH_INGENIC_X2000E:
25+
return "X2000E";
26+
case MACH_INGENIC_X2000:
27+
return "X2000";
2428
case MACH_INGENIC_X1830:
2529
return "X1830";
30+
case MACH_INGENIC_X1000E:
31+
return "X1000E";
2632
case MACH_INGENIC_X1000:
2733
return "X1000";
2834
case MACH_INGENIC_JZ4780:
2935
return "JZ4780";
36+
case MACH_INGENIC_JZ4775:
37+
return "JZ4775";
3038
case MACH_INGENIC_JZ4770:
3139
return "JZ4770";
3240
case MACH_INGENIC_JZ4725B:
@@ -56,9 +64,13 @@ static const struct of_device_id ingenic_of_match[] __initconst = {
5664
{ .compatible = "ingenic,jz4740", .data = (void *)MACH_INGENIC_JZ4740 },
5765
{ .compatible = "ingenic,jz4725b", .data = (void *)MACH_INGENIC_JZ4725B },
5866
{ .compatible = "ingenic,jz4770", .data = (void *)MACH_INGENIC_JZ4770 },
67+
{ .compatible = "ingenic,jz4775", .data = (void *)MACH_INGENIC_JZ4775 },
5968
{ .compatible = "ingenic,jz4780", .data = (void *)MACH_INGENIC_JZ4780 },
6069
{ .compatible = "ingenic,x1000", .data = (void *)MACH_INGENIC_X1000 },
70+
{ .compatible = "ingenic,x1000e", .data = (void *)MACH_INGENIC_X1000E },
6171
{ .compatible = "ingenic,x1830", .data = (void *)MACH_INGENIC_X1830 },
72+
{ .compatible = "ingenic,x2000", .data = (void *)MACH_INGENIC_X2000 },
73+
{ .compatible = "ingenic,x2000e", .data = (void *)MACH_INGENIC_X2000E },
6274
{}
6375
};
6476

‎arch/mips/include/asm/bootinfo.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ enum ingenic_machine_type {
7979
MACH_INGENIC_JZ4775,
8080
MACH_INGENIC_JZ4780,
8181
MACH_INGENIC_X1000,
82+
MACH_INGENIC_X1000E,
8283
MACH_INGENIC_X1830,
8384
MACH_INGENIC_X2000,
85+
MACH_INGENIC_X2000E,
8486
};
8587

8688
extern char *system_type;

0 commit comments

Comments
 (0)