Lines Matching +full:2 +full:- +full:5

1 // SPDX-License-Identifier: GPL-2.0
4 * Author: Elaine Zhang <zhangqing@rock-chips.com>
7 #include <linux/clk-provider.h>
12 #include <dt-bindings/clock/rockchip,rk3588-cru.h>
46 RK3588_PLL_RATE(2520000000, 2, 210, 0, 0),
47 RK3588_PLL_RATE(2496000000, 2, 208, 0, 0),
48 RK3588_PLL_RATE(2472000000, 2, 206, 0, 0),
49 RK3588_PLL_RATE(2448000000, 2, 204, 0, 0),
50 RK3588_PLL_RATE(2424000000, 2, 202, 0, 0),
51 RK3588_PLL_RATE(2400000000, 2, 200, 0, 0),
52 RK3588_PLL_RATE(2376000000, 2, 198, 0, 0),
53 RK3588_PLL_RATE(2352000000, 2, 196, 0, 0),
54 RK3588_PLL_RATE(2328000000, 2, 194, 0, 0),
55 RK3588_PLL_RATE(2304000000, 2, 192, 0, 0),
56 RK3588_PLL_RATE(2280000000, 2, 190, 0, 0),
57 RK3588_PLL_RATE(2256000000, 2, 376, 1, 0),
58 RK3588_PLL_RATE(2232000000, 2, 372, 1, 0),
59 RK3588_PLL_RATE(2208000000, 2, 368, 1, 0),
60 RK3588_PLL_RATE(2184000000, 2, 364, 1, 0),
61 RK3588_PLL_RATE(2160000000, 2, 360, 1, 0),
62 RK3588_PLL_RATE(2136000000, 2, 356, 1, 0),
63 RK3588_PLL_RATE(2112000000, 2, 352, 1, 0),
64 RK3588_PLL_RATE(2088000000, 2, 348, 1, 0),
65 RK3588_PLL_RATE(2064000000, 2, 344, 1, 0),
66 RK3588_PLL_RATE(2040000000, 2, 340, 1, 0),
67 RK3588_PLL_RATE(2016000000, 2, 336, 1, 0),
68 RK3588_PLL_RATE(1992000000, 2, 332, 1, 0),
69 RK3588_PLL_RATE(1968000000, 2, 328, 1, 0),
70 RK3588_PLL_RATE(1944000000, 2, 324, 1, 0),
71 RK3588_PLL_RATE(1920000000, 2, 320, 1, 0),
72 RK3588_PLL_RATE(1896000000, 2, 316, 1, 0),
73 RK3588_PLL_RATE(1872000000, 2, 312, 1, 0),
74 RK3588_PLL_RATE(1848000000, 2, 308, 1, 0),
75 RK3588_PLL_RATE(1824000000, 2, 304, 1, 0),
76 RK3588_PLL_RATE(1800000000, 2, 300, 1, 0),
77 RK3588_PLL_RATE(1776000000, 2, 296, 1, 0),
78 RK3588_PLL_RATE(1752000000, 2, 292, 1, 0),
79 RK3588_PLL_RATE(1728000000, 2, 288, 1, 0),
80 RK3588_PLL_RATE(1704000000, 2, 284, 1, 0),
81 RK3588_PLL_RATE(1680000000, 2, 280, 1, 0),
82 RK3588_PLL_RATE(1656000000, 2, 276, 1, 0),
83 RK3588_PLL_RATE(1632000000, 2, 272, 1, 0),
84 RK3588_PLL_RATE(1608000000, 2, 268, 1, 0),
85 RK3588_PLL_RATE(1584000000, 2, 264, 1, 0),
86 RK3588_PLL_RATE(1560000000, 2, 260, 1, 0),
87 RK3588_PLL_RATE(1536000000, 2, 256, 1, 0),
88 RK3588_PLL_RATE(1512000000, 2, 252, 1, 0),
89 RK3588_PLL_RATE(1488000000, 2, 248, 1, 0),
90 RK3588_PLL_RATE(1464000000, 2, 244, 1, 0),
91 RK3588_PLL_RATE(1440000000, 2, 240, 1, 0),
92 RK3588_PLL_RATE(1416000000, 2, 236, 1, 0),
93 RK3588_PLL_RATE(1392000000, 2, 232, 1, 0),
94 RK3588_PLL_RATE(1320000000, 2, 220, 1, 0),
95 RK3588_PLL_RATE(1200000000, 2, 200, 1, 0),
96 RK3588_PLL_RATE(1188000000, 2, 198, 1, 0),
97 RK3588_PLL_RATE(1100000000, 3, 550, 2, 0),
98 RK3588_PLL_RATE(1008000000, 2, 336, 2, 0),
99 RK3588_PLL_RATE(1000000000, 3, 500, 2, 0),
100 RK3588_PLL_RATE(983040000, 4, 655, 2, 23592),
101 RK3588_PLL_RATE(955520000, 3, 477, 2, 49806),
102 RK3588_PLL_RATE(903168000, 6, 903, 2, 11009),
103 RK3588_PLL_RATE(900000000, 2, 300, 2, 0),
104 RK3588_PLL_RATE(850000000, 3, 425, 2, 0),
105 RK3588_PLL_RATE(816000000, 2, 272, 2, 0),
106 RK3588_PLL_RATE(786432000, 2, 262, 2, 9437),
107 RK3588_PLL_RATE(786000000, 1, 131, 2, 0),
108 RK3588_PLL_RATE(785560000, 3, 392, 2, 51117),
109 RK3588_PLL_RATE(722534400, 8, 963, 2, 24850),
110 RK3588_PLL_RATE(600000000, 2, 200, 2, 0),
111 RK3588_PLL_RATE(594000000, 2, 198, 2, 0),
112 RK3588_PLL_RATE(408000000, 2, 272, 3, 0),
113 RK3588_PLL_RATE(312000000, 2, 208, 3, 0),
114 RK3588_PLL_RATE(216000000, 2, 288, 4, 0),
115 RK3588_PLL_RATE(100000000, 3, 400, 5, 0),
116 RK3588_PLL_RATE(96000000, 2, 256, 5, 0),
123 #define RK3588_CLK_CORE_B1_SEL_CLEAN_SHIFT 5
128 #define RK3588_CLK_CORE_L0_SEL_CLEAN_SHIFT 5
146 #define RK3588_GICCLK_DSU_DIV_SHIFT 5
194 HIWORD_UPDATE(_divdsu - 1, RK3588_CLK_DSU_DF_DIV_MASK, \
201 .val = HIWORD_UPDATE(_aclkm - 1, RK3588_ACLKM_DSU_DIV_MASK, \
203 HIWORD_UPDATE(_aclkmp - 1, RK3588_ACLKMP_DSU_DIV_MASK, \
205 HIWORD_UPDATE(_aclks - 1, RK3588_ACLKS_DSU_DIV_MASK, \
211 .reg = RK3588_DSU_CLKSEL_CON(2), \
212 .val = HIWORD_UPDATE(_periph - 1, RK3588_PERIPH_DSU_DIV_MASK, \
219 .val = HIWORD_UPDATE(_gicclk - 1, RK3588_GICCLK_DSU_DIV_MASK, \
221 HIWORD_UPDATE(_atclk - 1, RK3588_ATCLK_DSU_DIV_MASK, \
257 RK3588_CORE_L_SEL1(3, 2), \
258 RK3588_CORE_L_SEL2(2, 3, 3), \
319 .num_cores = 2,
321 .mux_core_main = 2,
376 .num_cores = 2,
378 .mux_core_main = 2,
394 RK3588_CPULCLK_RATE(1584000000, 0, 2, 1),
395 RK3588_CPULCLK_RATE(1560000000, 0, 2, 1),
396 RK3588_CPULCLK_RATE(1536000000, 0, 2, 1),
397 RK3588_CPULCLK_RATE(1512000000, 0, 2, 1),
398 RK3588_CPULCLK_RATE(1488000000, 0, 2, 1),
399 RK3588_CPULCLK_RATE(1464000000, 0, 2, 1),
400 RK3588_CPULCLK_RATE(1440000000, 0, 2, 1),
401 RK3588_CPULCLK_RATE(1416000000, 0, 2, 1),
402 RK3588_CPULCLK_RATE(1392000000, 0, 2, 1),
403 RK3588_CPULCLK_RATE(1368000000, 0, 2, 1),
404 RK3588_CPULCLK_RATE(1344000000, 0, 2, 1),
405 RK3588_CPULCLK_RATE(1320000000, 0, 2, 1),
406 RK3588_CPULCLK_RATE(1296000000, 0, 2, 1),
407 RK3588_CPULCLK_RATE(1272000000, 0, 2, 1),
408 RK3588_CPULCLK_RATE(1248000000, 0, 2, 1),
409 RK3588_CPULCLK_RATE(1224000000, 0, 2, 1),
410 RK3588_CPULCLK_RATE(1200000000, 0, 2, 1),
411 RK3588_CPULCLK_RATE(1104000000, 0, 2, 1),
412 RK3588_CPULCLK_RATE(1008000000, 0, 2, 1),
413 RK3588_CPULCLK_RATE(912000000, 0, 2, 1),
414 RK3588_CPULCLK_RATE(816000000, 0, 2, 1),
415 RK3588_CPULCLK_RATE(696000000, 0, 2, 1),
416 RK3588_CPULCLK_RATE(600000000, 0, 2, 1),
417 RK3588_CPULCLK_RATE(408000000, 0, 2, 1),
418 RK3588_CPULCLK_RATE(312000000, 0, 2, 1),
419 RK3588_CPULCLK_RATE(216000000, 0, 2, 1),
420 RK3588_CPULCLK_RATE(96000000, 0, 2, 1),
430 .core_reg[2] = RK3588_DSU_CLKSEL_CON(7),
431 .div_core_shift[2] = 0,
432 .div_core_mask[2] = 0x1f,
437 .mux_core_reg = RK3588_DSU_CLKSEL_CON(5),
439 .mux_core_main = 2,
545 RK3588_CLKSEL_CON(26), 0, 2, MFLAGS);
549 RK3588_CLKSEL_CON(28), 0, 2, MFLAGS);
553 RK3588_PMU_CLKSEL_CON(7), 0, 2, MFLAGS);
557 RK3588_PMU_CLKSEL_CON(9), 0, 2, MFLAGS);
561 RK3588_CLKSEL_CON(30), 0, 2, MFLAGS);
565 RK3588_CLKSEL_CON(32), 0, 2, MFLAGS);
569 RK3588_CLKSEL_CON(120), 0, 2, MFLAGS);
573 RK3588_CLKSEL_CON(142), 0, 2, MFLAGS);
577 RK3588_CLKSEL_CON(146), 0, 2, MFLAGS);
581 RK3588_CLKSEL_CON(148), 0, 2, MFLAGS);
585 RK3588_CLKSEL_CON(131), 0, 2, MFLAGS);
589 RK3588_CLKSEL_CON(122), 0, 2, MFLAGS);
593 RK3588_CLKSEL_CON(155), 0, 2, MFLAGS);
597 RK3588_CLKSEL_CON(157), 0, 2, MFLAGS);
601 RK3588_CLKSEL_CON(34), 0, 2, MFLAGS);
605 RK3588_CLKSEL_CON(36), 0, 2, MFLAGS);
609 RK3588_CLKSEL_CON(124), 0, 2, MFLAGS);
613 RK3588_CLKSEL_CON(150), 0, 2, MFLAGS);
617 RK3588_CLKSEL_CON(152), 0, 2, MFLAGS);
621 RK3588_CLKSEL_CON(126), 0, 2, MFLAGS);
625 RK3588_PMU_CLKSEL_CON(5), 0, 2, MFLAGS);
629 RK3588_CLKSEL_CON(43), 0, 2, MFLAGS);
633 RK3588_CLKSEL_CON(45), 0, 2, MFLAGS);
637 RK3588_CLKSEL_CON(47), 0, 2, MFLAGS);
641 RK3588_CLKSEL_CON(49), 0, 2, MFLAGS);
645 RK3588_CLKSEL_CON(51), 0, 2, MFLAGS);
649 RK3588_CLKSEL_CON(53), 0, 2, MFLAGS);
653 RK3588_CLKSEL_CON(55), 0, 2, MFLAGS);
657 RK3588_CLKSEL_CON(57), 0, 2, MFLAGS);
661 RK3588_CLKSEL_CON(59), 0, 2, MFLAGS);
688 RK3588_MODE_CON0, 2, 15, 0, rk3588_pll_rates),
699 * CRU Clock-Architecture
702 FACTOR(0, "xin12m", "xin24m", 0, 1, 2),
706 RK3588_CLKSEL_CON(0), 5, 1, MFLAGS, 0, 5, DFLAGS,
709 RK3588_CLKSEL_CON(0), 11, 1, MFLAGS, 6, 5, DFLAGS,
712 RK3588_CLKSEL_CON(1), 5, 1, MFLAGS, 0, 5, DFLAGS,
713 RK3588_CLKGATE_CON(0), 2, GFLAGS),
715 RK3588_CLKSEL_CON(1), 11, 1, MFLAGS, 6, 5, DFLAGS,
718 RK3588_CLKSEL_CON(2), 5, 1, MFLAGS, 0, 5, DFLAGS,
721 RK3588_CLKSEL_CON(2), 11, 1, MFLAGS, 6, 5, DFLAGS,
722 RK3588_CLKGATE_CON(0), 5, GFLAGS),
724 RK3588_CLKSEL_CON(3), 5, 1, MFLAGS, 0, 5, DFLAGS,
727 RK3588_CLKSEL_CON(3), 11, 1, MFLAGS, 6, 5, DFLAGS,
730 RK3588_CLKSEL_CON(4), 5, 1, MFLAGS, 0, 5, DFLAGS,
733 RK3588_CLKSEL_CON(4), 11, 1, MFLAGS, 6, 5, DFLAGS,
736 RK3588_CLKSEL_CON(5), 5, 1, MFLAGS, 0, 5, DFLAGS,
739 RK3588_CLKSEL_CON(5), 11, 1, MFLAGS, 6, 5, DFLAGS,
742 RK3588_CLKSEL_CON(6), 5, 1, MFLAGS, 0, 5, DFLAGS,
745 RK3588_CLKSEL_CON(6), 11, 1, MFLAGS, 6, 5, DFLAGS,
748 RK3588_CLKSEL_CON(7), 5, 2, MFLAGS, 0, 5, DFLAGS,
751 RK3588_CLKSEL_CON(7), 12, 1, MFLAGS, 7, 5, DFLAGS,
754 RK3588_CLKSEL_CON(9), 0, 2, MFLAGS,
757 RK3588_CLKSEL_CON(9), 2, 2, MFLAGS,
760 RK3588_CLKSEL_CON(9), 4, 2, MFLAGS,
763 RK3588_CLKSEL_CON(9), 6, 2, MFLAGS,
766 RK3588_CLKSEL_CON(9), 8, 2, MFLAGS,
769 RK3588_CLKSEL_CON(8), 5, 2, MFLAGS, 0, 5, DFLAGS,
772 RK3588_CLKSEL_CON(8), 7, 2, MFLAGS,
775 RK3588_CLKSEL_CON(8), 14, 1, MFLAGS, 9, 5, DFLAGS,
776 RK3588_CLKGATE_CON(1), 2, GFLAGS),
778 RK3588_CLKSEL_CON(18), 8, 2, MFLAGS, 0, 8, DFLAGS,
779 RK3588_CLKGATE_CON(5), 9, GFLAGS),
781 RK3588_CLKSEL_CON(19), 8, 2, MFLAGS, 0, 8, DFLAGS,
782 RK3588_CLKGATE_CON(5), 10, GFLAGS),
784 RK3588_CLKSEL_CON(20), 8, 2, MFLAGS, 0, 8, DFLAGS,
785 RK3588_CLKGATE_CON(5), 11, GFLAGS),
787 RK3588_CLKSEL_CON(21), 8, 2, MFLAGS, 0, 8, DFLAGS,
788 RK3588_CLKGATE_CON(5), 12, GFLAGS),
790 RK3588_CLKSEL_CON(22), 8, 2, MFLAGS, 0, 8, DFLAGS,
791 RK3588_CLKGATE_CON(5), 13, GFLAGS),
794 RK3588_CLKGATE_CON(5), 3, GFLAGS),
797 RK3588_CLKGATE_CON(5), 4, GFLAGS),
800 RK3588_CLKGATE_CON(5), 5, GFLAGS),
802 RK3588_CLKSEL_CON(17), 8, 2, MFLAGS, 0, 8, DFLAGS,
803 RK3588_CLKGATE_CON(5), 6, GFLAGS),
813 RK3588_CLKGATE_CON(5), 0, GFLAGS),
818 RK3588_BIGCORE0_CLKSEL_CON(2), 0, 2, MFLAGS,
830 RK3588_BIGCORE1_CLKSEL_CON(2), 0, 2, MFLAGS,
841 RK3588_DSU_CLKSEL_CON(0), 12, 2, MFLAGS, 0, 5, DFLAGS,
844 RK3588_DSU_CLKSEL_CON(3), 0, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
847 RK3588_DSU_CLKSEL_CON(3), 5, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
850 RK3588_DSU_CLKSEL_CON(1), 11, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
853 RK3588_DSU_CLKSEL_CON(1), 1, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
856 RK3588_DSU_CLKSEL_CON(1), 6, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
859 RK3588_DSU_CLKSEL_CON(2), 0, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
862 RK3588_DSU_CLKSEL_CON(2), 5, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
865 RK3588_DSU_CLKSEL_CON(2), 10, 5, DFLAGS | CLK_DIVIDER_READ_ONLY,
868 RK3588_DSU_CLKSEL_CON(4), 11, 2, MFLAGS,
869 RK3588_DSU_CLKGATE_CON(2), 2, GFLAGS),
871 RK3588_DSU_CLKSEL_CON(4), 5, 2, MFLAGS, 0, 5, DFLAGS,
874 RK3588_DSU_CLKSEL_CON(4), 7, 2, MFLAGS,
877 RK3588_DSU_CLKGATE_CON(2), 6, GFLAGS),
887 RK3588_DSU_CLKGATE_CON(2), 0, GFLAGS),
889 RK3588_DSU_CLKGATE_CON(2), 1, GFLAGS),
893 RK3588_CLKSEL_CON(24), 0, 2, MFLAGS,
896 RK3588_CLKSEL_CON(24), 2, 2, MFLAGS,
903 RK3588_CLKSEL_CON(28), 9, 1, MFLAGS, 4, 5, DFLAGS,
913 RK3588_CLKSEL_CON(30), 2, 1, MFLAGS),
916 RK3588_CLKSEL_CON(30), 8, 1, MFLAGS, 3, 5, DFLAGS,
921 RK3588_CLKGATE_CON(8), 2, GFLAGS,
928 RK3588_CLKSEL_CON(32), 2, 1, MFLAGS),
935 RK3588_CLKSEL_CON(24), 9, 1, MFLAGS, 4, 5, DFLAGS,
936 RK3588_CLKGATE_CON(7), 5, GFLAGS),
946 RK3588_CLKSEL_CON(26), 7, 1, MFLAGS, 2, 5, DFLAGS,
956 RK3588_CLKSEL_CON(28), 2, 2, MFLAGS),
961 RK3588_CLKSEL_CON(36), 7, 2, MFLAGS, 2, 5, DFLAGS,
967 RK3588_CLKSEL_CON(32), 8, 1, MFLAGS, 3, 5, DFLAGS,
978 RK3588_CLKGATE_CON(9), 2, GFLAGS),
980 RK3588_CLKSEL_CON(34), 7, 1, MFLAGS, 2, 5, DFLAGS,
988 RK3588_CLKGATE_CON(9), 5, GFLAGS),
991 RK3588_CLKSEL_CON(163), 5, 2, MFLAGS, 0, 5, DFLAGS,
994 RK3588_CLKSEL_CON(163), 7, 2, MFLAGS,
999 RK3588_CLKSEL_CON(38), 5, 1, MFLAGS, 0, 5, DFLAGS,
1013 RK3588_CLKGATE_CON(19), 5, GFLAGS),
1018 RK3588_CLKSEL_CON(59), 12, 2, MFLAGS,
1021 RK3588_CLKGATE_CON(15), 5, GFLAGS),
1025 RK3588_CLKSEL_CON(59), 14, 2, MFLAGS,
1032 RK3588_CLKSEL_CON(60), 0, 2, MFLAGS,
1042 RK3588_CLKSEL_CON(60), 2, 1, MFLAGS,
1051 RK3588_CLKGATE_CON(16), 2, GFLAGS),
1057 RK3588_CLKGATE_CON(16), 5, GFLAGS),
1077 RK3588_CLKSEL_CON(39), 5, 1, MFLAGS, 0, 5, DFLAGS,
1082 RK3588_CLKSEL_CON(39), 11, 1, MFLAGS, 6, 5, DFLAGS,
1087 RK3588_CLKSEL_CON(40), 5, 1, MFLAGS, 0, 5, DFLAGS,
1095 RK3588_CLKSEL_CON(62), 5, 1, MFLAGS, 0, 5, DFLAGS,
1098 RK3588_CLKGATE_CON(10), 5, GFLAGS),
1109 RK3588_CLKSEL_CON(60), 8, 1, MFLAGS, 3, 5, DFLAGS,
1114 RK3588_CLKSEL_CON(60), 14, 1, MFLAGS, 9, 5, DFLAGS,
1117 RK3588_CLKGATE_CON(17), 2, GFLAGS),
1119 RK3588_CLKSEL_CON(61), 5, 1, MFLAGS, 0, 5, DFLAGS,
1124 RK3588_CLKSEL_CON(61), 11, 1, MFLAGS, 6, 5, DFLAGS,
1125 RK3588_CLKGATE_CON(17), 5, GFLAGS),
1151 RK3588_CLKGATE_CON(11), 2, GFLAGS),
1160 RK3588_CLKGATE_CON(11), 5, GFLAGS),
1196 RK3588_CLKSEL_CON(59), 2, 2, MFLAGS,
1199 RK3588_CLKSEL_CON(59), 4, 2, MFLAGS,
1202 RK3588_CLKSEL_CON(59), 6, 2, MFLAGS,
1205 RK3588_CLKSEL_CON(59), 8, 2, MFLAGS,
1208 RK3588_CLKSEL_CON(59), 10, 2, MFLAGS,
1220 RK3588_CLKGATE_CON(12), 2, GFLAGS),
1226 RK3588_CLKGATE_CON(12), 5, GFLAGS),
1239 RK3588_CLKSEL_CON(41), 14, 1, MFLAGS, 9, 5, DFLAGS,
1248 RK3588_CLKSEL_CON(43), 7, 1, MFLAGS, 2, 5, DFLAGS,
1257 RK3588_CLKSEL_CON(45), 7, 1, MFLAGS, 2, 5, DFLAGS,
1261 RK3588_CLKGATE_CON(13), 2, GFLAGS,
1266 RK3588_CLKSEL_CON(47), 7, 1, MFLAGS, 2, 5, DFLAGS,
1270 RK3588_CLKGATE_CON(13), 5, GFLAGS,
1275 RK3588_CLKSEL_CON(49), 7, 1, MFLAGS, 2, 5, DFLAGS,
1284 RK3588_CLKSEL_CON(51), 7, 1, MFLAGS, 2, 5, DFLAGS,
1293 RK3588_CLKSEL_CON(53), 7, 1, MFLAGS, 2, 5, DFLAGS,
1302 RK3588_CLKSEL_CON(55), 7, 1, MFLAGS, 2, 5, DFLAGS,
1309 RK3588_CLKGATE_CON(14), 2, GFLAGS),
1311 RK3588_CLKSEL_CON(57), 7, 1, MFLAGS, 2, 5, DFLAGS,
1318 RK3588_CLKGATE_CON(14), 5, GFLAGS),
1323 RK3588_CLKSEL_CON(165), 0, 2, MFLAGS,
1327 RK3588_CLKSEL_CON(165), 2, 2, MFLAGS,
1331 RK3588_CLKSEL_CON(165), 4, 2, MFLAGS,
1332 RK3588_CLKGATE_CON(69), 2, GFLAGS),
1335 RK3588_CLKSEL_CON(165), 6, 2, MFLAGS | CLK_MUX_READ_ONLY,
1338 RK3588_CLKGATE_CON(69), 5, GFLAGS),
1343 RK3588_CLKSEL_CON(165), 8, 2, MFLAGS,
1347 RK3588_CLKSEL_CON(165), 10, 2, MFLAGS,
1359 RK3588_CLKGATE_CON(70), 2, GFLAGS),
1361 RK3588_CLKSEL_CON(166), 5, 1, MFLAGS, 0, 5, DFLAGS,
1374 RK3588_CLKSEL_CON(158), 5, 3, MFLAGS, 0, 5, DFLAGS,
1381 RK3588_CLKSEL_CON(159), 0, 5, DFLAGS,
1390 RK3588_CLKSEL_CON(67), 5, 2, MFLAGS, 0, 5, DFLAGS,
1393 RK3588_CLKSEL_CON(67), 7, 2, MFLAGS,
1396 RK3588_CLKSEL_CON(67), 14, 2, MFLAGS, 9, 5, DFLAGS,
1397 RK3588_CLKGATE_CON(26), 2, GFLAGS),
1405 RK3588_CLKSEL_CON(73), 0, 2, MFLAGS,
1408 RK3588_CLKSEL_CON(73), 7, 3, MFLAGS, 2, 5, DFLAGS,
1411 RK3588_CLKSEL_CON(74), 1, 2, MFLAGS,
1416 RK3588_CLKGATE_CON(27), 2, GFLAGS),
1420 RK3588_CLKGATE_CON(28), 2, GFLAGS),
1422 RK3588_CLKSEL_CON(74), 5, 2, MFLAGS,
1427 RK3588_CLKSEL_CON(74), 12, 1, MFLAGS, 7, 5, DFLAGS,
1428 RK3588_CLKGATE_CON(30), 5, GFLAGS),
1457 RK3588_CLKSEL_CON(77), 0, 2, MFLAGS,
1460 RK3588_CLKSEL_CON(77), 7, 1, MFLAGS, 2, 5, DFLAGS,
1463 RK3588_CLKGATE_CON(31), 5, GFLAGS),
1465 RK3588_CLKSEL_CON(77), 14, 2, MFLAGS, 8, 6, DFLAGS,
1468 RK3588_CLKSEL_CON(78), 5, 1, MFLAGS, 0, 5, DFLAGS,
1474 RK3588_CLKSEL_CON(78), 12, 2, MFLAGS, 6, 6, DFLAGS,
1486 RK3588_CLKGATE_CON(35), 5, GFLAGS),
1492 RK3588_CLKSEL_CON(80), 7, 1, MFLAGS, 2, 5, DFLAGS,
1495 RK3588_CLKSEL_CON(80), 13, 1, MFLAGS, 8, 5, DFLAGS,
1498 RK3588_CLKSEL_CON(80), 0, 2, MFLAGS,
1519 RK3588_CLKGATE_CON(33), 2, GFLAGS),
1525 RK3588_CLKGATE_CON(33), 5, GFLAGS),
1551 RK3588_CLKGATE_CON(34), 2, GFLAGS),
1557 RK3588_CLKGATE_CON(34), 5, GFLAGS),
1563 RK3588_CLKGATE_CON(37), 2, GFLAGS),
1575 RK3588_CLKGATE_CON(37), 5, GFLAGS),
1600 RK3588_CLKSEL_CON(84), 12, 2, MFLAGS, 8, 4, DFLAGS,
1603 RK3588_PHP_CLKGATE_CON(0), 5, GFLAGS),
1613 RK3588_CLKSEL_CON(174), 14, 2, MFLAGS, 9, 5, DFLAGS,
1616 RK3588_CLKSEL_CON(174), 5, 2, MFLAGS, 0, 5, DFLAGS,
1619 RK3588_CLKSEL_CON(174), 7, 2, MFLAGS,
1624 RK3588_CLKGATE_CON(76), 5, GFLAGS),
1628 RK3588_CLKSEL_CON(89), 0, 2, MFLAGS,
1631 RK3588_CLKSEL_CON(89), 7, 2, MFLAGS, 2, 5, DFLAGS,
1634 RK3588_CLKSEL_CON(89), 14, 2, MFLAGS, 9, 5, DFLAGS,
1635 RK3588_CLKGATE_CON(40), 2, GFLAGS),
1637 RK3588_CLKSEL_CON(90), 5, 1, MFLAGS, 0, 5, DFLAGS,
1640 RK3588_CLKSEL_CON(90), 11, 2, MFLAGS, 6, 5, DFLAGS,
1643 RK3588_CLKSEL_CON(91), 5, 1, MFLAGS, 0, 5, DFLAGS,
1646 RK3588_CLKSEL_CON(93), 0, 2, MFLAGS,
1649 RK3588_CLKSEL_CON(93), 7, 2, MFLAGS, 2, 5, DFLAGS,
1652 RK3588_CLKSEL_CON(93), 14, 1, MFLAGS, 9, 5, DFLAGS,
1655 RK3588_CLKSEL_CON(94), 5, 2, MFLAGS, 0, 5, DFLAGS,
1658 RK3588_CLKSEL_CON(94), 12, 1, MFLAGS, 7, 5, DFLAGS,
1663 RK3588_CLKSEL_CON(172), 0, 2, MFLAGS,
1666 RK3588_CLKSEL_CON(172), 8, 2, MFLAGS, 2, 6, DFLAGS,
1673 RK3588_CLKSEL_CON(96), 5, 1, MFLAGS, 0, 5, DFLAGS,
1676 RK3588_CLKSEL_CON(96), 6, 2, MFLAGS,
1679 RK3588_CLKGATE_CON(42), 5, GFLAGS),
1689 RK3588_CLKSEL_CON(98), 5, 2, MFLAGS, 0, 5, DFLAGS,
1692 RK3588_CLKSEL_CON(98), 7, 2, MFLAGS,
1695 RK3588_CLKSEL_CON(98), 9, 2, MFLAGS,
1696 RK3588_CLKGATE_CON(44), 2, GFLAGS),
1698 RK3588_CLKSEL_CON(99), 5, 2, MFLAGS, 0, 5, DFLAGS,
1703 RK3588_CLKSEL_CON(99), 12, 1, MFLAGS, 7, 5, DFLAGS,
1720 RK3588_CLKSEL_CON(100), 5, 3, MFLAGS, 0, 5, DFLAGS,
1727 RK3588_CLKSEL_CON(100), 13, 3, MFLAGS, 8, 5, DFLAGS,
1734 RK3588_CLKSEL_CON(104), 0, 2, MFLAGS,
1737 RK3588_CLKSEL_CON(104), 7, 2, MFLAGS, 2, 5, DFLAGS,
1740 RK3588_CLKSEL_CON(102), 0, 2, MFLAGS,
1743 RK3588_CLKSEL_CON(102), 7, 2, MFLAGS, 2, 5, DFLAGS,
1748 RK3588_CLKGATE_CON(47), 5, GFLAGS),
1750 RK3588_CLKSEL_CON(102), 14, 2, MFLAGS, 9, 5, DFLAGS,
1753 RK3588_CLKSEL_CON(104), 14, 2, MFLAGS, 9, 5, DFLAGS,
1758 RK3588_CLKSEL_CON(106), 5, 3, MFLAGS, 0, 5, DFLAGS,
1761 RK3588_CLKSEL_CON(106), 8, 2, MFLAGS,
1764 RK3588_CLKSEL_CON(106), 10, 2, MFLAGS,
1765 RK3588_CLKGATE_CON(49), 2, GFLAGS),
1767 RK3588_CLKSEL_CON(108), 14, 2, MFLAGS,
1776 RK3588_CLKGATE_CON(50), 5, GFLAGS),
1790 RK3588_CLKSEL_CON(108), 5, 2, MFLAGS, 0, 5, DFLAGS,
1795 RK3588_CLKGATE_CON(50), 2, GFLAGS),
1797 RK3588_CLKSEL_CON(108), 12, 2, MFLAGS, 7, 5, DFLAGS,
1800 RK3588_CLKSEL_CON(107), 11, 2, MFLAGS, 6, 5, DFLAGS,
1811 RK3588_CLKSEL_CON(107), 5, 1, MFLAGS, 0, 5, DFLAGS,
1820 RK3588_CLKSEL_CON(116), 5, 1, MFLAGS, 0, 5, DFLAGS,
1823 RK3588_CLKSEL_CON(116), 6, 2, MFLAGS,
1826 RK3588_CLKSEL_CON(116), 8, 2, MFLAGS,
1827 RK3588_CLKGATE_CON(55), 2, GFLAGS),
1829 RK3588_CLKSEL_CON(116), 10, 2, MFLAGS,
1832 RK3588_CLKSEL_CON(116), 12, 2, MFLAGS,
1837 RK3588_CLKGATE_CON(56), 5, GFLAGS),
1857 RK3588_CLKSEL_CON(118), 5, 1, MFLAGS, 0, 5, DFLAGS,
1867 RK3588_CLKSEL_CON(120), 8, 1, MFLAGS, 3, 5, DFLAGS,
1877 RK3588_CLKSEL_CON(122), 8, 1, MFLAGS, 3, 5, DFLAGS,
1885 RK3588_CLKGATE_CON(57), 5, GFLAGS),
1889 RK3588_CLKSEL_CON(124), 7, 1, MFLAGS, 2, 5, DFLAGS,
1902 RK3588_CLKGATE_CON(56), 2, GFLAGS),
1909 RK3588_CLKSEL_CON(157), 7, 1, MFLAGS, 2, 5, DFLAGS,
1912 RK3588_CLKSEL_CON(128), 5, 2, MFLAGS, 0, 5, DFLAGS,
1915 RK3588_CLKSEL_CON(128), 12, 1, MFLAGS, 7, 5, DFLAGS,
1918 RK3588_CLKSEL_CON(128), 13, 2, MFLAGS,
1919 RK3588_CLKGATE_CON(59), 2, GFLAGS),
1921 RK3588_CLKSEL_CON(129), 0, 2, MFLAGS,
1924 RK3588_CLKSEL_CON(129), 2, 2, MFLAGS,
1927 RK3588_CLKSEL_CON(129), 4, 2, MFLAGS,
1928 RK3588_CLKGATE_CON(59), 5, GFLAGS),
1930 RK3588_CLKSEL_CON(110), 5, 3, MFLAGS, 0, 5, DFLAGS,
1933 RK3588_CLKSEL_CON(110), 8, 2, MFLAGS,
1936 RK3588_CLKSEL_CON(110), 10, 2, MFLAGS,
1937 RK3588_CLKGATE_CON(52), 2, GFLAGS),
1939 RK3588_CLKSEL_CON(110), 12, 2, MFLAGS,
1942 RK3588_CLKSEL_CON(170), 5, 1, MFLAGS, 0, 5, DFLAGS,
1945 RK3588_CLKSEL_CON(170), 6, 2, MFLAGS,
1946 RK3588_CLKGATE_CON(74), 2, GFLAGS),
1954 RK3588_CLKSEL_CON(140), 1, 2, MFLAGS,
1955 RK3588_CLKGATE_CON(62), 2, GFLAGS),
1961 RK3588_CLKSEL_CON(140), 3, 2, MFLAGS,
1962 RK3588_CLKGATE_CON(62), 5, GFLAGS),
1986 RK3588_CLKSEL_CON(133), 6, 1, MFLAGS, 1, 5, DFLAGS,
1991 RK3588_CLKGATE_CON(61), 2, GFLAGS),
1993 RK3588_CLKSEL_CON(136), 6, 1, MFLAGS, 1, 5, DFLAGS,
2010 RK3588_CLKSEL_CON(155), 8, 1, MFLAGS, 3, 5, DFLAGS,
2011 RK3588_CLKGATE_CON(65), 5, GFLAGS),
2020 RK3588_CLKSEL_CON(129), 11, 1, MFLAGS, 6, 5, DFLAGS,
2025 RK3588_CLKGATE_CON(60), 2, GFLAGS,
2030 RK3588_CLKSEL_CON(153), 12, 1, MFLAGS, 7, 5, DFLAGS,
2035 RK3588_CLKGATE_CON(65), 2, GFLAGS,
2040 RK3588_CLKSEL_CON(140), 10, 1, MFLAGS, 5, 5, DFLAGS,
2049 RK3588_CLKSEL_CON(144), 8, 1, MFLAGS, 3, 5, DFLAGS,
2059 RK3588_CLKSEL_CON(146), 7, 1, MFLAGS, 2, 5, DFLAGS,
2066 RK3588_CLKGATE_CON(63), 2, GFLAGS),
2068 RK3588_CLKSEL_CON(148), 2, 2, MFLAGS),
2070 RK3588_CLKSEL_CON(148), 9, 1, MFLAGS, 4, 5, DFLAGS,
2071 RK3588_CLKGATE_CON(63), 5, GFLAGS),
2080 RK3588_CLKSEL_CON(150), 7, 1, MFLAGS, 2, 5, DFLAGS,
2090 RK3588_CLKSEL_CON(152), 7, 2, MFLAGS, 2, 5, DFLAGS,
2093 RK3588_CLKSEL_CON(152), 14, 2, MFLAGS, 9, 5, DFLAGS,
2096 RK3588_CLKSEL_CON(153), 5, 2, MFLAGS, 0, 5, DFLAGS,
2103 RK3588_CLKGATE_CON(72), 5, GFLAGS),
2107 RK3588_CLKGATE_CON(72), 2, GFLAGS),
2115 RK3588_CLKSEL_CON(111), 7, 2, MFLAGS, 0, 7, DFLAGS,
2118 RK3588_CLKSEL_CON(111), 14, 2, MFLAGS, 9, 5, DFLAGS,
2121 RK3588_CLKSEL_CON(112), 5, 2, MFLAGS, 0, 5, DFLAGS,
2125 RK3588_CLKSEL_CON(112), 7, 2, MFLAGS,
2129 RK3588_CLKSEL_CON(112), 9, 2, MFLAGS,
2133 RK3588_CLKSEL_CON(112), 11, 2, MFLAGS,
2136 RK3588_CLKSEL_CON(113), 7, 2, MFLAGS, 0, 7, DFLAGS,
2137 RK3588_CLKGATE_CON(53), 2, GFLAGS),
2141 RK3588_CLKGATE_CON(53), 5, GFLAGS),
2143 RK3588_CLKSEL_CON(114), 7, 2, MFLAGS, 0, 7, DFLAGS,
2146 RK3588_CLKSEL_CON(115), 7, 2, MFLAGS, 0, 7, DFLAGS,
2153 RK3588_CLKGATE_CON(2), 8, GFLAGS),
2155 RK3588_CLKGATE_CON(2), 15, GFLAGS),
2162 RK3588_CLKGATE_CON(77), 2, GFLAGS),
2171 RK3588_CLKGATE_CON(77), 5, GFLAGS),
2181 RK3588_PMU_CLKSEL_CON(0), 15, 1, MFLAGS, 10, 5, DFLAGS,
2184 RK3588_PMU_CLKSEL_CON(1), 5, 1, MFLAGS, 0, 5, DFLAGS,
2194 RK3588_PMU_CLKGATE_CON(0), 2, GFLAGS),
2196 RK3588_PMU_CLKSEL_CON(1), 6, 2, MFLAGS,
2197 RK3588_PMU_CLKGATE_CON(0), 5, GFLAGS),
2199 RK3588_PMU_CLKSEL_CON(1), 8, 2, MFLAGS,
2202 RK3588_PMU_CLKGATE_CON(5), 0, GFLAGS),
2204 RK3588_PMU_CLKSEL_CON(1), 10, 2, MFLAGS,
2207 RK3588_PMU_CLKGATE_CON(5), 1, GFLAGS),
2209 RK3588_PMU_CLKGATE_CON(5), 2, GFLAGS),
2211 RK3588_PMU_CLKGATE_CON(5), 4, GFLAGS),
2213 RK3588_PMU_CLKGATE_CON(5), 5, GFLAGS),
2216 RK3588_PMU_CLKGATE_CON(5), 6, GFLAGS),
2218 RK3588_PMU_CLKGATE_CON(2), 1, GFLAGS),
2221 RK3588_PMU_CLKGATE_CON(2), 2, GFLAGS),
2223 RK3588_PMU_CLKGATE_CON(2), 7, GFLAGS),
2225 RK3588_PMU_CLKSEL_CON(5), 2, 5, DFLAGS,
2226 RK3588_PMU_CLKGATE_CON(2), 8, GFLAGS),
2230 RK3588_PMU_CLKGATE_CON(2), 9, GFLAGS,
2233 RK3588_PMU_CLKGATE_CON(2), 10, GFLAGS),
2235 RK3588_PMU_CLKSEL_CON(7), 2, 5, DFLAGS,
2236 RK3588_PMU_CLKGATE_CON(2), 11, GFLAGS),
2240 RK3588_PMU_CLKGATE_CON(2), 12, GFLAGS,
2243 RK3588_PMU_CLKGATE_CON(2), 13, GFLAGS),
2245 RK3588_PMU_CLKSEL_CON(9), 2, 2, MFLAGS),
2253 RK3588_PMU_CLKGATE_CON(2), 14, GFLAGS),
2256 RK3588_PMU_CLKGATE_CON(2), 15, GFLAGS),
2262 RK3588_PMU_CLKSEL_CON(2), 5, 1, MFLAGS, 0, 5, DFLAGS,
2265 RK3588_PMU_CLKGATE_CON(1), 5, GFLAGS),
2269 RK3588_PMU_CLKSEL_CON(2), 9, 2, MFLAGS,
2276 RK3588_PMU_CLKSEL_CON(2), 7, 2, MFLAGS,
2283 RK3588_PMU_CLKSEL_CON(3), 7, 5, DFLAGS,
2284 RK3588_PMU_CLKGATE_CON(2), 3, GFLAGS),
2287 RK3588_PMU_CLKGATE_CON(2), 4, GFLAGS,
2290 RK3588_PMU_CLKGATE_CON(2), 5, GFLAGS),
2292 RK3588_PMU_CLKGATE_CON(2), 6, GFLAGS),
2296 RK3588_PMU_CLKSEL_CON(2), 6, 1, MFLAGS,
2299 RK3588_PMU_CLKSEL_CON(15), 5, 2, MFLAGS, 0, 5, DFLAGS,
2303 RK3588_PMU_CLKSEL_CON(14), 14, 1, MFLAGS, 9, 5, DFLAGS,
2307 RK3588_PMU_CLKSEL_CON(14), 7, 2, MFLAGS, 0, 7, DFLAGS,
2315 RK3588_PHYREF_ALT_GATE, 2, GFLAGS),
2340 RK3588_CLKGATE_CON(60), 5, GFLAGS),
2346 RK3588_CLKGATE_CON(57), 2, GFLAGS),
2358 RK3588_CLKGATE_CON(48), 5, GFLAGS),
2362 RK3588_CLKGATE_CON(45), 5, GFLAGS),
2372 RK3588_CLKGATE_CON(45), 2, GFLAGS),
2388 RK3588_CLKGATE_CON(75), 2, GFLAGS),
2390 RK3588_CLKGATE_CON(41), 2, GFLAGS),
2406 RK3588_CLKGATE_CON(38), 5, GFLAGS),
2428 RK3588_CLKGATE_CON(26), 5, GFLAGS),
2432 RK3588_CLKGATE_CON(68), 5, GFLAGS),
2434 RK3588_CLKGATE_CON(68), 2, GFLAGS),
2438 …hclk_nvm", "hclk_nvm_root", "aclk_nvm_root", RK3588_LINKED_CLK, RK3588_CLKGATE_CON(31), 2, GFLAGS),
2439 …LK_USB, "aclk_usb", "aclk_usb_root", "aclk_vo1usb_top_root", 0, RK3588_CLKGATE_CON(42), 2, GFLAGS),
2442 …"aclk_vdpu_low_pre", "aclk_vdpu_low_root", "aclk_vdpu_root", 0, RK3588_CLKGATE_CON(44), 5, GFLAGS),
2444 …RE, "hclk_rkvenc1_pre", "hclk_rkvenc1_root", "hclk_rkvenc0", 0, RK3588_CLKGATE_CON(48), 2, GFLAGS),
2445 …, "hclk_rkvdec0_pre", "hclk_rkvdec0_root", "hclk_vdpu_root", 0, RK3588_CLKGATE_CON(40), 5, GFLAGS),
2448 …, "aclk_rkvdec1_pre", "aclk_rkvdec1_root", "aclk_vdpu_root", 0, RK3588_CLKGATE_CON(41), 5, GFLAGS),
2450 …GATE_LINK(HCLK_VO0, "hclk_vo0", "hclk_vo0_root", "hclk_vop_root", 0, RK3588_CLKGATE_CON(55), 5, GF…
2503 CLK_OF_DECLARE(rk3588_cru, "rockchip,rk3588-cru", rk3588_clk_init);
2515 .compatible = "rockchip,rk3588-cru",
2524 struct device *dev = &pdev->dev; in clk_rk3588_probe()
2528 return -EINVAL; in clk_rk3588_probe()
2530 if (init_data->inits) in clk_rk3588_probe()
2531 init_data->inits(dev->of_node); in clk_rk3588_probe()
2538 .name = "clk-rk3588",