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);
418 24, 3, /* mux */
419 BIT(31), /* gate */
425 24, 3, /* mux */
426 BIT(31), /* gate */
439 24, 3, /* mux */
440 BIT(31), /* gate */
443 static SUNXI_CCU_GATE_HWS(bus_mmc0_clk, "bus-mmc0", psi_ahb_hws,
444 0x84c, BIT(0), 0);
445 static SUNXI_CCU_GATE_HWS(bus_mmc1_clk, "bus-mmc1", psi_ahb_hws,
446 0x84c, BIT(1), 0);
447 static SUNXI_CCU_GATE_HWS(bus_mmc2_clk, "bus-mmc2", psi_ahb_hws,
448 0x84c, BIT(2), 0);
450 static SUNXI_CCU_GATE_HWS(bus_uart0_clk, "bus-uart0", apb1_hws,
451 0x90c, BIT(0), 0);
452 static SUNXI_CCU_GATE_HWS(bus_uart1_clk, "bus-uart1", apb1_hws,
453 0x90c, BIT(1), 0);
454 static SUNXI_CCU_GATE_HWS(bus_uart2_clk, "bus-uart2", apb1_hws,
455 0x90c, BIT(2), 0);
456 static SUNXI_CCU_GATE_HWS(bus_uart3_clk, "bus-uart3", apb1_hws,
457 0x90c, BIT(3), 0);
458 static SUNXI_CCU_GATE_HWS(bus_uart4_clk, "bus-uart4", apb1_hws,
459 0x90c, BIT(4), 0);
460 static SUNXI_CCU_GATE_HWS(bus_uart5_clk, "bus-uart5", apb1_hws,
461 0x90c, BIT(5), 0);
463 static SUNXI_CCU_GATE_HWS(bus_i2c0_clk, "bus-i2c0", apb1_hws,
464 0x91c, BIT(0), 0);
465 static SUNXI_CCU_GATE_HWS(bus_i2c1_clk, "bus-i2c1", apb1_hws,
466 0x91c, BIT(1), 0);
467 static SUNXI_CCU_GATE_HWS(bus_i2c2_clk, "bus-i2c2", apb1_hws,
468 0x91c, BIT(2), 0);
469 static SUNXI_CCU_GATE_HWS(bus_i2c3_clk, "bus-i2c3", apb1_hws,
470 0x91c, BIT(3), 0);
472 static SUNXI_CCU_GATE_HWS(bus_can0_clk, "bus-can0", apb1_hws,
473 0x92c, BIT(0), 0);
474 static SUNXI_CCU_GATE_HWS(bus_can1_clk, "bus-can1", apb1_hws,
475 0x92c, BIT(1), 0);
487 24, 3, /* mux */
488 BIT(31), /* gate */
494 24, 3, /* mux */
495 BIT(31), /* gate */
498 static SUNXI_CCU_GATE_HWS(bus_spi0_clk, "bus-spi0", psi_ahb_hws,
499 0x96c, BIT(0), 0);
500 static SUNXI_CCU_GATE_HWS(bus_spi1_clk, "bus-spi1", psi_ahb_hws,
501 0x96c, BIT(1), 0);
503 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(emac_25M_clk, "emac-25M", pll_periph0_hws,
504 0x970, BIT(31) | BIT(30), 24, 0);
506 static SUNXI_CCU_GATE_HWS(bus_emac_clk, "bus-emac", psi_ahb_hws,
507 0x97c, BIT(0), 0);
513 static SUNXI_CCU_MP_DATA_WITH_MUX_GATE(ir_tx_clk, "ir-tx", ir_tx_ledc_parents, 0x9c0,
516 24, 3, /* mux */
517 BIT(31), /* gate */
520 static SUNXI_CCU_GATE_HWS(bus_ir_tx_clk, "bus-ir-tx", apb0_hws,
521 0x9cc, BIT(0), 0);
523 static SUNXI_CCU_GATE_HWS(bus_gpadc_clk, "bus-gpadc", apb0_hws,
524 0x9ec, BIT(0), 0);
526 static SUNXI_CCU_GATE_HWS(bus_ths_clk, "bus-ths", apb0_hws,
527 0x9fc, BIT(0), 0);
538 24, 3, /* mux */
539 BIT(31), /* gate */
545 24, 3, /* mux */
546 BIT(31), /* gate */
552 24, 3, /* mux */
553 BIT(31), /* gate */
562 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(i2s2_asrc_clk, "i2s2-asrc", i2s2_asrc_parents, 0xa1c,
565 24, 3, /* mux */
566 BIT(31), /* gate */
569 static SUNXI_CCU_GATE_HWS(bus_i2s0_clk, "bus-i2s0", apb0_hws,
570 0xa20, BIT(0), 0);
571 static SUNXI_CCU_GATE_HWS(bus_i2s1_clk, "bus-i2s1", apb0_hws,
572 0xa20, BIT(1), 0);
573 static SUNXI_CCU_GATE_HWS(bus_i2s2_clk, "bus-i2s2", apb0_hws,
574 0xa20, BIT(2), 0);
576 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(spdif_tx_clk, "spdif-tx", i2s_spdif_tx_parents, 0xa24,
579 24, 3, /* mux */
580 BIT(31), /* gate */
588 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(spdif_rx_clk, "spdif-rx", spdif_rx_parents, 0xa28,
591 24, 3, /* mux */
592 BIT(31), /* gate */
595 static SUNXI_CCU_GATE_HWS(bus_spdif_clk, "bus-spdif", apb0_hws,
596 0xa2c, BIT(0), 0);
606 24, 3, /* mux */
607 BIT(31), /* gate */
610 static SUNXI_CCU_GATE_HWS(bus_dmic_clk, "bus-dmic", apb0_hws,
611 0xa4c, BIT(0), 0);
613 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(audio_dac_clk, "audio-dac", dmic_codec_parents, 0xa50,
616 24, 3, /* mux */
617 BIT(31), /* gate */
620 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(audio_adc_clk, "audio-adc", dmic_codec_parents, 0xa54,
623 24, 3, /* mux */
624 BIT(31), /* gate */
627 static SUNXI_CCU_GATE_HWS(bus_audio_clk, "bus-audio", apb0_hws,
628 0xa5c, BIT(0), 0);
633 * a 2x multiplier from osc24M synchronized by pll-periph0, and is also used by
647 .enable = BIT(31),
649 .shift = 24,
657 .hw.init = CLK_HW_INIT_PARENTS_DATA("usb-ohci0",
665 .enable = BIT(31),
667 .shift = 24,
675 .hw.init = CLK_HW_INIT_PARENTS_DATA("usb-ohci1",
682 static SUNXI_CCU_GATE_HWS(bus_ohci0_clk, "bus-ohci0", psi_ahb_hws,
683 0xa8c, BIT(0), 0);
684 static SUNXI_CCU_GATE_HWS(bus_ohci1_clk, "bus-ohci1", psi_ahb_hws,
685 0xa8c, BIT(1), 0);
686 static SUNXI_CCU_GATE_HWS(bus_ehci0_clk, "bus-ehci0", psi_ahb_hws,
687 0xa8c, BIT(4), 0);
688 static SUNXI_CCU_GATE_HWS(bus_ehci1_clk, "bus-ehci1", psi_ahb_hws,
689 0xa8c, BIT(5), 0);
690 static SUNXI_CCU_GATE_HWS(bus_otg_clk, "bus-otg", psi_ahb_hws,
691 0xa8c, BIT(8), 0);
693 static SUNXI_CCU_GATE_HWS(bus_lradc_clk, "bus-lradc", apb0_hws,
694 0xa9c, BIT(0), 0);
696 static SUNXI_CCU_GATE_HWS(bus_dpss_top_clk, "bus-dpss-top", psi_ahb_hws,
697 0xabc, BIT(0), 0);
699 static SUNXI_CCU_GATE_DATA(hdmi_24M_clk, "hdmi-24M", osc24M,
700 0xb04, BIT(31), 0);
702 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(hdmi_cec_32k_clk, "hdmi-cec-32k",
704 0xb10, BIT(30), 36621, 0);
710 static SUNXI_CCU_MUX_DATA_WITH_GATE(hdmi_cec_clk, "hdmi-cec", hdmi_cec_parents, 0xb10,
711 24, 1, /* mux */
712 BIT(31), /* gate */
715 static SUNXI_CCU_GATE_HWS(bus_hdmi_clk, "bus-hdmi", psi_ahb_hws,
716 0xb1c, BIT(0), 0);
725 static SUNXI_CCU_M_DATA_WITH_MUX_GATE(mipi_dsi_clk, "mipi-dsi", mipi_dsi_parents, 0xb24,
727 24, 3, /* mux */
728 BIT(31), /* gate */
731 static SUNXI_CCU_GATE_HWS(bus_mipi_dsi_clk, "bus-mipi-dsi", psi_ahb_hws,
732 0xb4c, BIT(0), 0);
742 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(tcon_lcd0_clk, "tcon-lcd0", tcon_tve_parents, 0xb60,
745 24, 3, /* mux */
746 BIT(31), /* gate */
749 static SUNXI_CCU_GATE_HWS(bus_tcon_lcd0_clk, "bus-tcon-lcd0", psi_ahb_hws,
750 0xb7c, BIT(0), 0);
752 static SUNXI_CCU_MP_HW_WITH_MUX_GATE(tcon_tv_clk, "tcon-tv", tcon_tve_parents, 0xb80,
755 24, 3, /* mux */
756 BIT(31), /* gate */
759 static SUNXI_CCU_GATE_HWS(bus_tcon_tv_clk, "bus-tcon-tv", psi_ahb_hws,
760 0xb9c, BIT(0), 0);
765 24, 3, /* mux */
766 BIT(31), /* gate */
769 static SUNXI_CCU_GATE_HWS(bus_tve_top_clk, "bus-tve-top", psi_ahb_hws,
770 0xbbc, BIT(0), 0);
771 static SUNXI_CCU_GATE_HWS(bus_tve_clk, "bus-tve", psi_ahb_hws,
772 0xbbc, BIT(1), 0);
782 24, 3, /* mux */
783 BIT(31), /* gate */
786 static SUNXI_CCU_GATE_HWS(bus_tvd_top_clk, "bus-tvd-top", psi_ahb_hws,
787 0xbdc, BIT(0), 0);
788 static SUNXI_CCU_GATE_HWS(bus_tvd_clk, "bus-tvd", psi_ahb_hws,
789 0xbdc, BIT(1), 0);
794 24, 1, /* mux */
795 BIT(31), /* gate */
798 static SUNXI_CCU_GATE_HWS(bus_ledc_clk, "bus-ledc", psi_ahb_hws,
799 0xbfc, BIT(0), 0);
806 static SUNXI_CCU_M_HW_WITH_MUX_GATE(csi_top_clk, "csi-top", csi_top_parents, 0xc04,
808 24, 3, /* mux */
809 BIT(31), /* gate */
820 static SUNXI_CCU_M_DATA_WITH_MUX_GATE(csi_mclk_clk, "csi-mclk", csi_mclk_parents, 0xc08,
822 24, 3, /* mux */
823 BIT(31), /* gate */
826 static SUNXI_CCU_GATE_HWS(bus_csi_clk, "bus-csi", psi_ahb_hws,
827 0xc1c, BIT(0), 0);
834 24, 3, /* mux */
835 BIT(31), /* gate */
838 static SUNXI_CCU_GATE_HWS(bus_tpadc_clk, "bus-tpadc", apb0_hws,
839 0xc5c, BIT(0), 0);
841 static SUNXI_CCU_GATE_HWS(bus_tzma_clk, "bus-tzma", apb0_hws,
842 0xc6c, BIT(0), 0);
853 24, 3, /* mux */
854 BIT(31), /* gate */
857 static SUNXI_CCU_GATE_HWS(bus_dsp_cfg_clk, "bus-dsp-cfg", psi_ahb_hws,
858 0xc7c, BIT(1), 0);
861 * The RISC-V gate is not modelled - it is in a separate register (0xd04)
875 24, 3, /* mux */
878 /* The riscv-axi clk must be divided by at least 2. */
885 static SUNXI_CCU_DIV_TABLE_HW(riscv_axi_clk, "riscv-axi", &riscv_clk.common.hw,
888 static SUNXI_CCU_GATE_HWS(bus_riscv_cfg_clk, "bus-riscv-cfg", psi_ahb_hws,
889 0xd0c, BIT(0), CLK_IS_CRITICAL);
891 static SUNXI_CCU_GATE_DATA(fanout_24M_clk, "fanout-24M", osc24M,
892 0xf30, BIT(0), 0);
893 static SUNXI_CCU_GATE_DATA_WITH_PREDIV(fanout_12M_clk, "fanout-12M", osc24M,
894 0xf30, BIT(1), 2, 0);
895 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(fanout_16M_clk, "fanout-16M", pll_periph0_2x_hws,
896 0xf30, BIT(2), 75, 0);
897 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(fanout_25M_clk, "fanout-25M", pll_periph0_hws,
898 0xf30, BIT(3), 24, 0);
899 static SUNXI_CCU_GATE_HWS_WITH_PREDIV(fanout_32k_clk, "fanout-32k", pll_periph0_2x_hws,
900 0xf30, BIT(4), 36621, 0);
908 static SUNXI_CCU_M_HW_WITH_MUX_GATE(fanout_27M_clk, "fanout-27M", fanout_27M_parents, 0xf34,
910 24, 2, /* mux */
911 BIT(31), /* gate */
914 static SUNXI_CCU_M_HWS_WITH_GATE(fanout_pclk_clk, "fanout-pclk", apb0_hws, 0xf38,
916 BIT(31), /* gate */
930 BIT(21), /* gate */
934 BIT(22), /* gate */
938 BIT(23), /* gate */
1236 [RST_MBUS] = { 0x540, BIT(30) },
1237 [RST_BUS_DE] = { 0x60c, BIT(16) },
1238 [RST_BUS_DI] = { 0x62c, BIT(16) },
1239 [RST_BUS_G2D] = { 0x63c, BIT(16) },
1240 [RST_BUS_CE] = { 0x68c, BIT(16) },
1241 [RST_BUS_VE] = { 0x69c, BIT(16) },
1242 [RST_BUS_DMA] = { 0x70c, BIT(16) },
1243 [RST_BUS_MSGBOX0] = { 0x71c, BIT(16) },
1244 [RST_BUS_MSGBOX1] = { 0x71c, BIT(17) },
1245 [RST_BUS_MSGBOX2] = { 0x71c, BIT(18) },
1246 [RST_BUS_SPINLOCK] = { 0x72c, BIT(16) },
1247 [RST_BUS_HSTIMER] = { 0x73c, BIT(16) },
1248 [RST_BUS_DBG] = { 0x78c, BIT(16) },
1249 [RST_BUS_PWM] = { 0x7ac, BIT(16) },
1250 [RST_BUS_DRAM] = { 0x80c, BIT(16) },
1251 [RST_BUS_MMC0] = { 0x84c, BIT(16) },
1252 [RST_BUS_MMC1] = { 0x84c, BIT(17) },
1253 [RST_BUS_MMC2] = { 0x84c, BIT(18) },
1254 [RST_BUS_UART0] = { 0x90c, BIT(16) },
1255 [RST_BUS_UART1] = { 0x90c, BIT(17) },
1256 [RST_BUS_UART2] = { 0x90c, BIT(18) },
1257 [RST_BUS_UART3] = { 0x90c, BIT(19) },
1258 [RST_BUS_UART4] = { 0x90c, BIT(20) },
1259 [RST_BUS_UART5] = { 0x90c, BIT(21) },
1260 [RST_BUS_I2C0] = { 0x91c, BIT(16) },
1261 [RST_BUS_I2C1] = { 0x91c, BIT(17) },
1262 [RST_BUS_I2C2] = { 0x91c, BIT(18) },
1263 [RST_BUS_I2C3] = { 0x91c, BIT(19) },
1264 [RST_BUS_CAN0] = { 0x92c, BIT(16) },
1265 [RST_BUS_CAN1] = { 0x92c, BIT(17) },
1266 [RST_BUS_SPI0] = { 0x96c, BIT(16) },
1267 [RST_BUS_SPI1] = { 0x96c, BIT(17) },
1268 [RST_BUS_EMAC] = { 0x97c, BIT(16) },
1269 [RST_BUS_IR_TX] = { 0x9cc, BIT(16) },
1270 [RST_BUS_GPADC] = { 0x9ec, BIT(16) },
1271 [RST_BUS_THS] = { 0x9fc, BIT(16) },
1272 [RST_BUS_I2S0] = { 0xa20, BIT(16) },
1273 [RST_BUS_I2S1] = { 0xa20, BIT(17) },
1274 [RST_BUS_I2S2] = { 0xa20, BIT(18) },
1275 [RST_BUS_SPDIF] = { 0xa2c, BIT(16) },
1276 [RST_BUS_DMIC] = { 0xa4c, BIT(16) },
1277 [RST_BUS_AUDIO] = { 0xa5c, BIT(16) },
1278 [RST_USB_PHY0] = { 0xa70, BIT(30) },
1279 [RST_USB_PHY1] = { 0xa74, BIT(30) },
1280 [RST_BUS_OHCI0] = { 0xa8c, BIT(16) },
1281 [RST_BUS_OHCI1] = { 0xa8c, BIT(17) },
1282 [RST_BUS_EHCI0] = { 0xa8c, BIT(20) },
1283 [RST_BUS_EHCI1] = { 0xa8c, BIT(21) },
1284 [RST_BUS_OTG] = { 0xa8c, BIT(24) },
1285 [RST_BUS_LRADC] = { 0xa9c, BIT(16) },
1286 [RST_BUS_DPSS_TOP] = { 0xabc, BIT(16) },
1287 [RST_BUS_HDMI_MAIN] = { 0xb1c, BIT(16) },
1288 [RST_BUS_HDMI_SUB] = { 0xb1c, BIT(17) },
1289 [RST_BUS_MIPI_DSI] = { 0xb4c, BIT(16) },
1290 [RST_BUS_TCON_LCD0] = { 0xb7c, BIT(16) },
1291 [RST_BUS_TCON_TV] = { 0xb9c, BIT(16) },
1292 [RST_BUS_LVDS0] = { 0xbac, BIT(16) },
1293 [RST_BUS_TVE_TOP] = { 0xbbc, BIT(16) },
1294 [RST_BUS_TVE] = { 0xbbc, BIT(17) },
1295 [RST_BUS_TVD_TOP] = { 0xbdc, BIT(16) },
1296 [RST_BUS_TVD] = { 0xbdc, BIT(17) },
1297 [RST_BUS_LEDC] = { 0xbfc, BIT(16) },
1298 [RST_BUS_CSI] = { 0xc1c, BIT(16) },
1299 [RST_BUS_TPADC] = { 0xc5c, BIT(16) },
1300 [RST_DSP] = { 0xc7c, BIT(16) },
1301 [RST_BUS_DSP_CFG] = { 0xc7c, BIT(17) },
1302 [RST_BUS_DSP_DBG] = { 0xc7c, BIT(18) },
1303 [RST_BUS_RISCV_CFG] = { 0xd0c, BIT(16) },
1336 .bypass_index = 4, /* index of pll-periph0 */
1352 val |= BIT(31) | BIT(30) | BIT(29); in sun20i_d1_ccu_probe()
1364 * See the comment before pll-video0 definition for the reason. in sun20i_d1_ccu_probe()
1368 val &= ~BIT(0); in sun20i_d1_ccu_probe()
1374 val &= ~(BIT(1) | BIT(0)); in sun20i_d1_ccu_probe()
1377 /* Force fanout-27M factor N to 0. */ in sun20i_d1_ccu_probe()
1382 ret = devm_sunxi_ccu_probe(&pdev->dev, reg, &sun20i_d1_ccu_desc); in sun20i_d1_ccu_probe()
1394 { .compatible = "allwinner,sun20i-d1-ccu" },
1401 .name = "sun20i-d1-ccu",