File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 29
29
30
30
#define CPU_GENERIC 0
31
31
#define CPU_Z13 1
32
+ #define CPU_Z14 2
32
33
33
34
static char * cpuname [] = {
34
35
"ZARCH_GENERIC" ,
35
- "Z13"
36
+ "Z13" ,
37
+ "Z14"
36
38
};
37
39
38
40
static char * cpuname_lower [] = {
39
41
"zarch_generic" ,
40
- "z13"
42
+ "z13" ,
43
+ "z14"
41
44
};
42
45
43
46
int detect (void )
@@ -62,6 +65,10 @@ int detect(void)
62
65
if (strstr (p , "2964" )) return CPU_Z13 ;
63
66
if (strstr (p , "2965" )) return CPU_Z13 ;
64
67
68
+ /* detect z14, but fall back to z13 */
69
+ if (strstr (p , "3906" )) return CPU_Z13 ;
70
+ if (strstr (p , "3907" )) return CPU_Z13 ;
71
+
65
72
return CPU_GENERIC ;
66
73
}
67
74
@@ -107,5 +114,9 @@ void get_cpuconfig(void)
107
114
printf ("#define Z13\n" );
108
115
printf ("#define DTB_DEFAULT_ENTRIES 64\n" );
109
116
break ;
117
+ case CPU_Z14 :
118
+ printf ("#define Z14\n" );
119
+ printf ("#define DTB_DEFAULT_ENTRIES 64\n" );
120
+ break ;
110
121
}
111
122
}
You can’t perform that action at this time.
0 commit comments