diff options
Diffstat (limited to 'drivers/clk/sunxi/clk-sunxi.c')
-rw-r--r-- | drivers/clk/sunxi/clk-sunxi.c | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c index d39f213f0fbe..34ee69f4d50c 100644 --- a/drivers/clk/sunxi/clk-sunxi.c +++ b/drivers/clk/sunxi/clk-sunxi.c | |||
@@ -288,17 +288,17 @@ static struct clk_factors_config sun4i_apb1_config = { | |||
288 | .pwidth = 2, | 288 | .pwidth = 2, |
289 | }; | 289 | }; |
290 | 290 | ||
291 | static const __initconst struct factors_data sun4i_pll1_data = { | 291 | static const struct factors_data sun4i_pll1_data __initconst = { |
292 | .table = &sun4i_pll1_config, | 292 | .table = &sun4i_pll1_config, |
293 | .getter = sun4i_get_pll1_factors, | 293 | .getter = sun4i_get_pll1_factors, |
294 | }; | 294 | }; |
295 | 295 | ||
296 | static const __initconst struct factors_data sun6i_a31_pll1_data = { | 296 | static const struct factors_data sun6i_a31_pll1_data __initconst = { |
297 | .table = &sun6i_a31_pll1_config, | 297 | .table = &sun6i_a31_pll1_config, |
298 | .getter = sun6i_a31_get_pll1_factors, | 298 | .getter = sun6i_a31_get_pll1_factors, |
299 | }; | 299 | }; |
300 | 300 | ||
301 | static const __initconst struct factors_data sun4i_apb1_data = { | 301 | static const struct factors_data sun4i_apb1_data __initconst = { |
302 | .table = &sun4i_apb1_config, | 302 | .table = &sun4i_apb1_config, |
303 | .getter = sun4i_get_apb1_factors, | 303 | .getter = sun4i_get_apb1_factors, |
304 | }; | 304 | }; |
@@ -336,15 +336,15 @@ struct mux_data { | |||
336 | u8 shift; | 336 | u8 shift; |
337 | }; | 337 | }; |
338 | 338 | ||
339 | static const __initconst struct mux_data sun4i_cpu_mux_data = { | 339 | static const struct mux_data sun4i_cpu_mux_data __initconst = { |
340 | .shift = 16, | 340 | .shift = 16, |
341 | }; | 341 | }; |
342 | 342 | ||
343 | static const __initconst struct mux_data sun6i_a31_ahb1_mux_data = { | 343 | static const struct mux_data sun6i_a31_ahb1_mux_data __initconst = { |
344 | .shift = 12, | 344 | .shift = 12, |
345 | }; | 345 | }; |
346 | 346 | ||
347 | static const __initconst struct mux_data sun4i_apb1_mux_data = { | 347 | static const struct mux_data sun4i_apb1_mux_data __initconst = { |
348 | .shift = 24, | 348 | .shift = 24, |
349 | }; | 349 | }; |
350 | 350 | ||
@@ -385,25 +385,25 @@ struct div_data { | |||
385 | u8 width; | 385 | u8 width; |
386 | }; | 386 | }; |
387 | 387 | ||
388 | static const __initconst struct div_data sun4i_axi_data = { | 388 | static const struct div_data sun4i_axi_data __initconst = { |
389 | .shift = 0, | 389 | .shift = 0, |
390 | .pow = 0, | 390 | .pow = 0, |
391 | .width = 2, | 391 | .width = 2, |
392 | }; | 392 | }; |
393 | 393 | ||
394 | static const __initconst struct div_data sun4i_ahb_data = { | 394 | static const struct div_data sun4i_ahb_data __initconst = { |
395 | .shift = 4, | 395 | .shift = 4, |
396 | .pow = 1, | 396 | .pow = 1, |
397 | .width = 2, | 397 | .width = 2, |
398 | }; | 398 | }; |
399 | 399 | ||
400 | static const __initconst struct div_data sun4i_apb0_data = { | 400 | static const struct div_data sun4i_apb0_data __initconst = { |
401 | .shift = 8, | 401 | .shift = 8, |
402 | .pow = 1, | 402 | .pow = 1, |
403 | .width = 2, | 403 | .width = 2, |
404 | }; | 404 | }; |
405 | 405 | ||
406 | static const __initconst struct div_data sun6i_a31_apb2_div_data = { | 406 | static const struct div_data sun6i_a31_apb2_div_data __initconst = { |
407 | .shift = 0, | 407 | .shift = 0, |
408 | .pow = 0, | 408 | .pow = 0, |
409 | .width = 4, | 409 | .width = 4, |
@@ -443,67 +443,67 @@ struct gates_data { | |||
443 | DECLARE_BITMAP(mask, SUNXI_GATES_MAX_SIZE); | 443 | DECLARE_BITMAP(mask, SUNXI_GATES_MAX_SIZE); |
444 | }; | 444 | }; |
445 | 445 | ||
446 | static const __initconst struct gates_data sun4i_axi_gates_data = { | 446 | static const struct gates_data sun4i_axi_gates_data __initconst = { |
447 | .mask = {1}, | 447 | .mask = {1}, |
448 | }; | 448 | }; |
449 | 449 | ||
450 | static const __initconst struct gates_data sun4i_ahb_gates_data = { | 450 | static const struct gates_data sun4i_ahb_gates_data __initconst = { |
451 | .mask = {0x7F77FFF, 0x14FB3F}, | 451 | .mask = {0x7F77FFF, 0x14FB3F}, |
452 | }; | 452 | }; |
453 | 453 | ||
454 | static const __initconst struct gates_data sun5i_a10s_ahb_gates_data = { | 454 | static const struct gates_data sun5i_a10s_ahb_gates_data __initconst = { |
455 | .mask = {0x147667e7, 0x185915}, | 455 | .mask = {0x147667e7, 0x185915}, |
456 | }; | 456 | }; |
457 | 457 | ||
458 | static const __initconst struct gates_data sun5i_a13_ahb_gates_data = { | 458 | static const struct gates_data sun5i_a13_ahb_gates_data __initconst = { |
459 | .mask = {0x107067e7, 0x185111}, | 459 | .mask = {0x107067e7, 0x185111}, |
460 | }; | 460 | }; |
461 | 461 | ||
462 | static const __initconst struct gates_data sun6i_a31_ahb1_gates_data = { | 462 | static const struct gates_data sun6i_a31_ahb1_gates_data __initconst = { |
463 | .mask = {0xEDFE7F62, 0x794F931}, | 463 | .mask = {0xEDFE7F62, 0x794F931}, |
464 | }; | 464 | }; |
465 | 465 | ||
466 | static const __initconst struct gates_data sun7i_a20_ahb_gates_data = { | 466 | static const struct gates_data sun7i_a20_ahb_gates_data __initconst = { |
467 | .mask = { 0x12f77fff, 0x16ff3f }, | 467 | .mask = { 0x12f77fff, 0x16ff3f }, |
468 | }; | 468 | }; |
469 | 469 | ||
470 | static const __initconst struct gates_data sun4i_apb0_gates_data = { | 470 | static const struct gates_data sun4i_apb0_gates_data __initconst = { |
471 | .mask = {0x4EF}, | 471 | .mask = {0x4EF}, |
472 | }; | 472 | }; |
473 | 473 | ||
474 | static const __initconst struct gates_data sun5i_a10s_apb0_gates_data = { | 474 | static const struct gates_data sun5i_a10s_apb0_gates_data __initconst = { |
475 | .mask = {0x469}, | 475 | .mask = {0x469}, |
476 | }; | 476 | }; |
477 | 477 | ||
478 | static const __initconst struct gates_data sun5i_a13_apb0_gates_data = { | 478 | static const struct gates_data sun5i_a13_apb0_gates_data __initconst = { |
479 | .mask = {0x61}, | 479 | .mask = {0x61}, |
480 | }; | 480 | }; |
481 | 481 | ||
482 | static const __initconst struct gates_data sun7i_a20_apb0_gates_data = { | 482 | static const struct gates_data sun7i_a20_apb0_gates_data __initconst = { |
483 | .mask = { 0x4ff }, | 483 | .mask = { 0x4ff }, |
484 | }; | 484 | }; |
485 | 485 | ||
486 | static const __initconst struct gates_data sun4i_apb1_gates_data = { | 486 | static const struct gates_data sun4i_apb1_gates_data __initconst = { |
487 | .mask = {0xFF00F7}, | 487 | .mask = {0xFF00F7}, |
488 | }; | 488 | }; |
489 | 489 | ||
490 | static const __initconst struct gates_data sun5i_a10s_apb1_gates_data = { | 490 | static const struct gates_data sun5i_a10s_apb1_gates_data __initconst = { |
491 | .mask = {0xf0007}, | 491 | .mask = {0xf0007}, |
492 | }; | 492 | }; |
493 | 493 | ||
494 | static const __initconst struct gates_data sun5i_a13_apb1_gates_data = { | 494 | static const struct gates_data sun5i_a13_apb1_gates_data __initconst = { |
495 | .mask = {0xa0007}, | 495 | .mask = {0xa0007}, |
496 | }; | 496 | }; |
497 | 497 | ||
498 | static const __initconst struct gates_data sun6i_a31_apb1_gates_data = { | 498 | static const struct gates_data sun6i_a31_apb1_gates_data __initconst = { |
499 | .mask = {0x3031}, | 499 | .mask = {0x3031}, |
500 | }; | 500 | }; |
501 | 501 | ||
502 | static const __initconst struct gates_data sun6i_a31_apb2_gates_data = { | 502 | static const struct gates_data sun6i_a31_apb2_gates_data __initconst = { |
503 | .mask = {0x3F000F}, | 503 | .mask = {0x3F000F}, |
504 | }; | 504 | }; |
505 | 505 | ||
506 | static const __initconst struct gates_data sun7i_a20_apb1_gates_data = { | 506 | static const struct gates_data sun7i_a20_apb1_gates_data __initconst = { |
507 | .mask = { 0xff80ff }, | 507 | .mask = { 0xff80ff }, |
508 | }; | 508 | }; |
509 | 509 | ||
@@ -557,7 +557,7 @@ static void __init sunxi_gates_clk_setup(struct device_node *node, | |||
557 | } | 557 | } |
558 | 558 | ||
559 | /* Matches for factors clocks */ | 559 | /* Matches for factors clocks */ |
560 | static const __initconst struct of_device_id clk_factors_match[] = { | 560 | static const struct of_device_id clk_factors_match[] __initconst = { |
561 | {.compatible = "allwinner,sun4i-pll1-clk", .data = &sun4i_pll1_data,}, | 561 | {.compatible = "allwinner,sun4i-pll1-clk", .data = &sun4i_pll1_data,}, |
562 | {.compatible = "allwinner,sun6i-a31-pll1-clk", .data = &sun6i_a31_pll1_data,}, | 562 | {.compatible = "allwinner,sun6i-a31-pll1-clk", .data = &sun6i_a31_pll1_data,}, |
563 | {.compatible = "allwinner,sun4i-apb1-clk", .data = &sun4i_apb1_data,}, | 563 | {.compatible = "allwinner,sun4i-apb1-clk", .data = &sun4i_apb1_data,}, |
@@ -565,7 +565,7 @@ static const __initconst struct of_device_id clk_factors_match[] = { | |||
565 | }; | 565 | }; |
566 | 566 | ||
567 | /* Matches for divider clocks */ | 567 | /* Matches for divider clocks */ |
568 | static const __initconst struct of_device_id clk_div_match[] = { | 568 | static const struct of_device_id clk_div_match[] __initconst = { |
569 | {.compatible = "allwinner,sun4i-axi-clk", .data = &sun4i_axi_data,}, | 569 | {.compatible = "allwinner,sun4i-axi-clk", .data = &sun4i_axi_data,}, |
570 | {.compatible = "allwinner,sun4i-ahb-clk", .data = &sun4i_ahb_data,}, | 570 | {.compatible = "allwinner,sun4i-ahb-clk", .data = &sun4i_ahb_data,}, |
571 | {.compatible = "allwinner,sun4i-apb0-clk", .data = &sun4i_apb0_data,}, | 571 | {.compatible = "allwinner,sun4i-apb0-clk", .data = &sun4i_apb0_data,}, |
@@ -574,7 +574,7 @@ static const __initconst struct of_device_id clk_div_match[] = { | |||
574 | }; | 574 | }; |
575 | 575 | ||
576 | /* Matches for mux clocks */ | 576 | /* Matches for mux clocks */ |
577 | static const __initconst struct of_device_id clk_mux_match[] = { | 577 | static const struct of_device_id clk_mux_match[] __initconst = { |
578 | {.compatible = "allwinner,sun4i-cpu-clk", .data = &sun4i_cpu_mux_data,}, | 578 | {.compatible = "allwinner,sun4i-cpu-clk", .data = &sun4i_cpu_mux_data,}, |
579 | {.compatible = "allwinner,sun4i-apb1-mux-clk", .data = &sun4i_apb1_mux_data,}, | 579 | {.compatible = "allwinner,sun4i-apb1-mux-clk", .data = &sun4i_apb1_mux_data,}, |
580 | {.compatible = "allwinner,sun6i-a31-ahb1-mux-clk", .data = &sun6i_a31_ahb1_mux_data,}, | 580 | {.compatible = "allwinner,sun6i-a31-ahb1-mux-clk", .data = &sun6i_a31_ahb1_mux_data,}, |
@@ -582,7 +582,7 @@ static const __initconst struct of_device_id clk_mux_match[] = { | |||
582 | }; | 582 | }; |
583 | 583 | ||
584 | /* Matches for gate clocks */ | 584 | /* Matches for gate clocks */ |
585 | static const __initconst struct of_device_id clk_gates_match[] = { | 585 | static const struct of_device_id clk_gates_match[] __initconst = { |
586 | {.compatible = "allwinner,sun4i-axi-gates-clk", .data = &sun4i_axi_gates_data,}, | 586 | {.compatible = "allwinner,sun4i-axi-gates-clk", .data = &sun4i_axi_gates_data,}, |
587 | {.compatible = "allwinner,sun4i-ahb-gates-clk", .data = &sun4i_ahb_gates_data,}, | 587 | {.compatible = "allwinner,sun4i-ahb-gates-clk", .data = &sun4i_ahb_gates_data,}, |
588 | {.compatible = "allwinner,sun5i-a10s-ahb-gates-clk", .data = &sun5i_a10s_ahb_gates_data,}, | 588 | {.compatible = "allwinner,sun5i-a10s-ahb-gates-clk", .data = &sun5i_a10s_ahb_gates_data,}, |