Lines Matching +full:24 +full:- +full:bit
1 // SPDX-License-Identifier: GPL-2.0
7 #include <linux/clk-provider.h>
26 #include "ccu-sun20i-d1.h"
38 .enable = BIT(27),
39 .lock = BIT(28),
43 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-cpux", osc24M,
52 .enable = BIT(27),
53 .lock = BIT(28),
59 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-ddr0", osc24M,
67 .enable = BIT(27),
68 .lock = BIT(28),
73 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-periph0-4x", osc24M,
82 static SUNXI_CCU_M_HWS(pll_periph0_2x_clk, "pll-periph0-2x",
84 static SUNXI_CCU_M_HWS(pll_periph0_800M_clk, "pll-periph0-800M",
90 static CLK_FIXED_FACTOR_HWS(pll_periph0_clk, "pll-periph0",
94 static CLK_FIXED_FACTOR_HWS(pll_periph0_div3_clk, "pll-periph0-div3",
103 .enable = BIT(27),
104 .lock = BIT(28),
111 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-video0-4x", osc24M,
120 static CLK_FIXED_FACTOR_HWS(pll_video0_2x_clk, "pll-video0-2x",
122 static CLK_FIXED_FACTOR_HWS(pll_video0_clk, "pll-video0",
127 .enable = BIT(27),
128 .lock = BIT(28),
135 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-video1-4x", osc24M,
144 static CLK_FIXED_FACTOR_HWS(pll_video1_2x_clk, "pll-video1-2x",
146 static CLK_FIXED_FACTOR_HWS(pll_video1_clk, "pll-video1",
151 .enable = BIT(27),
152 .lock = BIT(28),
158 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-ve", osc24M,
176 .enable = BIT(27),
177 .lock = BIT(28),
180 .sdm = _SUNXI_CCU_SDM(pll_audio0_sdm_table, BIT(24),
181 0x178, BIT(31)),
187 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-audio0-4x", osc24M,
196 static CLK_FIXED_FACTOR_HWS(pll_audio0_2x_clk, "pll-audio0-2x",
198 static CLK_FIXED_FACTOR_HWS(pll_audio0_clk, "pll-audio0",
202 * PLL_AUDIO1 doesn't need Fractional-N. The output is usually 614.4 MHz for
207 .enable = BIT(27),
208 .lock = BIT(28),
215 .hw.init = CLK_HW_INIT_PARENTS_DATA("pll-audio1", osc24M,
224 static SUNXI_CCU_M_HWS(pll_audio1_div2_clk, "pll-audio1-div2",
226 static SUNXI_CCU_M_HWS(pll_audio1_div5_clk, "pll-audio1-div5",
230 * The CPUX gate is not modelled - it is in a separate register (0x504)
243 0x500, 24, 3, CLK_SET_RATE_PARENT | CLK_IS_CRITICAL);
246 static SUNXI_CCU_M_HWS(cpux_axi_clk, "cpux-axi",
248 static SUNXI_CCU_M_HWS(cpux_apb_clk, "cpux-apb",
257 static SUNXI_CCU_MP_DATA_WITH_MUX(psi_ahb_clk, "psi-ahb", psi_ahb_parents, 0x510,
260 24, 2, /* mux */
272 24, 2, /* mux */
278 24, 2, /* mux */
293 24, 3, /* mux */
294 BIT(31), /* gate */
297 static SUNXI_CCU_GATE_HWS(bus_de_clk, "bus-de", psi_ahb_hws,
298 0x60c, BIT(0), 0);
302 24, 3, /* mux */
303 BIT(31), /* gate */
306 static SUNXI_CCU_GATE_HWS(bus_di_clk, "bus-di", psi_ahb_hws,
307 0x62c, BIT(0), 0);
311 24, 3, /* mux */
312 BIT(31), /* gate */
315 static SUNXI_CCU_GATE_HWS(bus_g2d_clk, "bus-g2d", psi_ahb_hws,
316 0x63c, BIT(0), 0);
326 24, 3, /* mux */
327 BIT(31), /* gate */
330 static SUNXI_CCU_GATE_HWS(bus_ce_clk, "bus-ce", psi_ahb_hws,
331 0x68c, BIT(0), 0);
339 24, 1, /* mux */
340 BIT(31), /* gate */
343 static SUNXI_CCU_GATE_HWS(bus_ve_clk, "bus-ve", psi_ahb_hws,
344 0x69c, BIT(0), 0);
346 static SUNXI_CCU_GATE_HWS(bus_dma_clk, "bus-dma", psi_ahb_hws,
347 0x70c, BIT(0), 0);
349 static SUNXI_CCU_GATE_HWS(bus_msgbox0_clk, "bus-msgbox0", psi_ahb_hws,
350 0x71c, BIT(0), 0);
351 static SUNXI_CCU_GATE_HWS(bus_msgbox1_clk, "bus-msgbox1", psi_ahb_hws,
352 0x71c, BIT(1), 0);
353 static SUNXI_CCU_GATE_HWS(bus_msgbox2_clk, "bus-msgbox2", psi_ahb_hws,
354 0x71c, BIT(2), 0);
356 static SUNXI_CCU_GATE_HWS(bus_spinlock_clk, "bus-spinlock", psi_ahb_hws,
357 0x72c, BIT(0), 0);
359 static SUNXI_CCU_GATE_HWS(bus_hstimer_clk, "bus-hstimer", psi_ahb_hws,
360 0x73c, BIT(0), 0);
363 0x740, BIT(31), 0);
365 static SUNXI_CCU_GATE_HWS(bus_dbg_clk, "bus-dbg", psi_ahb_hws,
366 0x78c, BIT(0), 0);
368 static SUNXI_CCU_GATE_HWS(bus_pwm_clk, "bus-pwm", apb0_hws,
369 0x7ac, BIT(0), 0);
371 static SUNXI_CCU_GATE_HWS(bus_iommu_clk, "bus-iommu", apb0_hws,
372 0x7bc, BIT(0), 0);
383 24, 2, /* mux */
384 BIT(31), CLK_IS_CRITICAL);
391 static SUNXI_CCU_GATE_HWS(mbus_dma_clk, "mbus-dma", mbus_hws,
392 0x804, BIT(0), 0);
393 static SUNXI_CCU_GATE_HWS(mbus_ve_clk, "mbus-ve", mbus_hws,
394 0x804, BIT(1), 0);
395 static SUNXI_CCU_GATE_HWS(mbus_ce_clk, "mbus-ce", mbus_hws,
396 0x804, BIT(2), 0);
397 static SUNXI_CCU_GATE_HWS(mbus_tvin_clk, "mbus-tvin", mbus_hws,
398 0x804, BIT(7), 0);
399 static SUNXI_CCU_GATE_HWS(mbus_csi_clk, "mbus-csi", mbus_hws,
400 0x804, BIT(8), 0);
401 static SUNXI_CCU_GATE_HWS(mbus_g2d_clk, "mbus-g2d", mbus_hws,
402 0x804, BIT(10), 0);
403 static SUNXI_CCU_GATE_HWS(mbus_riscv_clk, "mbus-riscv", mbus_hws,
404 0x804, BIT(11), 0);
406 static SUNXI_CCU_GATE_HWS(bus_dram_clk, "bus-dram", psi_ahb_hws,
407 0x80c, BIT(0), CLK_IS_CRITICAL);
419 24, 3, /* mux */
420 BIT(31), /* gate */
421 2, /* post-div */
428 24, 3, /* mux */
429 BIT(31), /* gate */
430 2, /* post-div */
444 24, 3, /* mux */
445 BIT(31), /* gate */
446 2, /* post-div */
449 static SUNXI_CCU_GATE_HWS(bus_mmc0_clk, "bus-mmc0", psi_ahb_hws,
450 0x84c, BIT(0), 0);
451 static SUNXI_CCU_GATE_HWS(bus_mmc1_clk, "bus-mmc1", psi_ahb_hws,
452 0x84c, BIT(1), 0);
453 static SUNXI_CCU_GATE_HWS(bus_mmc2_clk, "bus-mmc2", psi_ahb_hws,
454 0x84c, BIT(2), 0);
456 static SUNXI_CCU_GATE_HWS(bus_uart0_clk, "bus-uart0", apb1_hws,
457 0x90c, BIT(0), 0);
458 static SUNXI_CCU_GATE_HWS(bus_uart1_clk, "bus-uart1", apb1_hws,
459 0x90c, BIT(1), 0);
460 static SUNXI_CCU_GATE_HWS(bus_uart2_clk, "bus-uart2", apb1_hws,
461 0x90c, BIT(2), 0);
462 static SUNXI_CCU_GATE_HWS(bus_uart3_clk, "bus-uart3", apb1_hws,
463 0x90c, BIT(3), 0);
464 static SUNXI_CCU_GATE_HWS(bus_uart4_clk, "bus-uart4", apb1_hws,
465 0x90c, BIT(4), 0);
466 static SUNXI_CCU_GATE_HWS(bus_uart5_clk, "bus-uart5", apb1_hws,
467 0x90c, BIT(5), 0);
469 static SUNXI_CCU_GATE_HWS(bus_i2c0_clk, "bus-i2c0", apb1_hws,
470 0x91c, BIT(0), 0);
471 static SUNXI_CCU_GATE_HWS(bus_i2c1_clk, "bus-i2c1", apb1_hws,
472 0x91c, BIT(1), 0);
473 static SUNXI_CCU_GATE_HWS(bus_i2c2_clk, "bus-i2c2", apb1_hws,
474 0x91c, BIT(2), 0);
475 static SUNXI_CCU_GATE_HWS(bus_i2c3_clk, "bus-i2c3", apb1_hws,
476 0x91c, BIT(3), 0);
478 static SUNXI_CCU_GATE_HWS(bus_can0_clk, "bus-can0", apb1_hws,
479 0x92c, BIT(0), 0);
480 static SUNXI_CCU_GATE_HWS(bus_can1_clk, "bus-can1", apb1_hws,
481 0x92c, BIT(1), 0);
493 24, 3, /* mux */
494 BIT(31), /* gate */
500 24, 3, /* mux */
501 BIT(31), /* gate */
504 static SUNXI_CCU_GATE_HWS(bus_spi0_clk, "bus-spi0", psi_ahb_hws,
505 0x96c, BIT(0), 0);
506 static SUNXI_CCU_GATE_HWS(bus_spi1_clk, "bus-spi1", psi_ahb_hws,
507 0x96c, BIT(1), 0);
509 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(emac_25M_clk, "emac-25M", pll_periph0_hws,
510 0x970, BIT(31) | BIT(30), 24, 0);
512 static SUNXI_CCU_GATE_HWS(bus_emac_clk, "bus-emac", psi_ahb_hws,
513 0x97c, BIT(0), 0);
519 static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(ir_tx_clk, "ir-tx", ir_tx_ledc_parents, 0x9c0,
522 24, 3, /* mux */
523 BIT(31), /* gate */
526 static SUNXI_CCU_GATE_HWS(bus_ir_tx_clk, "bus-ir-tx", apb0_hws,
527 0x9cc, BIT(0), 0);
529 static SUNXI_CCU_GATE_HWS(bus_gpadc_clk, "bus-gpadc", apb0_hws,
530 0x9ec, BIT(0), 0);
532 static SUNXI_CCU_GATE_HWS(bus_ths_clk, "bus-ths", apb0_hws,
533 0x9fc, BIT(0), 0);
544 24, 3, /* mux */
545 BIT(31), /* gate */
551 24, 3, /* mux */
552 BIT(31), /* gate */
558 24, 3, /* mux */
559 BIT(31), /* gate */
568 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(i2s2_asrc_clk, "i2s2-asrc", i2s2_asrc_parents, 0xa1c,
571 24, 3, /* mux */
572 BIT(31), /* gate */
575 static SUNXI_CCU_GATE_HWS(bus_i2s0_clk, "bus-i2s0", apb0_hws,
576 0xa20, BIT(0), 0);
577 static SUNXI_CCU_GATE_HWS(bus_i2s1_clk, "bus-i2s1", apb0_hws,
578 0xa20, BIT(1), 0);
579 static SUNXI_CCU_GATE_HWS(bus_i2s2_clk, "bus-i2s2", apb0_hws,
580 0xa20, BIT(2), 0);
582 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(spdif_tx_clk, "spdif-tx", i2s_spdif_tx_parents, 0xa24,
585 24, 3, /* mux */
586 BIT(31), /* gate */
594 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(spdif_rx_clk, "spdif-rx", spdif_rx_parents, 0xa28,
597 24, 3, /* mux */
598 BIT(31), /* gate */
601 static SUNXI_CCU_GATE_HWS(bus_spdif_clk, "bus-spdif", apb0_hws,
602 0xa2c, BIT(0), 0);
612 24, 3, /* mux */
613 BIT(31), /* gate */
616 static SUNXI_CCU_GATE_HWS(bus_dmic_clk, "bus-dmic", apb0_hws,
617 0xa4c, BIT(0), 0);
619 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(audio_dac_clk, "audio-dac", dmic_codec_parents, 0xa50,
622 24, 3, /* mux */
623 BIT(31), /* gate */
626 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(audio_adc_clk, "audio-adc", dmic_codec_parents, 0xa54,
629 24, 3, /* mux */
630 BIT(31), /* gate */
633 static SUNXI_CCU_GATE_HWS(bus_audio_clk, "bus-audio", apb0_hws,
634 0xa5c, BIT(0), 0);
639 * a 2x multiplier from osc24M synchronized by pll-periph0, and is also used by
653 .enable = BIT(31),
655 .shift = 24,
663 .hw.init = CLK_HW_INIT_PARENTS_DATA("usb-ohci0",
671 .enable = BIT(31),
673 .shift = 24,
681 .hw.init = CLK_HW_INIT_PARENTS_DATA("usb-ohci1",
688 static SUNXI_CCU_GATE_HWS(bus_ohci0_clk, "bus-ohci0", psi_ahb_hws,
689 0xa8c, BIT(0), 0);
690 static SUNXI_CCU_GATE_HWS(bus_ohci1_clk, "bus-ohci1", psi_ahb_hws,
691 0xa8c, BIT(1), 0);
692 static SUNXI_CCU_GATE_HWS(bus_ehci0_clk, "bus-ehci0", psi_ahb_hws,
693 0xa8c, BIT(4), 0);
694 static SUNXI_CCU_GATE_HWS(bus_ehci1_clk, "bus-ehci1", psi_ahb_hws,
695 0xa8c, BIT(5), 0);
696 static SUNXI_CCU_GATE_HWS(bus_otg_clk, "bus-otg", psi_ahb_hws,
697 0xa8c, BIT(8), 0);
699 static SUNXI_CCU_GATE_HWS(bus_lradc_clk, "bus-lradc", apb0_hws,
700 0xa9c, BIT(0), 0);
702 static SUNXI_CCU_GATE_HWS(bus_dpss_top_clk, "bus-dpss-top", psi_ahb_hws,
703 0xabc, BIT(0), 0);
705 static SUNXI_CCU_GATE_DATA(hdmi_24M_clk, "hdmi-24M", osc24M,
706 0xb04, BIT(31), 0);
708 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(hdmi_cec_32k_clk, "hdmi-cec-32k",
710 0xb10, BIT(30), 36621, 0);
716 static SUNXI_CCU_MUX_DATA_WITH_GATE(hdmi_cec_clk, "hdmi-cec", hdmi_cec_parents, 0xb10,
717 24, 1, /* mux */
718 BIT(31), /* gate */
721 static SUNXI_CCU_GATE_HWS(bus_hdmi_clk, "bus-hdmi", psi_ahb_hws,
722 0xb1c, BIT(0), 0);
731 static SUNXI_CCU_M_DATA_WITH_MUX_GATE(mipi_dsi_clk, "mipi-dsi", mipi_dsi_parents, 0xb24,
733 24, 3, /* mux */
734 BIT(31), /* gate */
737 static SUNXI_CCU_GATE_HWS(bus_mipi_dsi_clk, "bus-mipi-dsi", psi_ahb_hws,
738 0xb4c, BIT(0), 0);
748 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(tcon_lcd0_clk, "tcon-lcd0", tcon_tve_parents, 0xb60,
751 24, 3, /* mux */
752 BIT(31), /* gate */
755 static SUNXI_CCU_GATE_HWS(bus_tcon_lcd0_clk, "bus-tcon-lcd0", psi_ahb_hws,
756 0xb7c, BIT(0), 0);
758 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(tcon_tv_clk, "tcon-tv", tcon_tve_parents, 0xb80,
761 24, 3, /* mux */
762 BIT(31), /* gate */
765 static SUNXI_CCU_GATE_HWS(bus_tcon_tv_clk, "bus-tcon-tv", psi_ahb_hws,
766 0xb9c, BIT(0), 0);
771 24, 3, /* mux */
772 BIT(31), /* gate */
775 static SUNXI_CCU_GATE_HWS(bus_tve_top_clk, "bus-tve-top", psi_ahb_hws,
776 0xbbc, BIT(0), 0);
777 static SUNXI_CCU_GATE_HWS(bus_tve_clk, "bus-tve", psi_ahb_hws,
778 0xbbc, BIT(1), 0);
788 24, 3, /* mux */
789 BIT(31), /* gate */
792 static SUNXI_CCU_GATE_HWS(bus_tvd_top_clk, "bus-tvd-top", psi_ahb_hws,
793 0xbdc, BIT(0), 0);
794 static SUNXI_CCU_GATE_HWS(bus_tvd_clk, "bus-tvd", psi_ahb_hws,
795 0xbdc, BIT(1), 0);
800 24, 1, /* mux */
801 BIT(31), /* gate */
804 static SUNXI_CCU_GATE_HWS(bus_ledc_clk, "bus-ledc", psi_ahb_hws,
805 0xbfc, BIT(0), 0);
812 static SUNXI_CCU_M_HW_WITH_MUX_GATE(csi_top_clk, "csi-top", csi_top_parents, 0xc04,
814 24, 3, /* mux */
815 BIT(31), /* gate */
826 static SUNXI_CCU_M_DATA_WITH_MUX_GATE(csi_mclk_clk, "csi-mclk", csi_mclk_parents, 0xc08,
828 24, 3, /* mux */
829 BIT(31), /* gate */
832 static SUNXI_CCU_GATE_HWS(bus_csi_clk, "bus-csi", psi_ahb_hws,
833 0xc1c, BIT(0), 0);
840 24, 3, /* mux */
841 BIT(31), /* gate */
844 static SUNXI_CCU_GATE_HWS(bus_tpadc_clk, "bus-tpadc", apb0_hws,
845 0xc5c, BIT(0), 0);
847 static SUNXI_CCU_GATE_HWS(bus_tzma_clk, "bus-tzma", apb0_hws,
848 0xc6c, BIT(0), 0);
859 24, 3, /* mux */
860 BIT(31), /* gate */
863 static SUNXI_CCU_GATE_HWS(bus_dsp_cfg_clk, "bus-dsp-cfg", psi_ahb_hws,
864 0xc7c, BIT(1), 0);
867 * The RISC-V gate is not modelled - it is in a separate register (0xd04)
881 24, 3, /* mux */
884 /* The riscv-axi clk must be divided by at least 2. */
891 static SUNXI_CCU_DIV_TABLE_HW(riscv_axi_clk, "riscv-axi", &riscv_clk.common.hw,
894 static SUNXI_CCU_GATE_HWS(bus_riscv_cfg_clk, "bus-riscv-cfg", psi_ahb_hws,
895 0xd0c, BIT(0), CLK_IS_CRITICAL);
897 static SUNXI_CCU_GATE_DATA(fanout_24M_clk, "fanout-24M", osc24M,
898 0xf30, BIT(0), 0);
899 static SUNXI_CCU_GATE_DATA_WITH_PREDIV(fanout_12M_clk, "fanout-12M", osc24M,
900 0xf30, BIT(1), 2, 0);
901 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(fanout_16M_clk, "fanout-16M", pll_periph0_2x_hws,
902 0xf30, BIT(2), 75, 0);
903 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(fanout_25M_clk, "fanout-25M", pll_periph0_hws,
904 0xf30, BIT(3), 24, 0);
905 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(fanout_32k_clk, "fanout-32k", pll_periph0_2x_hws,
906 0xf30, BIT(4), 36621, 0);
914 static SUNXI_CCU_M_HW_WITH_MUX_GATE(fanout_27M_clk, "fanout-27M", fanout_27M_parents, 0xf34,
916 24, 2, /* mux */
917 BIT(31), /* gate */
920 static SUNXI_CCU_M_HWS_WITH_GATE(fanout_pclk_clk, "fanout-pclk", apb0_hws, 0xf38,
922 BIT(31), /* gate */
936 BIT(21), /* gate */
940 BIT(22), /* gate */
944 BIT(23), /* gate */
1242 [RST_MBUS] = { 0x540, BIT(30) },
1243 [RST_BUS_DE] = { 0x60c, BIT(16) },
1244 [RST_BUS_DI] = { 0x62c, BIT(16) },
1245 [RST_BUS_G2D] = { 0x63c, BIT(16) },
1246 [RST_BUS_CE] = { 0x68c, BIT(16) },
1247 [RST_BUS_VE] = { 0x69c, BIT(16) },
1248 [RST_BUS_DMA] = { 0x70c, BIT(16) },
1249 [RST_BUS_MSGBOX0] = { 0x71c, BIT(16) },
1250 [RST_BUS_MSGBOX1] = { 0x71c, BIT(17) },
1251 [RST_BUS_MSGBOX2] = { 0x71c, BIT(18) },
1252 [RST_BUS_SPINLOCK] = { 0x72c, BIT(16) },
1253 [RST_BUS_HSTIMER] = { 0x73c, BIT(16) },
1254 [RST_BUS_DBG] = { 0x78c, BIT(16) },
1255 [RST_BUS_PWM] = { 0x7ac, BIT(16) },
1256 [RST_BUS_DRAM] = { 0x80c, BIT(16) },
1257 [RST_BUS_MMC0] = { 0x84c, BIT(16) },
1258 [RST_BUS_MMC1] = { 0x84c, BIT(17) },
1259 [RST_BUS_MMC2] = { 0x84c, BIT(18) },
1260 [RST_BUS_UART0] = { 0x90c, BIT(16) },
1261 [RST_BUS_UART1] = { 0x90c, BIT(17) },
1262 [RST_BUS_UART2] = { 0x90c, BIT(18) },
1263 [RST_BUS_UART3] = { 0x90c, BIT(19) },
1264 [RST_BUS_UART4] = { 0x90c, BIT(20) },
1265 [RST_BUS_UART5] = { 0x90c, BIT(21) },
1266 [RST_BUS_I2C0] = { 0x91c, BIT(16) },
1267 [RST_BUS_I2C1] = { 0x91c, BIT(17) },
1268 [RST_BUS_I2C2] = { 0x91c, BIT(18) },
1269 [RST_BUS_I2C3] = { 0x91c, BIT(19) },
1270 [RST_BUS_CAN0] = { 0x92c, BIT(16) },
1271 [RST_BUS_CAN1] = { 0x92c, BIT(17) },
1272 [RST_BUS_SPI0] = { 0x96c, BIT(16) },
1273 [RST_BUS_SPI1] = { 0x96c, BIT(17) },
1274 [RST_BUS_EMAC] = { 0x97c, BIT(16) },
1275 [RST_BUS_IR_TX] = { 0x9cc, BIT(16) },
1276 [RST_BUS_GPADC] = { 0x9ec, BIT(16) },
1277 [RST_BUS_THS] = { 0x9fc, BIT(16) },
1278 [RST_BUS_I2S0] = { 0xa20, BIT(16) },
1279 [RST_BUS_I2S1] = { 0xa20, BIT(17) },
1280 [RST_BUS_I2S2] = { 0xa20, BIT(18) },
1281 [RST_BUS_SPDIF] = { 0xa2c, BIT(16) },
1282 [RST_BUS_DMIC] = { 0xa4c, BIT(16) },
1283 [RST_BUS_AUDIO] = { 0xa5c, BIT(16) },
1284 [RST_USB_PHY0] = { 0xa70, BIT(30) },
1285 [RST_USB_PHY1] = { 0xa74, BIT(30) },
1286 [RST_BUS_OHCI0] = { 0xa8c, BIT(16) },
1287 [RST_BUS_OHCI1] = { 0xa8c, BIT(17) },
1288 [RST_BUS_EHCI0] = { 0xa8c, BIT(20) },
1289 [RST_BUS_EHCI1] = { 0xa8c, BIT(21) },
1290 [RST_BUS_OTG] = { 0xa8c, BIT(24) },
1291 [RST_BUS_LRADC] = { 0xa9c, BIT(16) },
1292 [RST_BUS_DPSS_TOP] = { 0xabc, BIT(16) },
1293 [RST_BUS_HDMI_MAIN] = { 0xb1c, BIT(16) },
1294 [RST_BUS_HDMI_SUB] = { 0xb1c, BIT(17) },
1295 [RST_BUS_MIPI_DSI] = { 0xb4c, BIT(16) },
1296 [RST_BUS_TCON_LCD0] = { 0xb7c, BIT(16) },
1297 [RST_BUS_TCON_TV] = { 0xb9c, BIT(16) },
1298 [RST_BUS_LVDS0] = { 0xbac, BIT(16) },
1299 [RST_BUS_TVE_TOP] = { 0xbbc, BIT(16) },
1300 [RST_BUS_TVE] = { 0xbbc, BIT(17) },
1301 [RST_BUS_TVD_TOP] = { 0xbdc, BIT(16) },
1302 [RST_BUS_TVD] = { 0xbdc, BIT(17) },
1303 [RST_BUS_LEDC] = { 0xbfc, BIT(16) },
1304 [RST_BUS_CSI] = { 0xc1c, BIT(16) },
1305 [RST_BUS_TPADC] = { 0xc5c, BIT(16) },
1306 [RST_DSP] = { 0xc7c, BIT(16) },
1307 [RST_BUS_DSP_CFG] = { 0xc7c, BIT(17) },
1308 [RST_BUS_DSP_DBG] = { 0xc7c, BIT(18) },
1309 [RST_BUS_RISCV_CFG] = { 0xd0c, BIT(16) },
1342 .bypass_index = 4, /* index of pll-periph0 */
1358 val |= BIT(31) | BIT(30) | BIT(29); in sun20i_d1_ccu_probe()
1370 * See the comment before pll-video0 definition for the reason. in sun20i_d1_ccu_probe()
1374 val &= ~BIT(0); in sun20i_d1_ccu_probe()
1380 val &= ~(BIT(1) | BIT(0)); in sun20i_d1_ccu_probe()
1383 /* Force fanout-27M factor N to 0. */ in sun20i_d1_ccu_probe()
1388 ret = devm_sunxi_ccu_probe(&pdev->dev, reg, &sun20i_d1_ccu_desc); in sun20i_d1_ccu_probe()
1400 { .compatible = "allwinner,sun20i-d1-ccu" },
1408 .name = "sun20i-d1-ccu",