Re: [PATCH v2 4/4] clk: fsl-sai: Add MCLK generation support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/30/24 2:28 AM, Peng Fan wrote:

[...]

static int fsl_sai_clk_probe(struct platform_device *pdev)
{
	struct device *dev = &pdev->dev;
	const struct fsl_sai_data *data = device_get_match_data(dev);
-	struct fsl_sai_clk *sai_clk;
	struct clk_parent_data pdata = { .index = 0 };
+	struct fsl_sai_clk *sai_clk;
+	struct clk *clk_bus;
	void __iomem *base;
	struct clk_hw *hw;

@@ -47,39 +65,74 @@ static int fsl_sai_clk_probe(struct platform_device *pdev)
	if (IS_ERR(base))
		return PTR_ERR(base);

+	clk_bus = devm_clk_get_enabled(dev, "bus");
+	if (IS_ERR(clk_bus))
+		return PTR_ERR(clk_bus);
+

This only applies to i.MX?
I think so ... what am I missing , some Vybrid / Layerscape detail ?




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux