Lines Matching +full:bus +full:- +full:id

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
30 #include <sys/bus.h>
34 #include <machine/bus.h>
47 #include <dt-bindings/clock/sun50i-h6-ccu.h>
48 #include <dt-bindings/reset/sun50i-h6-ccu.h>
50 /* Non-exported clocks */
117 CCU_GATE(CLK_BUS_PSI, "bus-psi", "psi_ahb1_ahb2", 0x79c, 0)
120 CCU_GATE(CLK_BUS_MMC0, "bus-mmc0", "ahb3", 0x84c, 0)
121 CCU_GATE(CLK_BUS_MMC1, "bus-mmc1", "ahb3", 0x84c, 1)
122 CCU_GATE(CLK_BUS_MMC2, "bus-mmc2", "ahb3", 0x84c, 2)
125 /* CCU_GATE(CLK_BUS_UART0, "bus-uart0", "apb2", 0x90c, 0) */
126 /* CCU_GATE(CLK_BUS_UART1, "bus-uart1", "apb2", 0x90c, 1) */
127 /* CCU_GATE(CLK_BUS_UART2, "bus-uart2", "apb2", 0x90c, 2) */
128 /* CCU_GATE(CLK_BUS_UART3, "bus-uart3", "apb2", 0x90c, 3) */
131 CCU_GATE(CLK_BUS_I2C0, "bus-i2c0", "apb2", 0x91c, 0)
132 CCU_GATE(CLK_BUS_I2C1, "bus-i2c1", "apb2", 0x91c, 1)
133 CCU_GATE(CLK_BUS_I2C2, "bus-i2c2", "apb2", 0x91c, 2)
134 CCU_GATE(CLK_BUS_I2C3, "bus-i2c3", "apb2", 0x91c, 3)
137 CCU_GATE(CLK_BUS_EMAC, "bus-emac", "ahb3", 0x97c, 0)
140 CCU_GATE(CLK_USB_PHY0, "usb-phy0", "ahb3", 0xa70, 29)
141 CCU_GATE(CLK_USB_OHCI0, "usb-ohci0", "ahb3", 0xa70, 31)
144 CCU_GATE(CLK_USB_PHY1, "usb-phy1", "ahb3", 0xa74, 29)
147 CCU_GATE(CLK_USB_HSIC, "usb-hsic", "ahb3", 0xa7c, 26)
148 CCU_GATE(CLK_USB_HSIC_12M, "usb-hsic-12M", "ahb3", 0xa7c, 27)
149 CCU_GATE(CLK_USB_PHY3, "usb-phy3", "ahb3", 0xa7c, 29)
150 CCU_GATE(CLK_USB_OHCI3, "usb-ohci3", "ahb3", 0xa7c, 31)
153 CCU_GATE(CLK_BUS_OHCI0, "bus-ohci0", "ahb3", 0xa8c, 0)
154 CCU_GATE(CLK_BUS_OHCI3, "bus-ohci3", "ahb3", 0xa8c, 3)
155 CCU_GATE(CLK_BUS_EHCI0, "bus-ehci0", "ahb3", 0xa8c, 4)
156 CCU_GATE(CLK_BUS_XHCI, "bus-xhci", "ahb3", 0xa8c, 5)
157 CCU_GATE(CLK_BUS_EHCI3, "bus-ehci3", "ahb3", 0xa8c, 7)
158 CCU_GATE(CLK_BUS_OTG, "bus-otg", "ahb3", 0xa8c, 8)
163 CLK_OSC_12M, /* id */
173 CLK_PLL_CPUX, /* id */
184 CLK_PLL_DDR0, /* id */
196 CLK_PLL_PERIPH0_4X, /* id */
207 CLK_PLL_PERIPH0_2X, /* id */
216 CLK_PLL_PERIPH0, /* id */
226 CLK_PLL_PERIPH1_4X, /* id */
237 CLK_PLL_PERIPH1_2X, /* id */
246 CLK_PLL_PERIPH1, /* id */
256 CLK_PLL_GPU, /* id */
268 CLK_PLL_VIDEO0_4X, /* id */
279 CLK_PLL_VIDEO0, /* id */
289 CLK_PLL_VIDEO1_4X, /* id */
300 CLK_PLL_VIDEO1, /* id */
310 CLK_PLL_VE, /* id */
322 CLK_PLL_DE, /* id */
334 CLK_PLL_HSIC, /* id */
350 CLK_PSI_AHB1_AHB2, "psi_ahb1_ahb2", psi_ahb1_ahb2_parents, /* id, name, parents */
360 CLK_AHB3, "ahb3", ahb3_parents, /* id, name, parents */
370 CLK_APB1, "apb1", apb1_parents, /* id, name, parents */
380 CLK_APB2, "apb2", apb2_parents, /* id, name, parents */
392 CLK_MMC0, "mmc0", mod_parents, /* id, name, parents */
402 CLK_MMC1, "mmc1", mod_parents, /* id, name, parents */
412 CLK_MMC2, "mmc2", mod_parents, /* id, name, parents */
458 if (!ofw_bus_is_compatible(dev, "allwinner,sun50i-h6-ccu")) in ccu_h6_probe()
472 sc->resets = h6_ccu_resets; in ccu_h6_attach()
473 sc->nresets = nitems(h6_ccu_resets); in ccu_h6_attach()
474 sc->gates = h6_ccu_gates; in ccu_h6_attach()
475 sc->ngates = nitems(h6_ccu_gates); in ccu_h6_attach()
476 sc->clks = h6_ccu_clks; in ccu_h6_attach()
477 sc->nclks = nitems(h6_ccu_clks); in ccu_h6_attach()