7
7
#include <hypervisor.h>
8
8
9
9
/* The table includes cpu px info of Intel A3960 SoC */
10
- struct cpu_px_data px_a3960 [] = {
10
+ static const struct cpu_px_data px_a3960 [] = {
11
11
{0x960 , 0 , 0xA , 0xA , 0x1800 , 0x1800 }, /* P0 */
12
12
{0x8FC , 0 , 0xA , 0xA , 0x1700 , 0x1700 }, /* P1 */
13
13
{0x898 , 0 , 0xA , 0xA , 0x1600 , 0x1600 }, /* P2 */
@@ -28,14 +28,14 @@ struct cpu_px_data px_a3960[] = {
28
28
};
29
29
30
30
/* The table includes cpu cx info of Intel A3960 SoC */
31
- struct cpu_cx_data cx_a3960 [] = {
31
+ static const struct cpu_cx_data cx_a3960 [] = {
32
32
{{SPACE_FFixedHW , 0x0 , 0 , 0 , 0 }, 0x1 , 0x1 , 0x3E8 }, /* C1 */
33
33
{{SPACE_SYSTEM_IO , 0x8 , 0 , 0 , 0x415 }, 0x2 , 0x32 , 0x0A }, /* C2 */
34
34
{{SPACE_SYSTEM_IO , 0x8 , 0 , 0 , 0x419 }, 0x3 , 0x96 , 0x0A } /* C3 */
35
35
};
36
36
37
37
/* The table includes cpu px info of Intel A3950 SoC */
38
- struct cpu_px_data px_a3950 [] = {
38
+ static const struct cpu_px_data px_a3950 [] = {
39
39
{0x7D0 , 0 , 0xA , 0xA , 0x1400 , 0x1400 }, /* P0 */
40
40
{0x76C , 0 , 0xA , 0xA , 0x1300 , 0x1300 }, /* P1 */
41
41
{0x708 , 0 , 0xA , 0xA , 0x1200 , 0x1200 }, /* P2 */
@@ -52,7 +52,7 @@ struct cpu_px_data px_a3950[] = {
52
52
};
53
53
54
54
/* The table includes cpu px info of Intel J3455 SoC */
55
- struct cpu_px_data px_j3455 [] = {
55
+ static const struct cpu_px_data px_j3455 [] = {
56
56
{0x5DD , 0 , 0xA , 0xA , 0x1700 , 0x1700 }, /* P0 */
57
57
{0x5DC , 0 , 0xA , 0xA , 0x0F00 , 0x0F00 }, /* P1 */
58
58
{0x578 , 0 , 0xA , 0xA , 0x0E00 , 0x0E00 }, /* P2 */
@@ -65,13 +65,13 @@ struct cpu_px_data px_j3455[] = {
65
65
};
66
66
67
67
/* The table includes cpu cx info of Intel J3455 SoC */
68
- struct cpu_cx_data cx_j3455 [] = {
68
+ static const struct cpu_cx_data cx_j3455 [] = {
69
69
{{SPACE_FFixedHW , 0x1 , 0x2 , 0x1 , 0x01 }, 0x1 , 0x1 , 0x3E8 }, /* C1 */
70
70
{{SPACE_FFixedHW , 0x1 , 0x2 , 0x1 , 0x21 }, 0x2 , 0x32 , 0x0A }, /* C2 */
71
71
{{SPACE_FFixedHW , 0x1 , 0x2 , 0x1 , 0x60 }, 0x3 , 0x96 , 0x0A } /* C3 */
72
72
};
73
73
74
- struct cpu_state_table {
74
+ static const struct cpu_state_table {
75
75
char model_name [64 ];
76
76
struct cpu_state_info state_info ;
77
77
} cpu_state_tbl [] = {
@@ -111,7 +111,7 @@ static int get_state_tbl_idx(char *cpuname)
111
111
void load_cpu_state_data (void )
112
112
{
113
113
int tbl_idx ;
114
- struct cpu_state_info * state_info ;
114
+ const struct cpu_state_info * state_info ;
115
115
116
116
memset (& boot_cpu_data .state_info , 0 ,
117
117
sizeof (struct cpu_state_info ));
0 commit comments