Lines Matching +full:vf610 +full:- +full:sai +full:- +full:clock
1 // SPDX-License-Identifier: GPL-2.0
3 * Freescale SAI BCLK as a generic clock driver
10 #include <linux/clk-provider.h>
31 struct device *dev = &pdev->dev; in fsl_sai_clk_probe()
39 return -ENOMEM; in fsl_sai_clk_probe()
45 spin_lock_init(&sai_clk->lock); in fsl_sai_clk_probe()
47 sai_clk->gate.reg = base + I2S_CSR; in fsl_sai_clk_probe()
48 sai_clk->gate.bit_idx = CSR_BCE_BIT; in fsl_sai_clk_probe()
49 sai_clk->gate.lock = &sai_clk->lock; in fsl_sai_clk_probe()
51 sai_clk->div.reg = base + I2S_CR2; in fsl_sai_clk_probe()
52 sai_clk->div.shift = CR2_DIV_SHIFT; in fsl_sai_clk_probe()
53 sai_clk->div.width = CR2_DIV_WIDTH; in fsl_sai_clk_probe()
54 sai_clk->div.lock = &sai_clk->lock; in fsl_sai_clk_probe()
56 /* set clock direction, we are the BCLK master */ in fsl_sai_clk_probe()
59 hw = devm_clk_hw_register_composite_pdata(dev, dev->of_node->name, in fsl_sai_clk_probe()
61 &sai_clk->div.hw, in fsl_sai_clk_probe()
63 &sai_clk->gate.hw, in fsl_sai_clk_probe()
73 { .compatible = "fsl,vf610-sai-clock" },
81 .name = "fsl-sai-clk",
87 MODULE_DESCRIPTION("Freescale SAI bitclock-as-a-clock driver");
89 MODULE_ALIAS("platform:fsl-sai-clk");