Lines Matching +full:sun50i +full:- +full:a64 +full:- +full:de2

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
53 #include <dt-bindings/clock/sun8i-de2.h>
54 #include <dt-bindings/reset/sun8i-de2.h>
78 CCU_GATE(CLK_BUS_MIXER0, "mixer0", "mixer0-div", 0x00, 0)
79 CCU_GATE(CLK_BUS_WB, "wb", "wb-div", 0x00, 2)
81 CCU_GATE(CLK_MIXER0, "bus-mixer0", "bus-de", 0x04, 0)
82 CCU_GATE(CLK_WB, "bus-wb", "bus-de", 0x04, 2)
86 CCU_GATE(CLK_BUS_MIXER0, "mixer0", "mixer0-div", 0x00, 0)
87 CCU_GATE(CLK_BUS_MIXER1, "mixer1", "mixer1-div", 0x00, 1)
88 CCU_GATE(CLK_BUS_WB, "wb", "wb-div", 0x00, 2)
90 CCU_GATE(CLK_MIXER0, "bus-mixer0", "bus-de", 0x04, 0)
91 CCU_GATE(CLK_MIXER1, "bus-mixer1", "bus-de", 0x04, 1)
92 CCU_GATE(CLK_WB, "bus-wb", "bus-de", 0x04, 2)
99 "mixer0-div", div_parents, /* names, parents */
109 "mixer1-div", div_parents, /* names, parents */
119 "wb-div", div_parents, /* names, parents */
139 {"allwinner,sun8i-h3-de2-clk", H3_CCU},
140 {"allwinner,sun50i-a64-de2-clk", A64_CCU},
151 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) in ccu_de2_probe()
154 device_set_desc(dev, "Allwinner DE2 Clock Control Unit"); in ccu_de2_probe()
170 type = (enum CCU_DE2)ofw_bus_search_compatible(dev, compat_data)->ocd_data; in ccu_de2_attach()
174 sc->resets = h3_de2_ccu_resets; in ccu_de2_attach()
175 sc->nresets = nitems(h3_de2_ccu_resets); in ccu_de2_attach()
176 sc->gates = h3_de2_ccu_gates; in ccu_de2_attach()
177 sc->ngates = nitems(h3_de2_ccu_gates); in ccu_de2_attach()
178 sc->clks = h3_de2_ccu_clks; in ccu_de2_attach()
179 sc->nclks = nitems(h3_de2_ccu_clks); in ccu_de2_attach()
182 sc->resets = a64_de2_ccu_resets; in ccu_de2_attach()
183 sc->nresets = nitems(a64_de2_ccu_resets); in ccu_de2_attach()
184 sc->gates = a64_de2_ccu_gates; in ccu_de2_attach()
185 sc->ngates = nitems(a64_de2_ccu_gates); in ccu_de2_attach()
186 sc->clks = a64_de2_ccu_clks; in ccu_de2_attach()
187 sc->nclks = nitems(a64_de2_ccu_clks); in ccu_de2_attach()
196 device_printf(dev, "Cannot de-assert de reset\n"); in ccu_de2_attach()