2020
2121static const u8 ARL_LPM_REG_INDEX [] = {0 , 4 , 5 , 6 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 20 };
2222
23- const struct pmc_bit_map arl_socs_ltr_show_map [] = {
23+ static const struct pmc_bit_map arl_socs_ltr_show_map [] = {
2424 {"SOUTHPORT_A" , CNP_PMC_LTR_SPA },
2525 {"SOUTHPORT_B" , CNP_PMC_LTR_SPB },
2626 {"SATA" , CNP_PMC_LTR_SATA },
@@ -60,7 +60,7 @@ const struct pmc_bit_map arl_socs_ltr_show_map[] = {
6060 {}
6161};
6262
63- const struct pmc_bit_map arl_socs_clocksource_status_map [] = {
63+ static const struct pmc_bit_map arl_socs_clocksource_status_map [] = {
6464 {"AON2_OFF_STS" , BIT (0 )},
6565 {"AON3_OFF_STS" , BIT (1 )},
6666 {"AON4_OFF_STS" , BIT (2 )},
@@ -88,7 +88,7 @@ const struct pmc_bit_map arl_socs_clocksource_status_map[] = {
8888 {}
8989};
9090
91- const struct pmc_bit_map arl_socs_power_gating_status_0_map [] = {
91+ static const struct pmc_bit_map arl_socs_power_gating_status_0_map [] = {
9292 {"PMC_PGD0_PG_STS" , BIT (0 )},
9393 {"DMI_PGD0_PG_STS" , BIT (1 )},
9494 {"ESPISPI_PGD0_PG_STS" , BIT (2 )},
@@ -124,7 +124,7 @@ const struct pmc_bit_map arl_socs_power_gating_status_0_map[] = {
124124 {}
125125};
126126
127- const struct pmc_bit_map arl_socs_power_gating_status_1_map [] = {
127+ static const struct pmc_bit_map arl_socs_power_gating_status_1_map [] = {
128128 {"USBR0_PGD0_PG_STS" , BIT (0 )},
129129 {"SUSRAM_PGD0_PG_STS" , BIT (1 )},
130130 {"SMT1_PGD0_PG_STS" , BIT (2 )},
@@ -160,7 +160,7 @@ const struct pmc_bit_map arl_socs_power_gating_status_1_map[] = {
160160 {}
161161};
162162
163- const struct pmc_bit_map arl_socs_power_gating_status_2_map [] = {
163+ static const struct pmc_bit_map arl_socs_power_gating_status_2_map [] = {
164164 {"PSF8_PGD0_PG_STS" , BIT (0 )},
165165 {"FIA_PGD0_PG_STS" , BIT (1 )},
166166 {"SOC_D2D_PGD3_PG_STS" , BIT (2 )},
@@ -188,7 +188,7 @@ const struct pmc_bit_map arl_socs_power_gating_status_2_map[] = {
188188 {}
189189};
190190
191- const struct pmc_bit_map arl_socs_d3_status_2_map [] = {
191+ static const struct pmc_bit_map arl_socs_d3_status_2_map [] = {
192192 {"CSMERTC_D3_STS" , BIT (1 )},
193193 {"SUSRAM_D3_STS" , BIT (2 )},
194194 {"CSE_D3_STS" , BIT (4 )},
@@ -207,21 +207,21 @@ const struct pmc_bit_map arl_socs_d3_status_2_map[] = {
207207 {}
208208};
209209
210- const struct pmc_bit_map arl_socs_d3_status_3_map [] = {
210+ static const struct pmc_bit_map arl_socs_d3_status_3_map [] = {
211211 {"GBETSN_D3_STS" , BIT (13 )},
212212 {"THC0_D3_STS" , BIT (14 )},
213213 {"THC1_D3_STS" , BIT (15 )},
214214 {"ACE_D3_STS" , BIT (23 )},
215215 {}
216216};
217217
218- const struct pmc_bit_map arl_socs_vnn_req_status_3_map [] = {
218+ static const struct pmc_bit_map arl_socs_vnn_req_status_3_map [] = {
219219 {"DTS0_VNN_REQ_STS" , BIT (7 )},
220220 {"GPIOCOM5_VNN_REQ_STS" , BIT (11 )},
221221 {}
222222};
223223
224- const struct pmc_bit_map * arl_socs_lpm_maps [] = {
224+ static const struct pmc_bit_map * arl_socs_lpm_maps [] = {
225225 arl_socs_clocksource_status_map ,
226226 arl_socs_power_gating_status_0_map ,
227227 arl_socs_power_gating_status_1_map ,
@@ -239,7 +239,7 @@ const struct pmc_bit_map *arl_socs_lpm_maps[] = {
239239 NULL
240240};
241241
242- const struct pmc_bit_map arl_socs_pfear_map [] = {
242+ static const struct pmc_bit_map arl_socs_pfear_map [] = {
243243 {"RSVD64" , BIT (0 )},
244244 {"RSVD65" , BIT (1 )},
245245 {"RSVD66" , BIT (2 )},
@@ -250,13 +250,13 @@ const struct pmc_bit_map arl_socs_pfear_map[] = {
250250 {}
251251};
252252
253- const struct pmc_bit_map * ext_arl_socs_pfear_map [] = {
253+ static const struct pmc_bit_map * ext_arl_socs_pfear_map [] = {
254254 mtl_socm_pfear_map ,
255255 arl_socs_pfear_map ,
256256 NULL
257257};
258258
259- const struct pmc_reg_map arl_socs_reg_map = {
259+ static const struct pmc_reg_map arl_socs_reg_map = {
260260 .pfear_sts = ext_arl_socs_pfear_map ,
261261 .ppfear_buckets = ARL_SOCS_PPFEAR_NUM_ENTRIES ,
262262 .pm_read_disable_bit = CNP_PMC_READ_DISABLE_BIT ,
@@ -284,7 +284,7 @@ const struct pmc_reg_map arl_socs_reg_map = {
284284 .pson_residency_counter_step = TGL_PSON_RES_COUNTER_STEP ,
285285};
286286
287- const struct pmc_bit_map arl_pchs_ltr_show_map [] = {
287+ static const struct pmc_bit_map arl_pchs_ltr_show_map [] = {
288288 {"SOUTHPORT_A" , CNP_PMC_LTR_SPA },
289289 {"SOUTHPORT_B" , CNP_PMC_LTR_SPB },
290290 {"SATA" , CNP_PMC_LTR_SATA },
@@ -324,7 +324,7 @@ const struct pmc_bit_map arl_pchs_ltr_show_map[] = {
324324 {}
325325};
326326
327- const struct pmc_bit_map arl_pchs_clocksource_status_map [] = {
327+ static const struct pmc_bit_map arl_pchs_clocksource_status_map [] = {
328328 {"AON2_OFF_STS" , BIT (0 )},
329329 {"AON3_OFF_STS" , BIT (1 )},
330330 {"AON4_OFF_STS" , BIT (2 )},
@@ -359,7 +359,7 @@ const struct pmc_bit_map arl_pchs_clocksource_status_map[] = {
359359 {}
360360};
361361
362- const struct pmc_bit_map arl_pchs_power_gating_status_0_map [] = {
362+ static const struct pmc_bit_map arl_pchs_power_gating_status_0_map [] = {
363363 {"PMC_PGD0_PG_STS" , BIT (0 )},
364364 {"DMI_PGD0_PG_STS" , BIT (1 )},
365365 {"ESPISPI_PGD0_PG_STS" , BIT (2 )},
@@ -395,7 +395,7 @@ const struct pmc_bit_map arl_pchs_power_gating_status_0_map[] = {
395395 {}
396396};
397397
398- const struct pmc_bit_map arl_pchs_power_gating_status_1_map [] = {
398+ static const struct pmc_bit_map arl_pchs_power_gating_status_1_map [] = {
399399 {"USBR0_PGD0_PG_STS" , BIT (0 )},
400400 {"SUSRAM_PGD0_PG_STS" , BIT (1 )},
401401 {"SMT1_PGD0_PG_STS" , BIT (2 )},
@@ -431,7 +431,7 @@ const struct pmc_bit_map arl_pchs_power_gating_status_1_map[] = {
431431 {}
432432};
433433
434- const struct pmc_bit_map arl_pchs_power_gating_status_2_map [] = {
434+ static const struct pmc_bit_map arl_pchs_power_gating_status_2_map [] = {
435435 {"U3FPW2_PGD0_PG_STS" , BIT (0 )},
436436 {"FIA_PGD0_PG_STS" , BIT (1 )},
437437 {"FIACPCB_X_PGD0_PG_STS" , BIT (2 )},
@@ -458,7 +458,7 @@ const struct pmc_bit_map arl_pchs_power_gating_status_2_map[] = {
458458 {}
459459};
460460
461- const struct pmc_bit_map arl_pchs_d3_status_0_map [] = {
461+ static const struct pmc_bit_map arl_pchs_d3_status_0_map [] = {
462462 {"SPF_D3_STS" , BIT (0 )},
463463 {"LPSS_D3_STS" , BIT (3 )},
464464 {"XDCI_D3_STS" , BIT (4 )},
@@ -475,7 +475,7 @@ const struct pmc_bit_map arl_pchs_d3_status_0_map[] = {
475475 {}
476476};
477477
478- const struct pmc_bit_map arl_pchs_d3_status_1_map [] = {
478+ static const struct pmc_bit_map arl_pchs_d3_status_1_map [] = {
479479 {"GBETSN1_D3_STS" , BIT (14 )},
480480 {"GBE_D3_STS" , BIT (19 )},
481481 {"ITSS_D3_STS" , BIT (23 )},
@@ -484,7 +484,7 @@ const struct pmc_bit_map arl_pchs_d3_status_1_map[] = {
484484 {}
485485};
486486
487- const struct pmc_bit_map arl_pchs_d3_status_2_map [] = {
487+ static const struct pmc_bit_map arl_pchs_d3_status_2_map [] = {
488488 {"CSMERTC_D3_STS" , BIT (1 )},
489489 {"SUSRAM_D3_STS" , BIT (2 )},
490490 {"CSE_D3_STS" , BIT (4 )},
@@ -505,7 +505,7 @@ const struct pmc_bit_map arl_pchs_d3_status_2_map[] = {
505505 {}
506506};
507507
508- const struct pmc_bit_map arl_pchs_d3_status_3_map [] = {
508+ static const struct pmc_bit_map arl_pchs_d3_status_3_map [] = {
509509 {"ESE_D3_STS" , BIT (3 )},
510510 {"GBETSN_D3_STS" , BIT (13 )},
511511 {"THC0_D3_STS" , BIT (14 )},
@@ -514,13 +514,13 @@ const struct pmc_bit_map arl_pchs_d3_status_3_map[] = {
514514 {}
515515};
516516
517- const struct pmc_bit_map arl_pchs_vnn_req_status_0_map [] = {
517+ static const struct pmc_bit_map arl_pchs_vnn_req_status_0_map [] = {
518518 {"FIA_VNN_REQ_STS" , BIT (17 )},
519519 {"ESPISPI_VNN_REQ_STS" , BIT (18 )},
520520 {}
521521};
522522
523- const struct pmc_bit_map arl_pchs_vnn_req_status_1_map [] = {
523+ static const struct pmc_bit_map arl_pchs_vnn_req_status_1_map [] = {
524524 {"NPK_VNN_REQ_STS" , BIT (4 )},
525525 {"DFXAGG_VNN_REQ_STS" , BIT (8 )},
526526 {"EXI_VNN_REQ_STS" , BIT (9 )},
@@ -531,7 +531,7 @@ const struct pmc_bit_map arl_pchs_vnn_req_status_1_map[] = {
531531 {}
532532};
533533
534- const struct pmc_bit_map arl_pchs_vnn_req_status_2_map [] = {
534+ static const struct pmc_bit_map arl_pchs_vnn_req_status_2_map [] = {
535535 {"FIA2_VNN_REQ_STS" , BIT (0 )},
536536 {"CSMERTC_VNN_REQ_STS" , BIT (1 )},
537537 {"CSE_VNN_REQ_STS" , BIT (4 )},
@@ -549,15 +549,15 @@ const struct pmc_bit_map arl_pchs_vnn_req_status_2_map[] = {
549549 {}
550550};
551551
552- const struct pmc_bit_map arl_pchs_vnn_req_status_3_map [] = {
552+ static const struct pmc_bit_map arl_pchs_vnn_req_status_3_map [] = {
553553 {"ESE_VNN_REQ_STS" , BIT (3 )},
554554 {"DTS0_VNN_REQ_STS" , BIT (7 )},
555555 {"GPIOCOM5_VNN_REQ_STS" , BIT (11 )},
556556 {"FIA1_VNN_REQ_STS" , BIT (12 )},
557557 {}
558558};
559559
560- const struct pmc_bit_map arl_pchs_vnn_misc_status_map [] = {
560+ static const struct pmc_bit_map arl_pchs_vnn_misc_status_map [] = {
561561 {"CPU_C10_REQ_STS" , BIT (0 )},
562562 {"TS_OFF_REQ_STS" , BIT (1 )},
563563 {"PNDE_MET_REQ_STS" , BIT (2 )},
@@ -587,7 +587,7 @@ const struct pmc_bit_map arl_pchs_vnn_misc_status_map[] = {
587587 {}
588588};
589589
590- const struct pmc_bit_map arl_pchs_signal_status_map [] = {
590+ static const struct pmc_bit_map arl_pchs_signal_status_map [] = {
591591 {"LSX_Wake0_STS" , BIT (0 )},
592592 {"LSX_Wake1_STS" , BIT (1 )},
593593 {"LSX_Wake2_STS" , BIT (2 )},
@@ -607,7 +607,7 @@ const struct pmc_bit_map arl_pchs_signal_status_map[] = {
607607 {}
608608};
609609
610- const struct pmc_bit_map * arl_pchs_lpm_maps [] = {
610+ static const struct pmc_bit_map * arl_pchs_lpm_maps [] = {
611611 arl_pchs_clocksource_status_map ,
612612 arl_pchs_power_gating_status_0_map ,
613613 arl_pchs_power_gating_status_1_map ,
@@ -625,7 +625,7 @@ const struct pmc_bit_map *arl_pchs_lpm_maps[] = {
625625 NULL
626626};
627627
628- const struct pmc_reg_map arl_pchs_reg_map = {
628+ static const struct pmc_reg_map arl_pchs_reg_map = {
629629 .pfear_sts = ext_arl_socs_pfear_map ,
630630 .ppfear_buckets = ARL_SOCS_PPFEAR_NUM_ENTRIES ,
631631 .pm_read_disable_bit = CNP_PMC_READ_DISABLE_BIT ,
0 commit comments