• Home
  • Raw
  • Download

Lines Matching +full:static +full:- +full:enable

18 #include <linux/clk-provider.h>
22 #include <dt-bindings/clock/bcm-sr.h>
23 #include "clk-iproc.h"
45 static const struct iproc_pll_ctrl sr_genpll0 = {
58 static const struct iproc_clk_ctrl sr_genpll0_clk[] = {
62 .enable = ENABLE_VAL(0x4, 6, 0, 12),
68 .enable = ENABLE_VAL(0x4, 7, 1, 13),
74 .enable = ENABLE_VAL(0x4, 8, 2, 14),
80 .enable = ENABLE_VAL(0x4, 9, 3, 15),
86 .enable = ENABLE_VAL(0x4, 10, 4, 16),
92 .enable = ENABLE_VAL(0x4, 11, 5, 17),
97 static int sr_genpll0_clk_init(struct platform_device *pdev) in sr_genpll0_clk_init()
99 iproc_pll_clk_setup(pdev->dev.of_node, in sr_genpll0_clk_init()
105 static const struct iproc_pll_ctrl sr_genpll2 = {
118 static const struct iproc_clk_ctrl sr_genpll2_clk[] = {
122 .enable = ENABLE_VAL(0x4, 6, 0, 12),
128 .enable = ENABLE_VAL(0x4, 7, 1, 13),
134 .enable = ENABLE_VAL(0x4, 8, 2, 14),
140 .enable = ENABLE_VAL(0x4, 9, 3, 15),
146 .enable = ENABLE_VAL(0x4, 10, 4, 16),
151 .enable = ENABLE_VAL(0x4, 11, 5, 17),
156 static int sr_genpll2_clk_init(struct platform_device *pdev) in sr_genpll2_clk_init()
158 iproc_pll_clk_setup(pdev->dev.of_node, in sr_genpll2_clk_init()
164 static const struct iproc_pll_ctrl sr_genpll3 = {
177 static const struct iproc_clk_ctrl sr_genpll3_clk[] = {
181 .enable = ENABLE_VAL(0x4, 6, 0, 12),
187 .enable = ENABLE_VAL(0x4, 7, 1, 13),
192 static void sr_genpll3_clk_init(struct device_node *node) in sr_genpll3_clk_init()
197 CLK_OF_DECLARE(sr_genpll3_clk, "brcm,sr-genpll3", sr_genpll3_clk_init);
199 static const struct iproc_pll_ctrl sr_genpll4 = {
212 static const struct iproc_clk_ctrl sr_genpll4_clk[] = {
216 .enable = ENABLE_VAL(0x4, 6, 0, 12),
222 .enable = ENABLE_VAL(0x4, 7, 1, 13),
228 .enable = ENABLE_VAL(0x4, 8, 2, 14),
234 .enable = ENABLE_VAL(0x4, 9, 3, 15),
240 .enable = ENABLE_VAL(0x4, 10, 4, 16),
245 static int sr_genpll4_clk_init(struct platform_device *pdev) in sr_genpll4_clk_init()
247 iproc_pll_clk_setup(pdev->dev.of_node, in sr_genpll4_clk_init()
253 static const struct iproc_pll_ctrl sr_genpll5 = {
266 static const struct iproc_clk_ctrl sr_genpll5_clk[] = {
269 .enable = ENABLE_VAL(0x4, 6, 0, 12),
274 .enable = ENABLE_VAL(0x4, 7, 1, 12),
279 .enable = ENABLE_VAL(0x4, 8, 2, 14),
284 static int sr_genpll5_clk_init(struct platform_device *pdev) in sr_genpll5_clk_init()
286 iproc_pll_clk_setup(pdev->dev.of_node, in sr_genpll5_clk_init()
292 static const struct iproc_pll_ctrl sr_lcpll0 = {
302 static const struct iproc_clk_ctrl sr_lcpll0_clk[] = {
306 .enable = ENABLE_VAL(0x0, 7, 1, 13),
312 .enable = ENABLE_VAL(0x0, 8, 2, 14),
318 .enable = ENABLE_VAL(0x0, 9, 3, 15),
324 .enable = ENABLE_VAL(0x0, 10, 4, 16),
329 static int sr_lcpll0_clk_init(struct platform_device *pdev) in sr_lcpll0_clk_init()
331 iproc_pll_clk_setup(pdev->dev.of_node, in sr_lcpll0_clk_init()
337 static const struct iproc_pll_ctrl sr_lcpll1 = {
347 static const struct iproc_clk_ctrl sr_lcpll1_clk[] = {
351 .enable = ENABLE_VAL(0x0, 7, 1, 13),
357 .enable = ENABLE_VAL(0x0, 8, 2, 14),
363 .enable = ENABLE_VAL(0x0, 9, 3, 15),
368 static int sr_lcpll1_clk_init(struct platform_device *pdev) in sr_lcpll1_clk_init()
370 iproc_pll_clk_setup(pdev->dev.of_node, in sr_lcpll1_clk_init()
376 static const struct iproc_pll_ctrl sr_lcpll_pcie = {
386 static const struct iproc_clk_ctrl sr_lcpll_pcie_clk[] = {
390 .enable = ENABLE_VAL(0x0, 7, 1, 13),
395 static int sr_lcpll_pcie_clk_init(struct platform_device *pdev) in sr_lcpll_pcie_clk_init()
397 iproc_pll_clk_setup(pdev->dev.of_node, in sr_lcpll_pcie_clk_init()
403 static const struct of_device_id sr_clk_dt_ids[] = {
404 { .compatible = "brcm,sr-genpll0", .data = sr_genpll0_clk_init },
405 { .compatible = "brcm,sr-genpll2", .data = sr_genpll2_clk_init },
406 { .compatible = "brcm,sr-genpll4", .data = sr_genpll4_clk_init },
407 { .compatible = "brcm,sr-genpll5", .data = sr_genpll5_clk_init },
408 { .compatible = "brcm,sr-lcpll0", .data = sr_lcpll0_clk_init },
409 { .compatible = "brcm,sr-lcpll1", .data = sr_lcpll1_clk_init },
410 { .compatible = "brcm,sr-lcpll-pcie", .data = sr_lcpll_pcie_clk_init },
414 static int sr_clk_probe(struct platform_device *pdev) in sr_clk_probe()
418 probe_func = of_device_get_match_data(&pdev->dev); in sr_clk_probe()
420 return -ENODEV; in sr_clk_probe()
425 static struct platform_driver sr_clk_driver = {
427 .name = "sr-clk",